summaryrefslogtreecommitdiffstats
path: root/emulators/generator/Makefile
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>2003-04-07 06:42:33 +0000
committermdodd <mdodd@FreeBSD.org>2003-04-07 06:42:33 +0000
commit44d85c7e7411f11327796fd0902283e47693be46 (patch)
treee550a933c829f7612d83913f58d29acbda8dbf5a /emulators/generator/Makefile
parentab22d62685873393d0d77046e82800fbdf061727 (diff)
downloadFreeBSD-ports-44d85c7e7411f11327796fd0902283e47693be46.zip
FreeBSD-ports-44d85c7e7411f11327796fd0902283e47693be46.tar.gz
- Update to 0.34
- Add support for SDL Joysticks. - Possibly run on more than i386.
Diffstat (limited to 'emulators/generator/Makefile')
-rw-r--r--emulators/generator/Makefile62
1 files changed, 37 insertions, 25 deletions
diff --git a/emulators/generator/Makefile b/emulators/generator/Makefile
index e8b919b..a532616 100644
--- a/emulators/generator/Makefile
+++ b/emulators/generator/Makefile
@@ -6,38 +6,50 @@
#
PORTNAME= generator
-PORTVERSION= 0.15
+PORTVERSION= 0.34
CATEGORIES= emulators
MASTER_SITES= http://www.squish.net/generator/files/
MAINTAINER= nakai@FreeBSD.org
COMMENT= SEGA Genesis emulator
-LIB_DEPENDS= tcl82.1:${PORTSDIR}/lang/tcl82 \
- tk82.1:${PORTSDIR}/x11-toolkits/tk82
+LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12 \
+ SDL-1.1.5:${PORTSDIR}/devel/sdl12
+.if (${MACHINE_ARCH} == "i386")
+BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
+.endif
-CONFIGURE_ENV= CFLAGS="-I${LOCALBASE}/include \
- -I${LOCALBASE}/include/tk8.2 -I${LOCALBASE}/include/tcl8.2"
-CONFIGURE_ARGS= --enable-tcltk
+SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
+GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
USE_GMAKE= yes
-USE_X_PREFIX= yes
+USE_REINPLACE= yes
GNU_CONFIGURE= yes
-
-nakai:
- echo ${CONFIGURE_ARGS}
-
-do-configure:
- ( cd ${WRKSRC}/src; ${CONFIGURE_ENV} ../compile/${CONFIGURE_SCRIPT} \
- ${CONFIGURE_ARGS} )
-
-do-build:
- ( cd ${WRKSRC}/src; ${GMAKE} )
-
-do-install:
- ${MKDIR} ${PREFIX}/bin
- ${MKDIR} ${PREFIX}/share/generator/
- ${INSTALL_PROGRAM} ${WRKSRC}/src/generator-tcltk ${PREFIX}/bin
- ${INSTALL_DATA} ${WRKSRC}/share/* ${PREFIX}/share/generator
-
-.include <bsd.port.mk>
+CONFIGURE_ARGS= --with-gtk
+
+.if (${MACHINE_ARCH} == "i386")
+CONFIGURE_ARGS+= --with-raze
+.else
+CONFIGURE_ARGS+= --with-cmz80
+.endif
+
+MAKE_ENV+= GTK_CONFIG="${GTK_CONFIG}" \
+ SDL_CONFIG="${SDL_CONFIG}"
+CONFIGURE_ENV+= GTK_CONFIG="${GTK_CONFIG}" \
+ SDL_CONFIG="${SDL_CONFIG}"
+
+.include <bsd.port.pre.mk>
+
+post-patch:
+.if ${OSVERSION} >= 500035
+ @${REINPLACE_CMD} -e \
+ 's|-malign-loops|-falign-loops|g ; \
+ s|-malign-jumps|-falign-jumps|g ; \
+ s|-malign-functions|-falign-functions|g' ${WRKSRC}/configure.in
+ @${REINPLACE_CMD} -e \
+ 's|-malign-loops|-falign-loops|g ; \
+ s|-malign-jumps|-falign-jumps|g ; \
+ s|-malign-functions|-falign-functions|g' ${WRKSRC}/configure
+.endif
+
+.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud