ports/82576: [New Port] emulators/gens - Genesis/CD/32X emulator

Travis Poppe tlp at LiquidX.org
Thu Jun 23 14:10:19 UTC 2005


>Number:         82576
>Category:       ports
>Synopsis:       [New Port] emulators/gens - Genesis/CD/32X 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:   Thu Jun 23 14:10:18 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Travis Poppe
>Release:        
>Organization:
>Environment:
>Description:
Genesis/CD/32X emulator that makes use of SDL and GTK. Its also (as far as I 
know) x86 only, due to its usage of x86 asm (nasm).

Note: This is not the latest version of gens, its one version behind the 
latest. This is because the latest version of gens makes use of the 
linux-specific header file 'linux/cdrom.h'.

This version seems to work fine, though, and even mentions FreeBSD in the 
About box. 

(I believe this version lacks direct CD-ROM support and instead makes use of 
ISO images for the Sega CD portion of the emulator. The latest version 
probably added Linux-specific CD-ROM support which is what caused the 
breakage).
>How-To-Repeat:
>Fix:
# 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:
#
#	emulators/gens
#	emulators/gens/files
#	emulators/gens/files/patch-Makefile
#	emulators/gens/files/gens.in
#	emulators/gens/Makefile
#	emulators/gens/distinfo
#	emulators/gens/pkg-descr
#	emulators/gens/pkg-plist
#
echo c - emulators/gens
mkdir -p emulators/gens > /dev/null 2>&1
echo c - emulators/gens/files
mkdir -p emulators/gens/files > /dev/null 2>&1
echo x - emulators/gens/files/patch-Makefile
sed 's/^X//' >emulators/gens/files/patch-Makefile << 
'END-of-emulators/gens/files/patch-Makefile'
X--- Makefile.orig	Wed Jun 22 16:18:29 2005
X+++ Makefile	Wed Jun 22 16:19:44 2005
X@@ -59,7 +59,7 @@
X glade/interface.o\
X glade/support.o
X 
X-GTKCFLAGS=-DWITH_GTK -DGTK_DISABLE_DEPRECATED `pkg-config gtk+-2.0 --cflags`
X+GTKCFLAGS=-DWITH_GTK `pkg-config gtk+-2.0 --cflags`
X 
X 
X #uncomment this if you want to enable GTK support (default)
X@@ -73,12 +73,12 @@
X GTKLDFLAGS=`pkg-config gtk+-2.0 --libs`
X 
X #uncomment this if you want to enable GTK support (default)
X-LDFLAGS=-lm `sdl-config --libs` -lz -lstdc++ -s $(GTKLDFLAGS)
X+LDFLAGS=-lm `sdl-config --libs` -lz -lstdc++ -s $(GTKLDFLAGS) %%LDFLAGS%%
X #uncomment this if you want to disable GTK support
X #LDFLAGS=-lm `sdl-config --libs` -lz -lstdc++ -s
X 
X 
X-NASMFLAGS=-D__GCC2 -f elf -O3
X+NASMFLAGS=-D__GCC2 -f elf
X CC=gcc
X CXX=g++
X TARGET=gens
END-of-emulators/gens/files/patch-Makefile
echo x - emulators/gens/files/gens.in
sed 's/^X//' >emulators/gens/files/gens.in << 
'END-of-emulators/gens/files/gens.in'
X#!/bin/sh
X# gens - gens 2.12a wrapper script
X#
X# 2005 Travis Poppe
X
XUSERDIR=$HOME/.gens
X
Xif [ -d $USERDIR ]; then
X	echo "gens working directory appears to be $USERDIR/"
X	echo ""
X
X	cd $USERDIR
X	./gens $*
X	exit
Xfi
X
Xmkdir $USERDIR
Xmkdir $USERDIR/resource
Xln -s %%PREFIX%%/share/gens/gens $USERDIR/gens
Xln -s %%PREFIX%%/share/gens/resource/* $USERDIR/resource
X
Xecho "Installed gens to $USERDIR/"
Xecho ""
X
Xcd $USERDIR
X./gens $*
END-of-emulators/gens/files/gens.in
echo x - emulators/gens/Makefile
sed 's/^X//' >emulators/gens/Makefile << 'END-of-emulators/gens/Makefile'
X# New ports collection makefile for:	gens
X# Date created:			22 Jun 2005
X# Whom:				Travis Poppe <tlp at liquidx.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	gens
XPORTVERSION=	2.12a
XCATEGORIES=	emulators
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	${PORTNAME}
XDISTNAME=	Gens212a1SrcL
X
XMAINTAINER=	tlp at liquidx.org
XCOMMENT=	Sega Genesis/CD/32X emulator
X
XBUILD_DEPENDS=	nasm:${PORTSDIR}/devel/nasm
X
XWRKSRC=		${WRKDIR}/${PORTNAME}_linux/${PORTNAME}
XUSE_ZIP=	yes
XUSE_SDL=	sdl
XUSE_GNOME=	gtk20
XUSE_GMAKE=	yes
XUSE_REINPLACE=	yes
X
XONLY_FOR_ARCHS=	i386
X
Xpost-patch:
X	${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|' ${WRKSRC}/Makefile
X	${REINPLACE_CMD} -e 's|gcc|${CC}|' ${WRKSRC}/Makefile
X	${REINPLACE_CMD} -e 's|g++|${CXX}|' ${WRKSRC}/Makefile
X	${REINPLACE_CMD} -e 's|%%LDFLAGS%%|${LDFLAGS}|' ${WRKSRC}/Makefile
X	@${CAT} ${FILESDIR}/gens.in | ${SED} -e 's,%%PREFIX%%,${PREFIX},g' > 
${WRKDIR}/gens
X
Xdo-install:
X	${MKDIR} ${PREFIX}/share/gens
X	${MKDIR} ${PREFIX}/share/gens/resource
X	${INSTALL_SCRIPT} ${WRKDIR}/gens ${PREFIX}/bin/gens
X	${INSTALL_PROGRAM} ${WRKSRC}/gens ${PREFIX}/share/gens/gens
X	${INSTALL_DATA} ${WRKSRC}/resource/* ${PREFIX}/share/gens/resource
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}_linux/README ${DOCSDIR}/README
X.endif
X
X.include <bsd.port.mk>
END-of-emulators/gens/Makefile
echo x - emulators/gens/distinfo
sed 's/^X//' >emulators/gens/distinfo << 'END-of-emulators/gens/distinfo'
XMD5 (Gens212a1SrcL.zip) = 84b7511333f796633cfd0465c17679f2
XSIZE (Gens212a1SrcL.zip) = 572647
END-of-emulators/gens/distinfo
echo x - emulators/gens/pkg-descr
sed 's/^X//' >emulators/gens/pkg-descr << 'END-of-emulators/gens/pkg-descr'
XA Sega Genesis/CD/32X emulator that uses the SDL library and has a GTK 
Xuser interface.
X
XNote: This is not the latest version of gens available for *nix. The
Xlatest version makes use of the Linux-specific header file 'linux/cdrom.h' 
Xwhich causes the build to fail.
X
XPatches to get the latest version working on FreeBSD are more than 
Xwelcome!
X
XWWW: http://gens.consolemul.com/
X
X- Travis Poppe
Xtlp at liquidx.org
END-of-emulators/gens/pkg-descr
echo x - emulators/gens/pkg-plist
sed 's/^X//' >emulators/gens/pkg-plist << 'END-of-emulators/gens/pkg-plist'
Xbin/gens
X%%DATADIR%%/gens
X%%DATADIR%%/resource/Gens2.ico
X%%DATADIR%%/resource/bitmap1.bmp
X%%DATADIR%%/resource/bmp00000.bmp
X%%DATADIR%%/resource/bmp00001.bmp
X%%DATADIR%%/resource/bmp00002.bmp
X%%DATADIR%%/resource/bmp00003.bmp
X%%DATADIR%%/resource/bmp00004.bmp
X%%DATADIR%%/resource/bmp00005.bmp
X%%DATADIR%%/resource/bmp00006.bmp
X%%DATADIR%%/resource/gens.ico
X%%DATADIR%%/resource/gens_big.bmp
X%%DATADIR%%/resource/gens_small.bmp
X%%DATADIR%%/resource/sonic.ico
X%%DATADIR%%/resource/sonic2.ico
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X at dirrm %%DATADIR%%/resource
X at dirrm %%DATADIR%%
END-of-emulators/gens/pkg-plist
exit


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



More information about the freebsd-ports-bugs mailing list