Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jun 2005 16:28:02 -0300
From:      "Alejandro Pulver" <alejandro@varnet.biz>
To:        "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org>
Subject:   ports/82007: New port: emulators/generator-cbiere - SEGA Genesis emulator
Message-ID:  <1118172482.0@phobos.mars.bsd>
Resent-Message-ID: <200506071930.j57JUFDC044764@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         82007
>Category:       ports
>Synopsis:       New port: emulators/generator-cbiere - SEGA Genesis emulator
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 07 19:30:14 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Alejandro Pulver
>Release:        FreeBSD 5.4-RELEASE i386
>Organization:
>Environment:


System: FreeBSD 5.4-RELEASE #0: Sat May 21 12:14:47 ART 2005
    root@phobos.mars.bsd:/usr/src/sys/i386/compile/ATHLON-ALE



>Description:





>How-To-Repeat:





>Fix:


--- generator-cbiere.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	generator-cbiere
#	generator-cbiere/files
#	generator-cbiere/files/patch-configure
#	generator-cbiere/Makefile
#	generator-cbiere/distinfo
#	generator-cbiere/pkg-descr
#	generator-cbiere/pkg-message
#
echo c - generator-cbiere
mkdir -p generator-cbiere > /dev/null 2>&1
echo c - generator-cbiere/files
mkdir -p generator-cbiere/files > /dev/null 2>&1
echo x - generator-cbiere/files/patch-configure
sed 's/^X//' >generator-cbiere/files/patch-configure << 'END-of-generator-cbiere/files/patch-configure'
X*** configure.orig	Sun Apr 17 03:19:27 2005
X--- configure	Fri Apr 29 18:25:26 2005
X***************
X*** 4179,4185 ****
X    fi
X  
X    if [ "x$GCCVER" != "xno" ]; then
X!     CFLAGS="$CFLAGS -W -Wall -Wformat=2"
X      if [ "x$WARN" != "xno" ]; then
X        CFLAGS="$CFLAGS -Wstrict-prototypes -Wunused"
X      fi
X--- 4179,4185 ----
X    fi
X  
X    if [ "x$GCCVER" != "xno" ]; then
X! #    CFLAGS="$CFLAGS -W -Wall -Wformat=2"
X      if [ "x$WARN" != "xno" ]; then
X        CFLAGS="$CFLAGS -Wstrict-prototypes -Wunused"
X      fi
END-of-generator-cbiere/files/patch-configure
echo x - generator-cbiere/Makefile
sed 's/^X//' >generator-cbiere/Makefile << 'END-of-generator-cbiere/Makefile'
X# New ports collection makefile for:   emulators/generator-cbiere
X# Date created:        7 Jun 2005
X# Whom:                Alejandro Pulver <alejandro@varnet.biz>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	generator
XPORTVERSION=	0.35
XCATEGORIES=	emulators
XMASTER_SITES=	http://www.ghostwhitecrab.com/generator/
XPKGNAMESUFFIX=	-cbiere
XDISTNAME=	${PORTNAME}-${PORTVERSION}${PKGNAMESUFFIX}
X
XMAINTAINER=	alejandro@varnet.biz
XCOMMENT=	SEGA Genesis emulator
X
XLIB_DEPENDS=	jpeg.9:${PORTSDIR}/graphics/jpeg
X
XUSE_BZIP2=	yes
XUSE_SDL=	sdl
XUSE_GMAKE=	yes
XUSE_GNOME=	gtk12
X
XOPTIONS=	OPTIMIZED_CFLAGS "Enable compilation optimizations" on \
X		RAZE "Use RAZE z80 emulation (only for i386)" on \
X		SDL_AUDIO "Use SDL for audio" off
X
XGNU_CONFIGURE=		yes
XCONFIGURE_ARGS=		--program-transform-name=s/${PORTNAME}/${PORTNAME}${PKGNAMESUFFIX}/
XCONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
XCONFIGURE_ENV=		CPPFLAGS="-I${LOCALBASE}/include" \
X			LDFLAGS="-L${LOCALBASE}/lib"
XCONFIGURE_ARGS+=	--with-gtk
X
XPLIST_FILES=	bin/${PORTNAME}${PKGNAMESUFFIX}-gtk
X
XLATEST_LINK=	${PORTNAME}${PKGNAMESUFFIX}
X
Xpost-install:
X	@${ECHO_CMD}
X	@${CAT} ${PKGMESSAGE}
X	@${ECHO_CMD}
X
X.include <bsd.port.pre.mk>
X
X.if ${ARCH} == "alpha" && ${OSVERSION} >= 502102
XBROKEN=			"Does not configure on alpha 5.x"
X.endif
X
X# Generator needs GCC 2.95.x or GCC >= 3.4.2 to work properly.
X# Generator-CBiere automatically determines the GCC version.
X
X.if ${OSVERSION} < 400012
X# GCC < 2.95 is in the base system.
XUSE_GCC=		2.95
X.endif
X
X.if ${OSVERSION} >= 500035 && ${OSVERSION} < 502126
X# GCC > 2.95 (3.X) && GCC < 3.4.2 is in the base system.
XUSE_GCC=		3.4
X.endif
X
X.if defined(WITHOUT_OPTIMIZED_CFLAGS)
XCONFIGURE_ARGS+=	--without-gcc
X.endif
X
X.if defined(WITH_RAZE) && ${ARCH} == "i386"
XBUILD_DEPENDS+=		nasm:${PORTSDIR}/devel/nasm
XCONFIGURE_ARGS+=	--with-raze
X.else
XCONFIGURE_ARGS+=	--with-cmz80
X.endif
X
X.if defined(WITH_SDL_AUDIO)
XCONFIGURE_ARGS+=	--with-sdl-audio
X.endif
X
X.include <bsd.port.post.mk>
END-of-generator-cbiere/Makefile
echo x - generator-cbiere/distinfo
sed 's/^X//' >generator-cbiere/distinfo << 'END-of-generator-cbiere/distinfo'
XMD5 (generator-0.35-cbiere.tar.bz2) = bce3326c165d74e8a00e50355b653e08
XSIZE (generator-0.35-cbiere.tar.bz2) = 454740
END-of-generator-cbiere/distinfo
echo x - generator-cbiere/pkg-descr
sed 's/^X//' >generator-cbiere/pkg-descr << 'END-of-generator-cbiere/pkg-descr'
XSEGA Genesis emulator
X
XModified version of Generator by James Ponder based on version 0.35.
X
XAdditional features:
X
X* Support for BZIP2, GZIP and ZIP compressed ROMs.
X* Support for X11's XVideo hardware acceleration by SDL for faster and
X  smoother graphics.
X* Fullscreen support with or without the classic color frame.
X* SDL audio support (in favour of OSS Audio) which means you can use ESound
X  and others for sharing the sound device among other applications.
X* Optional mute playing i.e., if you don't have a soundcard or the soundcard
X  is busy you can still play.
X* Support for 48kHz sample rate (needs driver support).
X* Automagic CPU usage reduction which is especially cool for notebooks.
X* Working support for Game Genie codes.
X
XAuthor: Christian Biere
X
XWWW: http://www.ghostwhitecrab.com/generator/
X
X- Alejandro Pulver
Xalejandro@varnet.biz
END-of-generator-cbiere/pkg-descr
echo x - generator-cbiere/pkg-message
sed 's/^X//' >generator-cbiere/pkg-message << 'END-of-generator-cbiere/pkg-message'
XGenerator-CBiere has been installed.
X
XIf you are using SDL < 1.2.8 and you only see a black window (with sound), try
Xthe following (you must have xvattr, otherwise install it from ports):
X
Xxvattr -a XV_AUTOPAINT_COLORKEY -v 1
X
XIf you enabled the option SDL_AUDIO and your sound is delayed try setting the
Xvariable "sound_maxfields" and "sound_minfields" in your configuration file
X(usually "~/.genrc") to lower values. Like:
X
X# default: 5
Xsound_minfields = 1
X
X# default: 10
Xsound_maxfields = 2
X
XIf you want AVI recording set the environment variable "SDL_VIDEO_YUV_HWACCEL"
Xto "0". This will disable hardware support for YUV overlays, which causes the
Xsmoothing and the green backround when there are no ROMs loaded. But AVIs will
Xbe correctly produced.
X
XTo gain more performance set the CPUTYPE variable in "make.conf" as appropiate
X(in addition to enabling the build option OPTIMIZED_CFLAGS), then rebuild and
Xinstall generator.
X
XFor more information visit: http://www.ghostwhitecrab.com/generator/
END-of-generator-cbiere/pkg-message
exit

--- generator-cbiere.shar ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1118172482.0>