- Add NO_ARCH

- Switch to options helpers
This commit is contained in:
Dmitry Marakasov 2015-09-09 11:15:28 +00:00
parent c8ba78cbcd
commit bbb96680d9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=396470

View file

@ -18,6 +18,7 @@ WRKSRC= ${WRKDIR}/ext-${PORTVERSION}.1144
USES= zip
NO_BUILD= yes
NO_ARCH= yes
OPTIONS_DEFINE= DOCS EXAMPLES
@ -32,29 +33,20 @@ WWW_SUB= bootstrap.js build.xml builds cmd ext-all-debug-w-comments.js \
packages plugins release-notes.html resources src \
welcome
.include <bsd.port.options.mk>
SUB_FILES= pkg-message
SUB_FILES+= pkg-message
.if ${PORT_OPTIONS:MDOCS}
SUB_LIST+= COMMENTDOCS=
.else
SUB_LIST+= COMMENTDOCS="\# "
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
SUB_LIST+= COMMENTEXAMPLES=
.else
SUB_LIST+= COMMENTEXAMPLES="\# "
.endif
DOCS_SUB_LIST= COMMENTDOCS=
DOCS_SUB_LIST_OFF= COMMENTDOCS="\# "
EXAMPLES_SUB_LIST= COMMENTEXAMPLES=
EXAMPLES_SUB_LIST_OFF= COMMENTEXAMPLES="\# "
do-install:
@cd ${WRKSRC} && ${COPYTREE_SHARE} "${WWW_SUB}" ${STAGEDIR}${WWWDIR}
.if ${PORT_OPTIONS:MDOCS}
do-install-DOCS-on:
@cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
do-install-EXAMPLES-on:
@cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
.endif
.include <bsd.port.mk>