Use PORT_OPTIONS:MDOCS instead of NOPORTDOCS

This commit is contained in:
Baptiste Daroussin 2012-12-31 14:05:59 +00:00
parent 8a5d35c41a
commit debf89329c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=309740

View File

@ -39,6 +39,7 @@ PLIST_FILES+= %%EXAMPLESDIR%%/${file}
PLIST_DIRS+= \
%%EXAMPLESDIR%%
.include <bsd.port.options.mk>
do-build:
@cd ${WRKSRC}/src/main/java && ${FIND} com -name "*.java" | \
${XARGS} -n 10 -x \
@ -49,7 +50,7 @@ do-build:
do-install:
# docs
.ifndef(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
. for file in ${DOC_FILES}
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}