aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2017-06-25 23:02:34 +0800
committersunpoet <sunpoet@FreeBSD.org>2017-06-25 23:02:34 +0800
commite953b7204f8f77fefd224349867a48f61ed759a5 (patch)
tree7a76f6c3db855cce295c9d7af0c598001dce6f25 /devel
parent7b0869906ccbd744f39e6a71784c638a0b905356 (diff)
downloadfreebsd-ports-gnome-e953b7204f8f77fefd224349867a48f61ed759a5.tar.gz
freebsd-ports-gnome-e953b7204f8f77fefd224349867a48f61ed759a5.tar.zst
freebsd-ports-gnome-e953b7204f8f77fefd224349867a48f61ed759a5.zip
Convert to options target helper
Approved by: portmgr (blanket)
Diffstat (limited to 'devel')
-rw-r--r--devel/ruby-sdl/Makefile8
1 files changed, 2 insertions, 6 deletions
diff --git a/devel/ruby-sdl/Makefile b/devel/ruby-sdl/Makefile
index 25d97d4ce7ac..2a7c21f5b001 100644
--- a/devel/ruby-sdl/Makefile
+++ b/devel/ruby-sdl/Makefile
@@ -51,13 +51,11 @@ DOC_FILESEN= *.rsd *ref.en.html
OPTIONS_DEFINE= DOCS EXAMPLES
OPTIONS_SUB= yes
-.include <bsd.port.options.mk>
-
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/ruby/site_ruby/${RUBY_VER}/*/sdl_ext.so
@${REINPLACE_CMD} -e 's|ruby|${LOCALBASE}/bin/ruby|g' ${WRKSRC}/doc/rsd.rb
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}/ja
${INSTALL_DATA} ${DOC_FILES_WRKSRC_JA:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}/ja/
${INSTALL_DATA} ${DOC_FILES_WRKSRC_EN:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
@@ -65,11 +63,9 @@ post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}/doc/ja
${INSTALL_DATA} ${DOC_FILESJA:S|^|${DOCSRCDIRJA}/|} ${STAGEDIR}${DOCSDIR}/doc/ja/
${INSTALL_DATA} ${DOC_FILESEN:S|^|${DOCSRCDIREN}/|} ${STAGEDIR}${DOCSDIR}/doc/
-.endif
-.if ${PORT_OPTIONS:MEXAMPLES}
+post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/sample/* ${STAGEDIR}${EXAMPLESDIR}
-.endif
.include <bsd.port.mk>