diff options
author | steve <steve@FreeBSD.org> | 2000-07-08 03:59:26 +0800 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 2000-07-08 03:59:26 +0800 |
commit | 7879264d29ab2a706345ab21de9f9cd3139efc7a (patch) | |
tree | 0fb8a7b052271f54c6bdf617de3027472d998225 /emulators | |
parent | c691dd330a3da8e70bfc74508b9fb3b585604a4d (diff) | |
download | freebsd-ports-gnome-7879264d29ab2a706345ab21de9f9cd3139efc7a.tar.gz freebsd-ports-gnome-7879264d29ab2a706345ab21de9f9cd3139efc7a.tar.zst freebsd-ports-gnome-7879264d29ab2a706345ab21de9f9cd3139efc7a.zip |
- Use GTK_CONFIG/GLIB_CONFIG instead of hardcoded gtk12-config/glib12-config
- Support CC/CFLAGS/PREIFX/LOCALBASE/X11BASE/MAKE/etc. properly
PR: 19623
Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/xsystem35/Makefile | 16 | ||||
-rw-r--r-- | emulators/xsystem35/files/patch-af | 4 |
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) /* |