diff options
author | jbeich <jbeich@FreeBSD.org> | 2015-07-19 15:42:21 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2015-07-19 15:42:21 +0800 |
commit | 4393951e2f03b2c04ad5041a2e1ca206c1265605 (patch) | |
tree | e4f10c30a8c04f8d60e32e86e645cc614c9b2850 /devel | |
parent | d30e9ad8be622d2f666e8810616c6cf61165aec7 (diff) | |
download | freebsd-ports-gnome-4393951e2f03b2c04ad5041a2e1ca206c1265605.tar.gz freebsd-ports-gnome-4393951e2f03b2c04ad5041a2e1ca206c1265605.tar.zst freebsd-ports-gnome-4393951e2f03b2c04ad5041a2e1ca206c1265605.zip |
Convert my ports to target option helpers
Diffstat (limited to 'devel')
-rw-r--r-- | devel/onscripter/Makefile | 12 | ||||
-rw-r--r-- | devel/ponscripter-sekai/Makefile | 14 | ||||
-rw-r--r-- | devel/renpy/Makefile | 4 | ||||
-rw-r--r-- | devel/rlvm/Makefile | 14 |
4 files changed, 17 insertions, 27 deletions
diff --git a/devel/onscripter/Makefile b/devel/onscripter/Makefile index 32fb5b981b1b..25bb2bdd7f3f 100644 --- a/devel/onscripter/Makefile +++ b/devel/onscripter/Makefile @@ -38,27 +38,25 @@ PDA_DESC= Fit window size to screen on small PDA devices PDA_CFLAGS?= -DPDA_AUTOSIZE UTF8_CFLAGS?= -DUTF8_CAPTION -DUTF8_FILESYSTEM -.include <bsd.port.options.mk> - post-patch: -.if ! ${PORT_OPTIONS:MLUA} - @${REINPLACE_CMD} '/optional: lua/,/^$$/d' ${WRKSRC}/${MAKEFILE} -.endif @${REINPLACE_CMD} -e 's/$$(LIBS)/$$(LDFLAGS) &/' \ ${WRKSRC}/Makefile.onscripter @${REINPLACE_CMD} -e 's/luaL_checkint/(int)&eger/' \ ${WRKSRC}/LUAHandler.cpp +post-patch-LUA-off: + @${REINPLACE_CMD} '/optional: lua/,/^$$/d' ${WRKSRC}/${MAKEFILE} + .if !target(do-install) do-install: .for f in ${PLIST_FILES:T} ${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin .endfor -.if ${PORT_OPTIONS:MDOCS} + +post-install-DOCS-on: (cd ${WRKSRC}/www && ${COPYTREE_SHARE} \ . ${STAGEDIR}${DOCSDIR} \ "! -name *.orig ! -name *.bak") -.endif .endif # do-install .include <bsd.port.mk> diff --git a/devel/ponscripter-sekai/Makefile b/devel/ponscripter-sekai/Makefile index bee3b1fa548f..069a35656dd4 100644 --- a/devel/ponscripter-sekai/Makefile +++ b/devel/ponscripter-sekai/Makefile @@ -45,34 +45,30 @@ MANPAGES_PLIST_FILES=\ man/man7/ponscr-syntax.7.gz \ man/man7/ponscripter.7.gz -.include <bsd.port.options.mk> - post-patch: @${REINPLACE_CMD} -e '/^ifdef DEBUG/,/^$$/d' \ -e 's/$$STRIPFLAG/${STRIP}/' \ ${WRKSRC}/configure @${REINPLACE_CMD} -e 's/$$(LIBS)/$$(LDFLAGS) &/' \ ${WRKSRC}/src/Makefile.ponscripter -.if ! ${PORT_OPTIONS:MMANPAGES} + +post-patch-MANPAGES-off: @${REINPLACE_CMD} -i .manpages.bak \ -e '/install-man/d' \ -e 's/xmlto/${FALSE}/' \ ${WRKSRC}/configure -.endif -post-build: -.if ${PORT_OPTIONS:MMANPAGES} +post-build-MANPAGES-on: # Remove extraneous whitespace to unbreak manpage syntax ${REINPLACE_CMD} -e 's/^[[:space:]]*//; /^$$/d' \ ${WRKSRC}/doc/*.[0-9] -.endif post-install: ${INSTALL_DATA} ${WRKSRC}/misc/ponscripter-mode.el \ ${STAGEDIR}${PREFIX}/share/emacs/site-lisp -.if ${PORT_OPTIONS:MDOCS} + +post-install-DOCS-on: (cd ${WRKSRC} && ${COPYTREE_SHARE} \ "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}) -.endif .include <bsd.port.mk> diff --git a/devel/renpy/Makefile b/devel/renpy/Makefile index 24bc53d531e0..824386953019 100644 --- a/devel/renpy/Makefile +++ b/devel/renpy/Makefile @@ -95,10 +95,10 @@ post-install: ! -name saves ! -name log.txt") ${CHMOD} +x ${STAGEDIR}${DATADIR}/renpy.py ${CHMOD} -R u+w ${STAGEDIR}${DATADIR}/templates -.if ${PORT_OPTIONS:MDOCS} + +post-install-DOCS-on: (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \ . ${STAGEDIR}${DOCSDIR} \ "! -name *.orig ! -name *.bak") -.endif .include <bsd.port.mk> diff --git a/devel/rlvm/Makefile b/devel/rlvm/Makefile index 033e22507957..8947dde9f4eb 100644 --- a/devel/rlvm/Makefile +++ b/devel/rlvm/Makefile @@ -57,8 +57,6 @@ TEST_BUILD_DEPENDS=googletest>=1.7.0:${PORTSDIR}/devel/googletest \ luabind>0:${PORTSDIR}/devel/luabind TEST_EXTRA_PATCHES_OFF=${FILESDIR}/extra-patch-disable-test -.include <bsd.port.options.mk> - post-patch: @${GREP} -Flr 'utf8cpp/' ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \ -i .bak.utf8cpp -e 's,utf8cpp/,,' @@ -70,10 +68,8 @@ post-patch: -e 's,truetype/mona,TrueType,' \ -e 's,truetype/[^/"]*,TTF,' -pre-install: -.if ${PORT_OPTIONS:MTEST} +pre-install-TEST-on: (cd ${WRKSRC} && build/${PORTNAME}_unittests) -.endif do-install: ${INSTALL_PROGRAM} ${WRKSRC}/build/${PORTNAME} \ @@ -87,15 +83,15 @@ do-install: ${INSTALL_DATA} -v $$f \ ${STAGEDIR}${PREFIX}/share/icons/hicolor/$${f%/*}x$${f%/*}/apps; \ done) -.if ${PORT_OPTIONS:MNLS} + +post-install-NLS-on: (cd ${WRKSRC}/build/locale && ${COPYTREE_SHARE} \ . ${STAGEDIR}${PREFIX}/share/locale) -.endif -.if ${PORT_OPTIONS:MDOCS} + +post-install-DOCS-on: (cd ${WRKSRC} && ${COPYTREE_SHARE} \ "${PORTDOCS:Nnotes}" ${STAGEDIR}${DOCSDIR}) (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \ notes ${STAGEDIR}${DOCSDIR}) -.endif .include <bsd.port.mk> |