summaryrefslogtreecommitdiffstats
path: root/emulators/tilem
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2008-03-24 10:05:57 +0000
committerdanfe <danfe@FreeBSD.org>2008-03-24 10:05:57 +0000
commite86cf6c7e32217f4e512bfcbd1bb5d68815a72e6 (patch)
tree8652f91821a2648a0b64dfaeee8f2604ad9ff027 /emulators/tilem
parent287e26474b3021d7c6deddee16b2ba2fdd8cc16b (diff)
downloadFreeBSD-ports-e86cf6c7e32217f4e512bfcbd1bb5d68815a72e6.zip
FreeBSD-ports-e86cf6c7e32217f4e512bfcbd1bb5d68815a72e6.tar.gz
- 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')
-rw-r--r--emulators/tilem/Makefile30
-rw-r--r--emulators/tilem/pkg-plist2
2 files changed, 30 insertions, 2 deletions
diff --git a/emulators/tilem/Makefile b/emulators/tilem/Makefile
index 1fcb5c5..41bb9e4 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>
diff --git a/emulators/tilem/pkg-plist b/emulators/tilem/pkg-plist
index 6c8df7f..8015e67 100644
--- a/emulators/tilem/pkg-plist
+++ b/emulators/tilem/pkg-plist
@@ -1,3 +1,5 @@
+bin/neosign
+bin/tcc
bin/tilem
%%DATADIR%%/data/x2syms
%%DATADIR%%/data/x3keys
OpenPOWER on IntegriCloud