diff options
author | ahze <ahze@FreeBSD.org> | 2005-06-17 11:02:45 +0800 |
---|---|---|
committer | ahze <ahze@FreeBSD.org> | 2005-06-17 11:02:45 +0800 |
commit | 7814288291efe077780b617287740a44808fc3c9 (patch) | |
tree | 0c8d0c005156df33a53a87e7f3a5a8be7a5ddef2 /emulators | |
parent | 44a829e3c14658e2eb51a841dbca90f870c211eb (diff) | |
download | freebsd-ports-gnome-7814288291efe077780b617287740a44808fc3c9.tar.gz freebsd-ports-gnome-7814288291efe077780b617287740a44808fc3c9.tar.zst freebsd-ports-gnome-7814288291efe077780b617287740a44808fc3c9.zip |
Add generator-cbiere 0.35, SEGA Genesis emulator.
PR: ports/82007
Submitted by: Alejandro Pulver <alejandro@varnet.biz>
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/Makefile | 1 | ||||
-rw-r--r-- | emulators/generator-cbiere/Makefile | 79 | ||||
-rw-r--r-- | emulators/generator-cbiere/distinfo | 2 | ||||
-rw-r--r-- | emulators/generator-cbiere/files/patch-configure | 19 | ||||
-rw-r--r-- | emulators/generator-cbiere/files/patch-hdr_generator.h | 26 | ||||
-rw-r--r-- | emulators/generator-cbiere/pkg-descr | 24 | ||||
-rw-r--r-- | emulators/generator-cbiere/pkg-message | 27 |
7 files changed, 178 insertions, 0 deletions
diff --git a/emulators/Makefile b/emulators/Makefile index 3015912c9f81..069e7b3640a1 100644 --- a/emulators/Makefile +++ b/emulators/Makefile @@ -27,6 +27,7 @@ SUBDIR += fuse SUBDIR += gbe SUBDIR += generator + SUBDIR += generator-cbiere SUBDIR += gngb SUBDIR += gnuboy SUBDIR += grustibus diff --git a/emulators/generator-cbiere/Makefile b/emulators/generator-cbiere/Makefile new file mode 100644 index 000000000000..2ffdedd2bdbd --- /dev/null +++ b/emulators/generator-cbiere/Makefile @@ -0,0 +1,79 @@ +# New ports collection makefile for: emulators/generator-cbiere +# Date created: 7 Jun 2005 +# Whom: Alejandro Pulver <alejandro@varnet.biz> +# +# $FreeBSD$ +# + +PORTNAME= generator +PORTVERSION= 0.35 +CATEGORIES= emulators +MASTER_SITES= http://www.ghostwhitecrab.com/generator/ +PKGNAMESUFFIX= -cbiere +DISTNAME= ${PORTNAME}-${PORTVERSION}${PKGNAMESUFFIX} + +MAINTAINER= alejandro@varnet.biz +COMMENT= SEGA Genesis emulator + +LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg + +USE_BZIP2= yes +USE_SDL= sdl +USE_GMAKE= yes +USE_GNOME= gtk12 + +OPTIONS= OPTIMIZED_CFLAGS "Enable compilation optimizations" on \ + RAZE "Use RAZE z80 emulation (only for i386)" on \ + SDL_AUDIO "Use SDL for audio" off + +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --program-transform-name=s/${PORTNAME}/${PORTNAME}${PKGNAMESUFFIX}/ +CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" +CONFIGURE_ARGS+= --with-gtk + +PLIST_FILES= bin/${PORTNAME}${PKGNAMESUFFIX}-gtk + +LATEST_LINK= ${PORTNAME}${PKGNAMESUFFIX} + +post-install: + @${ECHO_CMD} + @${CAT} ${PKGMESSAGE} + @${ECHO_CMD} + +.include <bsd.port.pre.mk> + +.if ${ARCH} == "alpha" && ${OSVERSION} >= 502102 +BROKEN= "Does not configure on alpha 5.x" +.endif + +# Generator needs GCC 2.95.x or GCC >= 3.4.2 to work properly. +# Generator-CBiere automatically determines the GCC version. + +.if ${OSVERSION} < 400012 +# GCC < 2.95 is in the base system. +USE_GCC= 2.95 +.endif + +.if ${OSVERSION} >= 500035 && ${OSVERSION} < 502126 +# GCC > 2.95 (3.X) && GCC < 3.4.2 is in the base system. +USE_GCC= 3.4 +.endif + +.if defined(WITHOUT_OPTIMIZED_CFLAGS) +CONFIGURE_ARGS+= --without-gcc +.endif + +.if defined(WITH_RAZE) && ${ARCH} == "i386" +BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm +CONFIGURE_ARGS+= --with-raze +.else +CONFIGURE_ARGS+= --with-cmz80 +.endif + +.if defined(WITH_SDL_AUDIO) +CONFIGURE_ARGS+= --with-sdl-audio +.endif + +.include <bsd.port.post.mk> diff --git a/emulators/generator-cbiere/distinfo b/emulators/generator-cbiere/distinfo new file mode 100644 index 000000000000..cfdb96f32eeb --- /dev/null +++ b/emulators/generator-cbiere/distinfo @@ -0,0 +1,2 @@ +MD5 (generator-0.35-cbiere.tar.bz2) = bce3326c165d74e8a00e50355b653e08 +SIZE (generator-0.35-cbiere.tar.bz2) = 454740 diff --git a/emulators/generator-cbiere/files/patch-configure b/emulators/generator-cbiere/files/patch-configure new file mode 100644 index 000000000000..7522d74e6773 --- /dev/null +++ b/emulators/generator-cbiere/files/patch-configure @@ -0,0 +1,19 @@ +*** configure.orig Sun Apr 17 03:19:27 2005 +--- configure Fri Apr 29 18:25:26 2005 +*************** +*** 4179,4185 **** + fi + + if [ "x$GCCVER" != "xno" ]; then +! CFLAGS="$CFLAGS -W -Wall -Wformat=2" + if [ "x$WARN" != "xno" ]; then + CFLAGS="$CFLAGS -Wstrict-prototypes -Wunused" + fi +--- 4179,4185 ---- + fi + + if [ "x$GCCVER" != "xno" ]; then +! # CFLAGS="$CFLAGS -W -Wall -Wformat=2" + if [ "x$WARN" != "xno" ]; then + CFLAGS="$CFLAGS -Wstrict-prototypes -Wunused" + fi diff --git a/emulators/generator-cbiere/files/patch-hdr_generator.h b/emulators/generator-cbiere/files/patch-hdr_generator.h new file mode 100644 index 000000000000..6ff6e99872d4 --- /dev/null +++ b/emulators/generator-cbiere/files/patch-hdr_generator.h @@ -0,0 +1,26 @@ +--- hdr/generator.h.orig Mon Jan 3 19:07:55 2005 ++++ hdr/generator.h Thu Jun 16 22:56:43 2005 +@@ -257,14 +257,22 @@ + #include "registers.h" + #endif + ++#if (defined(__unix__) || defined(unix)) && !defined(USG) ++#include <sys/param.h> ++#endif ++ + #if defined(linux) + #include <byteswap.h> + #define SWAP16(x) bswap_16((x)) + #define SWAP32(x) bswap_32((x)) +-#elif defined(__FreeBSD__) ++#elif defined(__FreeBSD__) && __FreeBSD_version >= 500000 + #include <sys/endian.h> + #define SWAP16(x) bswap16((x)) + #define SWAP32(x) bswap32((x)) ++#elif defined(__FreeBSD__) ++ #include <sys/endian.h> ++ #define SWAP16(x) (be16toh(x)) ++ #define SWAP32(x) (be32toh(x)) + #elif defined(__NetBSD__) + #include <sys/bswap.h> + #define SWAP16(x) bswap16((x)) diff --git a/emulators/generator-cbiere/pkg-descr b/emulators/generator-cbiere/pkg-descr new file mode 100644 index 000000000000..769bb45cd113 --- /dev/null +++ b/emulators/generator-cbiere/pkg-descr @@ -0,0 +1,24 @@ +SEGA Genesis emulator + +Modified version of Generator by James Ponder based on version 0.35. + +Additional features: + +* Support for BZIP2, GZIP and ZIP compressed ROMs. +* Support for X11's XVideo hardware acceleration by SDL for faster and + smoother graphics. +* Fullscreen support with or without the classic color frame. +* SDL audio support (in favour of OSS Audio) which means you can use ESound + and others for sharing the sound device among other applications. +* Optional mute playing i.e., if you don't have a soundcard or the soundcard + is busy you can still play. +* Support for 48kHz sample rate (needs driver support). +* Automagic CPU usage reduction which is especially cool for notebooks. +* Working support for Game Genie codes. + +Author: Christian Biere + +WWW: http://www.ghostwhitecrab.com/generator/ + +- Alejandro Pulver +alejandro@varnet.biz diff --git a/emulators/generator-cbiere/pkg-message b/emulators/generator-cbiere/pkg-message new file mode 100644 index 000000000000..15564357f743 --- /dev/null +++ b/emulators/generator-cbiere/pkg-message @@ -0,0 +1,27 @@ +Generator-CBiere has been installed. + +If you are using SDL < 1.2.8 and you only see a black window (with sound), try +the following (you must have xvattr, otherwise install it from ports): + +xvattr -a XV_AUTOPAINT_COLORKEY -v 1 + +If you enabled the option SDL_AUDIO and your sound is delayed try setting the +variable "sound_maxfields" and "sound_minfields" in your configuration file +(usually "~/.genrc") to lower values. Like: + +# default: 5 +sound_minfields = 1 + +# default: 10 +sound_maxfields = 2 + +If you want AVI recording set the environment variable "SDL_VIDEO_YUV_HWACCEL" +to "0". This will disable hardware support for YUV overlays, which causes the +smoothing and the green backround when there are no ROMs loaded. But AVIs will +be correctly produced. + +To gain more performance set the CPUTYPE variable in "make.conf" as appropiate +(in addition to enabling the build option OPTIMIZED_CFLAGS), then rebuild and +install generator. + +For more information visit: http://www.ghostwhitecrab.com/generator/ |