diff options
author | nia <nia@pkgsrc.org> | 2018-08-13 15:53:49 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2018-08-13 15:53:49 +0000 |
commit | 2a6e9daa0d370943c7f88135ebd4e04f6b1ec963 (patch) | |
tree | 2bd2e83e1830658a5259435937bcf44807362f4e /converters/dsk2rom | |
parent | aab9e048f4c96dbd8b9d0959d4b86be41a272ebd (diff) | |
download | pkgsrc-2a6e9daa0d370943c7f88135ebd4e04f6b1ec963.tar.gz |
dsk2rom: add version 0.80.
DSK2ROM is a utility for converting MSX .dsk images to MSX .rom images.
Diffstat (limited to 'converters/dsk2rom')
-rw-r--r-- | converters/dsk2rom/DESCR | 1 | ||||
-rw-r--r-- | converters/dsk2rom/Makefile | 30 | ||||
-rw-r--r-- | converters/dsk2rom/PLIST | 2 | ||||
-rw-r--r-- | converters/dsk2rom/distinfo | 8 | ||||
-rw-r--r-- | converters/dsk2rom/patches/patch-Makefile | 31 | ||||
-rw-r--r-- | converters/dsk2rom/patches/patch-pletter_pletter.cpp | 16 |
6 files changed, 88 insertions, 0 deletions
diff --git a/converters/dsk2rom/DESCR b/converters/dsk2rom/DESCR new file mode 100644 index 00000000000..5570f439687 --- /dev/null +++ b/converters/dsk2rom/DESCR @@ -0,0 +1 @@ +DSK2ROM is a utility for converting MSX .dsk images to MSX .rom images. diff --git a/converters/dsk2rom/Makefile b/converters/dsk2rom/Makefile new file mode 100644 index 00000000000..f779e482e08 --- /dev/null +++ b/converters/dsk2rom/Makefile @@ -0,0 +1,30 @@ +# $NetBSD: Makefile,v 1.1 2018/08/13 15:53:49 nia Exp $ + +DISTNAME= dsk2rom-0.80 +CATEGORIES= converters +MASTER_SITES= http://home.kabelfoon.nl/~vincentd/download/ + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://home.kabelfoon.nl/~vincentd/ +COMMENT= MSX disk image conversion utility +LICENSE= gnu-gpl-v2 + +USE_LANGUAGES= c c++ +USE_TOOLS+= gmake + +WRKSRC= ${WRKDIR}/dsk2rom + +.include "../../mk/bsd.prefs.mk" + +.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) +MAKE_FLAGS+= NATIVE_CC=${NATIVE_CC:Q} +.else +MAKE_FLAGS+= NATIVE_CC=${CC:Q} +.endif + +INSTALLATION_DIRS+= ${PREFIX}/bin + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/dsk2rom ${DESTDIR}${PREFIX}/bin/dsk2rom + +.include "../../mk/bsd.pkg.mk" diff --git a/converters/dsk2rom/PLIST b/converters/dsk2rom/PLIST new file mode 100644 index 00000000000..b9d8bd8b0f6 --- /dev/null +++ b/converters/dsk2rom/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1 2018/08/13 15:53:49 nia Exp $ +bin/dsk2rom diff --git a/converters/dsk2rom/distinfo b/converters/dsk2rom/distinfo new file mode 100644 index 00000000000..828dfd6f18c --- /dev/null +++ b/converters/dsk2rom/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1 2018/08/13 15:53:49 nia Exp $ + +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) = e81bc8fbfe9dc02d82d216ccc57e3a36883eb7b4 +SHA1 (patch-pletter_pletter.cpp) = f478b46342b598af14e09a2cde8bcb762d9589e8 diff --git a/converters/dsk2rom/patches/patch-Makefile b/converters/dsk2rom/patches/patch-Makefile new file mode 100644 index 00000000000..d2958ab1e95 --- /dev/null +++ b/converters/dsk2rom/patches/patch-Makefile @@ -0,0 +1,31 @@ +$NetBSD: patch-Makefile,v 1.1 2018/08/13 15:53:49 nia Exp $ + +Use native compiler for producing build executable, and +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)
++ $(NATIVE_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/converters/dsk2rom/patches/patch-pletter_pletter.cpp b/converters/dsk2rom/patches/patch-pletter_pletter.cpp new file mode 100644 index 00000000000..c40e77875ed --- /dev/null +++ b/converters/dsk2rom/patches/patch-pletter_pletter.cpp @@ -0,0 +1,16 @@ +$NetBSD: patch-pletter_pletter.cpp,v 1.1 2018/08/13 15:53:49 nia Exp $ + +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;
+
|