diff options
Diffstat (limited to 'emulators/tilem')
-rw-r--r-- | emulators/tilem/Makefile | 30 | ||||
-rw-r--r-- | emulators/tilem/pkg-plist | 2 |
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 |