summaryrefslogtreecommitdiff
path: root/emulators/dgen-sdl
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2011-09-30 20:11:45 +0000
committerRene Ladan <rene@FreeBSD.org>2011-09-30 20:11:45 +0000
commit527e6ec32499daae3a9937e5c3766578f597cfdd (patch)
treeaa7ae388f881419cae7c80c7fd97da2255b43da9 /emulators/dgen-sdl
parentUpdate to 3.1.2 (diff)
- Incorporate Quilt MZ80 patches for non-i386 and add legal notifications
- Update MASTER_SITES - Replace pkg-plist by PLIST_FILES - Only depend on devel/nasm when on i386 - Add WWW to pkg-descr - Bump PORTREVISION PR: ports/153437 Submitted by: Anonymous (swell.k) Approved by: maintainer
Notes
Notes: svn path=/head/; revision=282688
Diffstat (limited to 'emulators/dgen-sdl')
-rw-r--r--emulators/dgen-sdl/Makefile37
-rw-r--r--emulators/dgen-sdl/distinfo6
-rw-r--r--emulators/dgen-sdl/files/patch-configure21
-rw-r--r--emulators/dgen-sdl/files/patch-rc.cpp26
-rw-r--r--emulators/dgen-sdl/files/patch-rc.h10
-rw-r--r--emulators/dgen-sdl/pkg-descr2
-rw-r--r--emulators/dgen-sdl/pkg-plist2
7 files changed, 91 insertions, 13 deletions
diff --git a/emulators/dgen-sdl/Makefile b/emulators/dgen-sdl/Makefile
index 8d5c8aa7ae65..d3b1cc0658f7 100644
--- a/emulators/dgen-sdl/Makefile
+++ b/emulators/dgen-sdl/Makefile
@@ -7,20 +7,49 @@
PORTNAME= dgen-sdl
PORTVERSION= 1.23
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= emulators
-MASTER_SITES= http://src4.narod.ru/
+MASTER_SITES= SF/dgen/dgen/sdl-${PORTVERSION} \
+ http://tamentis.com/projects/dgen/files/ \
+ http://launchpadlibrarian.net/10817989/:quilt
+DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \
+ patches.tar.gz:quilt
+DIST_SUBDIR= ${PORTNAME}
MAINTAINER= spam@rm-rf.kiev.ua
COMMENT= A wonderful Sega Genesis/MegaDrive emulator
-BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
+NO_CDROM= License only permits non-commercial use, modified versions of MZ80 are not allowed to be distributed
+NO_PACKAGE= ${NO_CDROM}
+RESTRICTED= ${NO_CDROM}
+RESTRICTED_FILES= patches.tar.gz
USE_SDL= sdl
USE_GL= yes
GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --with-extra-opt
+
+EXTRA_PATCHES= ${WRKDIR}/patches/fm-do-not-use-long.patch \
+ ${WRKDIR}/patches/mz80-pbPC-pointer-subtract.patch \
+ ${WRKDIR}/patches/mz80-stdint.patch \
+ ${WRKDIR}/patches/mz80init.patch \
+ ${WRKDIR}/patches/ras-emulate-pointer-wraparound.patch \
+ ${WRKDIR}/patches/sdl-use-stdint.patch
+
+PLIST_FILES= bin/dgen \
+ bin/tobin
+
MAN1= dgen.1 tobin.1
MAN5= dgenrc.5
-.include <bsd.port.mk>
+post-extract:
+ @${REINPLACE_CMD} -e 's|^Index: dgen-|Index: ../dgen-sdl-|' ${WRKDIR}/patches/*
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == i386
+BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/emulators/dgen-sdl/distinfo b/emulators/dgen-sdl/distinfo
index c333c9c3ebc8..a21bbc67feb9 100644
--- a/emulators/dgen-sdl/distinfo
+++ b/emulators/dgen-sdl/distinfo
@@ -1,2 +1,4 @@
-SHA256 (dgen-sdl-1.23.tar.gz) = 44396b3b324433187cf7082d1059cd9f519f02accddd667e627a57ff8514d436
-SIZE (dgen-sdl-1.23.tar.gz) = 340556
+SHA256 (dgen-sdl/dgen-sdl-1.23.tar.gz) = 44396b3b324433187cf7082d1059cd9f519f02accddd667e627a57ff8514d436
+SIZE (dgen-sdl/dgen-sdl-1.23.tar.gz) = 340556
+SHA256 (dgen-sdl/patches.tar.gz) = 457c9b3580c199a7873f87c3e7579325f3d5b0fd88d032e6e30419d983ea4cf3
+SIZE (dgen-sdl/patches.tar.gz) = 7778
diff --git a/emulators/dgen-sdl/files/patch-configure b/emulators/dgen-sdl/files/patch-configure
index 1a1bb3b19be0..4d48a1be8ca7 100644
--- a/emulators/dgen-sdl/files/patch-configure
+++ b/emulators/dgen-sdl/files/patch-configure
@@ -1,8 +1,19 @@
-
-$FreeBSD$
-
---- configure 2001/02/23 11:37:15 1.1
-+++ configure 2001/02/23 11:37:28
+Index: configure
+@@ -897,12 +897,12 @@
+
+ if test x$ADD_OPT \!= xno; then
+ case $machtype in
+- i?86)
++ disabled)
+ CFLAGS="$CFLAGS -O3 -mpentium -march=pentium -fstrength-reduce -fomit-frame-pointer -frerun-cse-after-loop -funroll-loops -ffast-math -malign-functions=5 -malign-jumps=5 -malign-loops=5 -malign-double -fno-exceptions -fno-rtti"
+ CXXFLAGS="$CXXFLAGS -O3 -mpentium -march=pentium -fstrength-reduce -fomit-frame-pointer -frerun-cse-after-loop -funroll-loops -ffast-math -malign-functions=5 -malign-jumps=5 -malign-loops=5 -malign-double -fno-exceptions -fno-rtti"
+ ;;
+ *)
+- CFLAGS="$CFLAGS -O3 -ffast-math -fomit-frame-pointer -fno-exceptions -fno-rtti -funroll-loops -frerun-cse-after-loop"
++ CFLAGS="$CFLAGS -O3 -ffast-math -fomit-frame-pointer -fno-exceptions -funroll-loops -frerun-cse-after-loop"
+ CXXFLAGS="$CXXFLAGS -O3 -ffast-math -fomit-frame-pointer -fno-exceptions -fno-rtti -funroll-loops -frerun-cse-after-loop"
+ ;;
+ esac
@@ -1779,7 +1779,7 @@
#include <stdio.h>
#include <stdlib.h>
diff --git a/emulators/dgen-sdl/files/patch-rc.cpp b/emulators/dgen-sdl/files/patch-rc.cpp
new file mode 100644
index 000000000000..a1b0242819be
--- /dev/null
+++ b/emulators/dgen-sdl/files/patch-rc.cpp
@@ -0,0 +1,26 @@
+Index: rc.cpp
+@@ -14,13 +14,13 @@
+
+
+ // CTV names
+-char *ctv_names[NUM_CTV] = { "off", "blur", "scanline", "interlace" };
++char const *ctv_names[NUM_CTV] = { "off", "blur", "scanline", "interlace" };
+
+ // The table of strings and the keysyms they map to.
+ // The order is a bit weird, since this was originally a mapping for the SVGALib
+ // scancodes, and I just added the SDL stuff on top of it.
+ struct rc_keysym {
+- char *name;
++ char const *name;
+ long keysym;
+ } keysyms[] = {
+ { "ESCAPE", PDK_ESCAPE },
+@@ -300,7 +300,7 @@
+ /* This is a table of all the RC options, the variables they affect, and the
+ * functions to parse their values. */
+ struct rc_field {
+- char *fieldname;
++ char const *fieldname;
+ long (*parser)(const char*);
+ long *variable;
+ } rc_fields[] = {
diff --git a/emulators/dgen-sdl/files/patch-rc.h b/emulators/dgen-sdl/files/patch-rc.h
new file mode 100644
index 000000000000..18f4a6517303
--- /dev/null
+++ b/emulators/dgen-sdl/files/patch-rc.h
@@ -0,0 +1,10 @@
+Index: rc.h
+@@ -16,7 +16,7 @@
+ #define KEYSYM_MOD_META 0x08000000
+
+ // All the CTV engine names, in string form for the RC and message bar
+-extern char *ctv_names[];
++extern char const *ctv_names[];
+
+ // Provide a prototype to the parse_rc function in rc.cpp
+ void parse_rc(const char *file);
diff --git a/emulators/dgen-sdl/pkg-descr b/emulators/dgen-sdl/pkg-descr
index 073d6c6cea6b..078d9e48b60a 100644
--- a/emulators/dgen-sdl/pkg-descr
+++ b/emulators/dgen-sdl/pkg-descr
@@ -1 +1,3 @@
DGen is a wonderful Sega Genesis/MegaDrive emulator.
+
+WWW: http://tamentis.com/projects/dgen
diff --git a/emulators/dgen-sdl/pkg-plist b/emulators/dgen-sdl/pkg-plist
deleted file mode 100644
index e09365304581..000000000000
--- a/emulators/dgen-sdl/pkg-plist
+++ /dev/null
@@ -1,2 +0,0 @@
-bin/dgen
-bin/tobin