pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

dsk2rom: Import dsk2rom-0.80 as wip/dsk2rom



Module Name:	pkgsrc-wip
Committed By:	Nia Alarie <nia.alarie%gmail.com@localhost>
Pushed By:	nee
Date:		Tue Jun 27 14:04:36 2017 +0100
Changeset:	fe87aadbe301d2d49c5b80562acff15dbfed4a14

Modified Files:
	Makefile
Added Files:
	dsk2rom/DESCR
	dsk2rom/Makefile
	dsk2rom/PLIST
	dsk2rom/distinfo
	dsk2rom/patches/patch-Makefile
	dsk2rom/patches/patch-pletter_pletter.cpp

Log Message:
dsk2rom: Import dsk2rom-0.80 as wip/dsk2rom

dsk2rom is a utility for converting MSX disk images (.dsk) to MSX ROM
images (.rom).

This allows them to be easily played in emulators such as libretro-fmsx.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=fe87aadbe301d2d49c5b80562acff15dbfed4a14

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                  |  1 +
 dsk2rom/DESCR                             |  4 ++++
 dsk2rom/Makefile                          | 21 +++++++++++++++++++++
 dsk2rom/PLIST                             |  2 ++
 dsk2rom/distinfo                          |  8 ++++++++
 dsk2rom/patches/patch-Makefile            | 30 ++++++++++++++++++++++++++++++
 dsk2rom/patches/patch-pletter_pletter.cpp | 16 ++++++++++++++++
 7 files changed, 82 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 3dfc3adee2..9df75f616a 100644
--- a/Makefile
+++ b/Makefile
@@ -589,6 +589,7 @@ SUBDIR+=	drpython
 SUBDIR+=	drumpiler
 SUBDIR+=	ds2
 SUBDIR+=	dscan
+SUBDIR+=	dsk2rom
 SUBDIR+=	dspdfviewer
 SUBDIR+=	dssi
 SUBDIR+=	dtc
diff --git a/dsk2rom/DESCR b/dsk2rom/DESCR
new file mode 100644
index 0000000000..792bd82bf8
--- /dev/null
+++ b/dsk2rom/DESCR
@@ -0,0 +1,4 @@
+dsk2rom is a utility for converting MSX disk images (.dsk) to MSX ROM
+images (.rom).
+
+This allows them to be easily played in emulators such as libretro-fmsx.
diff --git a/dsk2rom/Makefile b/dsk2rom/Makefile
new file mode 100644
index 0000000000..d4440bddbf
--- /dev/null
+++ b/dsk2rom/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD$
+
+DISTNAME=	dsk2rom-0.80
+CATEGORIES=	converters
+MASTER_SITES=	http://home.kabelfoon.nl/~vincentd/download/
+
+COMMENT=	MSX disk image conversion utility
+HOMEPAGE=	http://home.kabelfoon.nl/~vincentd/
+LICENSE=	gnu-gpl-v2
+
+USE_LANGUAGES=	c c++
+USE_TOOLS=	gmake
+
+WRKSRC=		${WRKDIR}/dsk2rom
+
+INSTALLATION_DIRS+=	${PREFIX}/bin
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/dsk2rom ${DESTDIR}${PREFIX}/bin/dsk2rom
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/dsk2rom/PLIST b/dsk2rom/PLIST
new file mode 100644
index 0000000000..87758addef
--- /dev/null
+++ b/dsk2rom/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+bin/dsk2rom
diff --git a/dsk2rom/distinfo b/dsk2rom/distinfo
new file mode 100644
index 0000000000..1658609080
--- /dev/null
+++ b/dsk2rom/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+SHA1 (dsk2rom-0.80.tar.gz) = ed1ff7e18f9698cc1141197cb188de326a38b7b0
+RMD160 (dsk2rom-0.80.tar.gz) = 0d32fe2519013a77e6b28e0c4e833afc101fd6d8
+SHA512 (dsk2rom-0.80.tar.gz) = 846736ee6a552eaef48bfae76a123ec1dda4304f7e5ab09a5c70c939a1586c29b976e6cb55de0f75ed61e98be323f4be540ee5c4c172f5d5822c351406874fc2
+Size (dsk2rom-0.80.tar.gz) = 28727 bytes
+SHA1 (patch-Makefile) = 5ca21b08d218e400b817ee6dd5be8fb004365557
+SHA1 (patch-pletter_pletter.cpp) = f478b46342b598af14e09a2cde8bcb762d9589e8
diff --git a/dsk2rom/patches/patch-Makefile b/dsk2rom/patches/patch-Makefile
new file mode 100644
index 0000000000..02462f62f3
--- /dev/null
+++ b/dsk2rom/patches/patch-Makefile
@@ -0,0 +1,30 @@
+$NetBSD$
+
+Use CFLAGS from pkgsrc.
+
+--- Makefile.orig	2007-05-27 11:45:09.000000000 +0000
++++ Makefile
+@@ -8,13 +8,10 @@ dsk2rom_e = dsk2rom
+ bin2h_e   = bin2h
+ endif
+ 
+-CC = g++
+-CFLAGS = -O2 -Wall -fomit-frame-pointer
+-
+ all: bin2h dsk2rom.h dsk2rom
+ 
+ bin2h: bin2h.c
+-	$(CC) $(CFLAGS) $^ -o $(bin2h_e)
++	cc $^ -o $(bin2h_e)
+ 
+ pletter/pletter.o: pletter/pletter.cpp pletter/pletter.h
+ 
+@@ -22,7 +19,7 @@ dsk2rom.h: bin2h
+ 	$(shell ./${bin2h_e} dsk2rom dsk2rom.rom dsk2rom.h)
+ 
+ dsk2rom: dsk2rom.c dsk2rom.h pletter/pletter.o
+-	$(CC) $(CFLAGS) $^ -o $(dsk2rom_e)
++	$(CXX) $(CFLAGS) $(LDFLAGS) $^ -o $(dsk2rom_e)
+ 
+ clean:
+ 	rm -f $(dsk2rom_e)
diff --git a/dsk2rom/patches/patch-pletter_pletter.cpp b/dsk2rom/patches/patch-pletter_pletter.cpp
new file mode 100644
index 0000000000..e8d5427193
--- /dev/null
+++ b/dsk2rom/patches/patch-pletter_pletter.cpp
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Add missing includes.
+
+--- pletter/pletter.cpp.orig	2007-05-27 11:18:42.000000000 +0000
++++ pletter/pletter.cpp
+@@ -9,6 +9,9 @@
+ 
+ */
+ 
++#include <cstdlib>
++#include <cstring>
++#include <cstdio>
+ #include <string>
+ using namespace std;
+ 


Home | Main Index | Thread Index | Old Index