aboutsummaryrefslogtreecommitdiff
path: root/emulators/gsnes9x/Makefile
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2003-11-10 18:45:05 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2003-11-10 18:45:05 +0000
commit6fa25125c5ea2bd1f59bb6bc4191db428dc572e1 (patch)
treed051ee215f4886708efd6036b6a04d5eda42c1e0 /emulators/gsnes9x/Makefile
parentfa57e01e58531b1a198dacc208d51f79e7f3fbde (diff)
Notes
Diffstat (limited to 'emulators/gsnes9x/Makefile')
-rw-r--r--emulators/gsnes9x/Makefile41
1 files changed, 14 insertions, 27 deletions
diff --git a/emulators/gsnes9x/Makefile b/emulators/gsnes9x/Makefile
index a0f1b7f40983..9276f55f222f 100644
--- a/emulators/gsnes9x/Makefile
+++ b/emulators/gsnes9x/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= gsnes9x
-PORTVERSION= 3.10
+PORTVERSION= 3.12
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -17,32 +17,19 @@ COMMENT= A GTK front-end for the Snes9X SNES emulator
RUN_DEPENDS= snes9x:${PORTSDIR}/emulators/snes9x
-GNU_CONFIGURE= yes
-USE_GNOME= gnomelibs
-USE_GMAKE= yes
USE_X_PREFIX= yes
-
-CONFIGURE_ARGS= --without-included-gettext \
- --with-esd
-
-.if defined(NOPORTDOCS)
-
-PLIST= ${FILESDIR}/PLIST.nodocs
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/src/GSnes9x ${PREFIX}/bin
- @${MKDIR} ${PREFIX}/share/gnome \
- ${PREFIX}/share/gnome/apps \
- ${PREFIX}/share/gnome/apps/Games \
- ${PREFIX}/share/gnome/pixmaps
- ${INSTALL_DATA} ${WRKSRC}/gsnes9x.desktop \
- ${PREFIX}/share/gnome/apps/Games/gsnes9x.desktop
- ${INSTALL_DATA} ${WRKSRC}/pixmaps/gsnesdefault.png \
- ${PREFIX}/share/gnome/pixmaps
- ${INSTALL_DATA} ${WRKSRC}/pixmaps/gsnes9x-icon.png \
- ${PREFIX}/share/gnome/pixmaps
-.else
-PLIST= ${FILESDIR}/PLIST.docs
-.endif
+USE_GNOME= gnomehack gnomeprefix gnomelibs
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+CONFGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
+ AUTOHEADER="${TRUE}"
+
+post-patch:
+ @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|^SUBDIRS = intl|SUBDIRS =|g ; \
+ s|@INTLLIBS@|-lintl|g ; \
+ s|@INTLDEPS@||g'
.include <bsd.port.mk>