aboutsummaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>2000-07-07 19:59:26 +0000
committerSteve Price <steve@FreeBSD.org>2000-07-07 19:59:26 +0000
commit89b7d2a4465628b128b8f5f7fde5f2a3e2b2a8df (patch)
treedab293772a4c12d5e7f6c0f30c1e8ae09e1cfe4d /emulators
parent65b63032bfb3a3f1c8ac4ee660ac83927b43c92a (diff)
downloadports-89b7d2a4465628b128b8f5f7fde5f2a3e2b2a8df.tar.gz
ports-89b7d2a4465628b128b8f5f7fde5f2a3e2b2a8df.zip
Notes
Diffstat (limited to 'emulators')
-rw-r--r--emulators/xsystem35/Makefile16
-rw-r--r--emulators/xsystem35/files/patch-af4
2 files changed, 11 insertions, 9 deletions
diff --git a/emulators/xsystem35/Makefile b/emulators/xsystem35/Makefile
index 0150cab6d03a..82ffb38784cc 100644
--- a/emulators/xsystem35/Makefile
+++ b/emulators/xsystem35/Makefile
@@ -9,14 +9,18 @@ PORTNAME= xsystem35
PORTVERSION= 1.2.5.1
CATEGORIES= emulators
MASTER_SITES= http://www.aist-nara.ac.jp/~masaki-c/private/unitbase/xsys35/down/
-DISTNAME= xsystem35-1.2.5-1
+DISTNAME= ${PORTNAME}-1.2.5-1
MAINTAINER= k5@cheerful.com
LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
-USE_IMAKE= YES
+GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
+
WRKSRC= ${WRKDIR}/${DISTNAME}/src
+
+USE_IMAKE= YES
+MAKE_ENV= GTK_CONFIG="${GTK_CONFIG}"
PKGMESSAGE= ${WRKSRC}/MESSAGE
DOC_FILES= BUGS ChangeLog FAQ GRFMT.TXT INSTALL MISCGAME.TXT README \
@@ -42,20 +46,18 @@ pre-configure:
.endif
do-install:
- @${INSTALL_PROGRAM} ${WRKSRC}/xsystem35 ${PREFIX}/bin
- @${INSTALL_SCRIPT} ${WRKSRC}/../contrib/instgame ${PREFIX}/bin
-
-post-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/xsystem35 ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/../contrib/instgame ${PREFIX}/bin
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/ja/xsystem35
@(cd ${WRKSRC}/../doc;\
${INSTALL_MAN} ${DOC_FILES} ${PREFIX}/share/doc/ja/xsystem35)
+.endif
@${MKDIR} ${PREFIX}/share/examples/xsystem35
@${INSTALL_DATA} ${WRKSRC}/xsys35rc.sample ${PREFIX}/share/examples/xsystem35
@(cd ${WRKSRC}/../contrib; \
${INSTALL_DATA} ${EXAMPLES} ${PREFIX}/share/examples/xsystem35)
@${SED} -e s,PREFIX,${PREFIX}, ${PKGDIR}/MESSAGE > ${WRKSRC}/MESSAGE
@${CAT} ${WRKSRC}/MESSAGE
-.endif
.include <bsd.port.post.mk>
diff --git a/emulators/xsystem35/files/patch-af b/emulators/xsystem35/files/patch-af
index b57a61abae69..1b00c1f29130 100644
--- a/emulators/xsystem35/files/patch-af
+++ b/emulators/xsystem35/files/patch-af
@@ -5,14 +5,14 @@
* include / library / definition
*/
-SYS_LIBRARIES = -lm `gtk-config --libs`
-+SYS_LIBRARIES = -lm `gtk12-config --libs`
++SYS_LIBRARIES = -lm `$(GTK_CONFIG) --libs`
#ifdef ENABLE_ESD
EXTRA_LIBRARIES = $(OSDEPLIB) -lesd
#else
EXTRA_LIBRARIES = $(OSDEPLIB)
#endif
-EXTRA_INCLUDES = `gtk-config --cflags` $(OSDEPINC)
-+EXTRA_INCLUDES = `gtk12-config --cflags` $(OSDEPINC)
++EXTRA_INCLUDES = `$(GTK_CONFIG) --cflags` $(OSDEPINC)
EXTRA_DEFINES = $(OSDEPDEF)
/*