1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Get rid of NOPORTDOCS.

This commit is contained in:
Adam Weinberger 2014-07-03 23:22:31 +00:00
parent 8b1cff41a7
commit 5133ab8377
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360483
2 changed files with 7 additions and 5 deletions

View File

@ -38,6 +38,8 @@ DOCS= A_Lire.txt Readme.txt
PLIST_SUB= HOMARDDIR=${LHOMARDDIR} AHPY=${LHOMARDDIR}/${AHPY} \
UNAMES=${OPSYS} HOMARDPG=${HOMARDPG} ASTER_TOOLS=${ASTER_TOOLS}
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386"
@ -69,17 +71,13 @@ do-install:
${MKDIR} ${STAGEDIR}${ASTER_TOOLS}/
${LN} -fs ${HOMARDDIR}/homard ${STAGEDIR}${ASTER_TOOLS}/
${LN} -fs ${HOMARDDIR}/aster_homard_py ${STAGEDIR}${ASTER_TOOLS}/
.if !defined(NOPORTDOCS)
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for doc in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
.if !defined(NOPORTEXAMPLES)
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/Linux64/CAS_TESTS && ${COPYTREE_SHARE} . \
${STAGEDIR}${EXAMPLESDIR})
.endif
.include "${.CURDIR}/../../french/aster/bsd.aster.mk"
.include <bsd.port.post.mk>

View File

@ -24,6 +24,10 @@ USES= shebangfix
SHEBANG_FILES= doc/installdox
ALL_TARGET= build
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
pre-configure:
${REINPLACE_CMD} -e 's|@python|${PYTHON_CMD}|' \
${WRKSRC}/Makefile ${WRKSRC}/src/Makefile
@ -31,7 +35,7 @@ pre-configure:
${WRKSRC}/tvdownloader.sh
${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|' \
${WRKSRC}/tvdownload.desktop
.if defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
${REINPLACE_CMD} -e 's|%%DOC%%|#|' ${WRKSRC}/Makefile
.else
${REINPLACE_CMD} -e 's|%%DOC%%||' ${WRKSRC}/Makefile