- Switch to options helpers

Approved by:	portmgr blanket
This commit is contained in:
Dmitry Marakasov 2015-09-24 21:19:27 +00:00
parent 02c8bec7d3
commit badcf22cdd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=397762

View file

@ -27,18 +27,16 @@ PLIST_FILES= bin/devisorgrid
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/devisorgrid.sh ${STAGEDIR}${PREFIX}/bin/devisorgrid
cd ${WRKSRC} \
&& ${COPYTREE_SHARE} "${DATAFILES}" ${STAGEDIR}${DATADIR} "-not -name *\.pdf"
cd ${WRKSRC} \
&& ${COPYTREE_SHARE} "${CLASSFILES}" ${STAGEDIR}${DATADIR} "-name *\.class"
.if ${PORT_OPTIONS:MDOCS}
do-install-DOCS-on:
cd ${WRKSRC}/manual \
&& ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} "-name *\.pdf"
.endif
post-install:
@cd ${WRKSRC} \