diff options
author | danfe <danfe@FreeBSD.org> | 2008-03-24 18:05:57 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2008-03-24 18:05:57 +0800 |
commit | e86cf6c7e32217f4e512bfcbd1bb5d68815a72e6 (patch) | |
tree | 8652f91821a2648a0b64dfaeee8f2604ad9ff027 /emulators/tilem/Makefile | |
parent | 287e26474b3021d7c6deddee16b2ba2fdd8cc16b (diff) | |
download | freebsd-ports-gnome-e86cf6c7e32217f4e512bfcbd1bb5d68815a72e6.tar.gz freebsd-ports-gnome-e86cf6c7e32217f4e512bfcbd1bb5d68815a72e6.tar.zst freebsd-ports-gnome-e86cf6c7e32217f4e512bfcbd1bb5d68815a72e6.zip |
- Fix permissions of installed binary (previously, "make package" would
fail if performed by non-root)
- Install couple of auxiliary programs
- Better respect CFLAGS
- Introduce a knob to build with external linking capability
- Bump PORTREVISION
Diffstat (limited to 'emulators/tilem/Makefile')
-rw-r--r-- | emulators/tilem/Makefile | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/emulators/tilem/Makefile b/emulators/tilem/Makefile index 1fcb5c55e341..41bb9e41465f 100644 --- a/emulators/tilem/Makefile +++ b/emulators/tilem/Makefile @@ -7,7 +7,7 @@ PORTNAME= tilem PORTVERSION= 0.973 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= emulators MASTER_SITES= SF @@ -19,4 +19,30 @@ GNU_CONFIGURE= yes USE_GMAKE= yes USE_GNOME= gtk20 -.include <bsd.port.mk> +OPTIONS= TICABLES "Use ticables2 library for external linking" off + +.include <bsd.port.pre.mk> + +.if defined(WITH_TICABLES) +LIB_DEPENDS+= ticables2.1:${PORTSDIR}/comms/libticables2 +.else +CONFIGURE_ARGS+= --without-ticables +.endif + +post-extract: +# Set more sane permissions for main executable + @${REINPLACE_CMD} -e 's,711,555,' \ + ${WRKSRC}/src/tilem/Makefile.in +# Honor CFLAGS + @${REINPLACE_CMD} -e 's,CPPFLAGS) -O.,CPPFLAGS),' \ + ${WRKSRC}/src/tilem/Makefile.in + @${REINPLACE_CMD} -e 's,-Wall,${CFLAGS},' \ + ${WRKSRC}/src/utils/Makefile.in +# Remove conflicting prototype + @${REINPLACE_CMD} '5,13d' ${WRKSRC}/src/tilem/core/dep/link.h + +post-install: + ${INSTALL_PROGRAM} ${WRKSRC}/bin/neosign ${WRKSRC}/bin/tcc \ + ${PREFIX}/bin + +.include <bsd.port.post.mk> |