ports/82349: [New Port] emulators/gcube - Cross-platform Gamecube emulator

Travis Poppe tlp at LiquidX.org
Fri Jun 17 05:00:41 UTC 2005


>Number:         82349
>Category:       ports
>Synopsis:       [New Port] emulators/gcube - Cross-platform Gamecube 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:   Fri Jun 17 05:00:40 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Travis Poppe <tlp at LiquidX.org>
>Release:        
>Organization:
>Environment:
>Description:
A free cross-platform Gamecube emulator.
>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/gcube/
#	emulators/gcube/Makefile
#	emulators/gcube/pkg-descr
#	emulators/gcube/distinfo
#	emulators/gcube/files
#	emulators/gcube/files/patch-Makefile.rules
#
echo c - emulators/gcube/
mkdir -p emulators/gcube/ > /dev/null 2>&1
echo x - emulators/gcube/Makefile
sed 's/^X//' >emulators/gcube/Makefile << 'END-of-emulators/gcube/Makefile'
X# New ports collection makefile for:	gcube
X# Date created:			16 Jun 2005
X# Whom:				Travis Poppe <tlp at liquidx.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	gcube
XPORTVERSION=	0.4
XCATEGORIES=	emulators
XMASTER_SITES=	http://gcube.exemu.net/downloads/
XDISTNAME=	${PORTNAME}-${PORTVERSION}-src
X
XMAINTAINER=	tlp at liquidx.org
XCOMMENT=	Gamecube emulator
X
XWRKSRC=		${WRKDIR}/${PORTVERSION}
XUSE_SDL=	sdl
XUSE_BZIP2=	yes
XUSE_GMAKE=	yes
XUSE_REINPLACE=	yes
X
X.if defined(NOPORTDOCS)
XPLIST_FILES=    bin/gcube bin/gcmap bin/bin2dol bin/isopack bin/tplx
X.else
XPLIST_FILES=	bin/gcube bin/gcmap bin/bin2dol bin/isopack bin/tplx \
X		%%DOCSDIR%%/ChangeLog %%DOCSDIR%%/README
XPLIST_DIRS=     %%DOCSDIR%%
X.endif
X
XFIXME=	general.h keys_sdl.h thpview.h video_sdl.c audio_sdl.c hw_gx.c gx.c \
X	gx_texture.c gx_transform.c
X
Xpost-patch:
X.for i in ${FIXME}
X	${REINPLACE_CMD} -e 's|SDL/|SDL11/|' ${WRKSRC}/${i}
X.endfor
X	${REINPLACE_CMD} \
X		-e 's|sdl-config|${SDL_CONFIG}|' ${WRKSRC}/Makefile.rules
X	${REINPLACE_CMD} \
X		-e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/Makefile.rules
X	${REINPLACE_CMD} \
X		-e 's|/usr/X11R6|${X11BASE}|' ${WRKSRC}/Makefile.rules
X	${REINPLACE_CMD} -e 's|gcc|${CC}|' ${WRKSRC}/Makefile
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/gcube ${PREFIX}/bin/gcube
X	${INSTALL_PROGRAM} ${WRKSRC}/gcmap ${PREFIX}/bin/gcmap
X	${INSTALL_PROGRAM} ${WRKSRC}/bin2dol ${PREFIX}/bin/bin2dol
X	${INSTALL_PROGRAM} ${WRKSRC}/isopack ${PREFIX}/bin/isopack
X	${INSTALL_PROGRAM} ${WRKSRC}/tplx ${PREFIX}/bin/tplx
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCSDIR}/ChangeLog
X	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README
X.endif
X
X.include <bsd.port.mk>
END-of-emulators/gcube/Makefile
echo x - emulators/gcube/pkg-descr
sed 's/^X//' >emulators/gcube/pkg-descr << 'END-of-emulators/gcube/pkg-descr'
XA Cross-platform Gamecube emulator.
X
XWWW: http://gcube.exemu.net/
X
X- Travis Poppe
Xtlp at liquidx.org
END-of-emulators/gcube/pkg-descr
echo x - emulators/gcube/distinfo
sed 's/^X//' >emulators/gcube/distinfo << 'END-of-emulators/gcube/distinfo'
XMD5 (gcube-0.4-src.tar.bz2) = e5c08cb4315b67b995afff1e3df47796
XSIZE (gcube-0.4-src.tar.bz2) = 803503
END-of-emulators/gcube/distinfo
echo c - emulators/gcube/files
mkdir -p emulators/gcube/files > /dev/null 2>&1
echo x - emulators/gcube/files/patch-Makefile.rules
sed 's/^X//' >emulators/gcube/files/patch-Makefile.rules << 
'END-of-emulators/gcube/files/patch-Makefile.rules'
X--- Makefile.rules.orig	Thu Jun 16 21:46:40 2005
X+++ Makefile.rules	Thu Jun 16 21:47:30 2005
X@@ -1,8 +1,8 @@
X 
X SDL_CONFIG=sdl-config
X-LIBS=`$(SDL_CONFIG) --libs` -mno-windows -mcygwin -lz -l$(OPENGL)
X+LIBS=`$(SDL_CONFIG) --libs` -mno-windows -mcygwin -L/usr/X11R6/lib -lz 
-l$(OPENGL)
X 
X-CFLAGS=-g -Wall -I/usr/include -I/usr/local/include
X+CFLAGS=-g -Wall -I/usr/local/include -I/usr/X11R6/include
X PROFLAGS=-g -Wall -pg -fprofile-arcs -ftest-coverage
X OPTFLAGS=-O3 -fno-strict-aliasing -fomit-frame-pointer -ffast-math 
-march=$(CPU) $(OPTIMIZE)
X 
X@@ -107,7 +107,7 @@
X 	$(CC) $(CFLAGS) $^ -o $@ -lz
X 
X ppc_disasm.o: ppc_disasm.c
X-	$(CC) -g -c -o $@ $<
X+	$(CC) $(CFLAGS) -g -c -o $@ $<
X 
X video_sdl.o: video_sdl.c icon.c
X 	$(CC) $(CFLAGS) `$(SDL_CONFIG) --cflags` -c -o $@ $< 
END-of-emulators/gcube/files/patch-Makefile.rules
exit


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



More information about the freebsd-ports-bugs mailing list