- Add NO_ARCH
- Switch to options helpers
This commit is contained in:
parent
c8ba78cbcd
commit
bbb96680d9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=396470
1 changed files with 10 additions and 18 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue