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