summaryrefslogtreecommitdiff
path: root/emulators/gcube/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/gcube/Makefile')
-rw-r--r--emulators/gcube/Makefile65
1 files changed, 65 insertions, 0 deletions
diff --git a/emulators/gcube/Makefile b/emulators/gcube/Makefile
new file mode 100644
index 000000000000..f18febcc12c7
--- /dev/null
+++ b/emulators/gcube/Makefile
@@ -0,0 +1,65 @@
+# New ports collection makefile for: gcube
+# Date created: 16 Jun 2005
+# Whom: Travis Poppe <tlp@liquidx.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gcube
+PORTVERSION= 0.4
+CATEGORIES= emulators
+MASTER_SITES= http://gcube.exemu.net/downloads/
+DISTNAME= ${PORTNAME}-${PORTVERSION}-src
+
+MAINTAINER= tlp@liquidx.org
+COMMENT= Gamecube emulator
+
+LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
+
+WRKSRC= ${WRKDIR}/${PORTVERSION}
+USE_SDL= sdl
+USE_GCC= 3.4
+USE_BZIP2= yes
+USE_GMAKE= yes
+USE_REINPLACE= yes
+USE_GETOPT_LONG=yes
+
+PLIST_FILES= bin/gcube bin/gcmap bin/bin2dol bin/isopack bin/tplx
+PORTDOCS= ChangeLog README
+
+FIXME= general.h keys_sdl.h thpview.h video_sdl.c audio_sdl.c hw_gx.c gx.c \
+ gx_texture.c gx_transform.c
+
+post-patch:
+.for i in ${FIXME}
+ ${REINPLACE_CMD} -e 's|SDL/|SDL11/|' ${WRKSRC}/${i}
+.endfor
+ ${REINPLACE_CMD} \
+ -e 's|sdl-config|${SDL_CONFIG}|' ${WRKSRC}/Makefile.rules
+ ${REINPLACE_CMD} \
+ -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/Makefile.rules
+ ${REINPLACE_CMD} \
+ -e 's|/usr/X11R6|${X11BASE}|' ${WRKSRC}/Makefile.rules
+ ${REINPLACE_CMD} \
+ -e 's|%%LDFLAGS%%|${LDFLAGS}|' ${WRKSRC}/Makefile.rules
+ ${REINPLACE_CMD} -e 's|gcc|${CC}|' ${WRKSRC}/Makefile
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/gcube ${PREFIX}/bin/gcube
+ ${INSTALL_PROGRAM} ${WRKSRC}/gcmap ${PREFIX}/bin/gcmap
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin2dol ${PREFIX}/bin/bin2dol
+ ${INSTALL_PROGRAM} ${WRKSRC}/isopack ${PREFIX}/bin/isopack
+ ${INSTALL_PROGRAM} ${WRKSRC}/tplx ${PREFIX}/bin/tplx
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCSDIR}/ChangeLog
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500000
+EXTRA_PATCHES= ${FILESDIR}/cpu.c-patch
+.endif
+
+.include <bsd.port.post.mk>