- Switch to options helpers

This commit is contained in:
Dmitry Marakasov 2017-07-05 10:28:52 +00:00
parent 5a8d33fada
commit d7e94dfcbb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=445068
2 changed files with 8 additions and 9 deletions

View file

@ -21,8 +21,8 @@ NO_ARCH= yes
SUB_FILES= pkg-message
DOCS= BUGS CHANGELOG pymsgauth.txt pymsgauth.html
EXAMPLES= pymsgauthrc-example
PORTDOCS= BUGS CHANGELOG pymsgauth.txt pymsgauth.html
PORTEXAMPLES= pymsgauthrc-example
OPTIONS_DEFINE= DOCS EXAMPLES
@ -33,9 +33,13 @@ do-install:
.for f in clean confirm mail
${LN} -sf ${DATADIR}/pymsgauth-${f} ${STAGEDIR}${PREFIX}/bin
.endfor
do-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${EXAMPLES:S|^|${WRKSRC}/|} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/|} ${STAGEDIR}${EXAMPLESDIR}
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View file

@ -6,8 +6,3 @@ bin/pymsgauth-mail
%%DATADIR%%/pymsgauth-clean
%%DATADIR%%/pymsgauth-confirm
%%DATADIR%%/pymsgauth-mail
%%PORTDOCS%%%%DOCSDIR%%/BUGS
%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
%%PORTDOCS%%%%DOCSDIR%%/pymsgauth.html
%%PORTDOCS%%%%DOCSDIR%%/pymsgauth.txt
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pymsgauthrc-example