diff options
author | rene <rene@FreeBSD.org> | 2011-10-01 04:11:45 +0800 |
---|---|---|
committer | rene <rene@FreeBSD.org> | 2011-10-01 04:11:45 +0800 |
commit | 444719d87c918eb76c8f5a75116168b8894e3a31 (patch) | |
tree | 69cc75ba97d5b46650cbdf2aef045063c86294a0 /emulators | |
parent | 8c952b53cefd377521c949debd1cf9332372fd25 (diff) | |
download | freebsd-ports-gnome-444719d87c918eb76c8f5a75116168b8894e3a31.tar.gz freebsd-ports-gnome-444719d87c918eb76c8f5a75116168b8894e3a31.tar.zst freebsd-ports-gnome-444719d87c918eb76c8f5a75116168b8894e3a31.zip |
- 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
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/dgen-sdl/Makefile | 37 | ||||
-rw-r--r-- | emulators/dgen-sdl/distinfo | 6 | ||||
-rw-r--r-- | emulators/dgen-sdl/files/patch-configure | 21 | ||||
-rw-r--r-- | emulators/dgen-sdl/files/patch-rc.cpp | 26 | ||||
-rw-r--r-- | emulators/dgen-sdl/files/patch-rc.h | 10 | ||||
-rw-r--r-- | emulators/dgen-sdl/pkg-descr | 2 | ||||
-rw-r--r-- | emulators/dgen-sdl/pkg-plist | 2 |
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 |