- Generate plist for DOXYGEN option independent of the PORTDOCS macro

to avoid problems if NOPORTDOCS is defined

Approved by:	makc (mentor, implicit)
Feature safe:	yes
This commit is contained in:
Jason E. Hale 2012-10-22 17:51:13 +00:00
parent 752a3c3c4b
commit 87799953a4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=306281

View file

@ -42,11 +42,10 @@ GWEN_SHLIB_VER= 60
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MDOXYGEN}
.if ${PORT_OPTIONS:MDOXYGEN}
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen \
dot:${PORTSDIR}/graphics/graphviz
CONFIGURE_ARGS+=--enable-full-doc
PORTDOCS= apidoc
.endif
.if ${PORT_OPTIONS:MKTOBLZCHECK} || exists(${LOCALBASE}/lib/libktoblzcheck.so)
@ -65,15 +64,19 @@ post-patch:
${WRKSRC}/Makefile.in
post-build:
.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MDOXYGEN}
.if ${PORT_OPTIONS:MDOXYGEN}
@cd ${WRKSRC} && ${GMAKE} srcdoc
.endif
post-install:
.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MDOXYGEN}
.if ${PORT_OPTIONS:MDOXYGEN}
${MKDIR} ${DOCSDIR}/apidoc
cd ${WRKSRC}/apidoc && \
${COPYTREE_SHARE} \* ${DOCSDIR}/apidoc
@${FIND} -P ${DOCSDIR} -type f 2>/dev/null | \
${SED} -ne 's,^${PREFIX}/,,p' >> ${TMPPLIST}
@${FIND} -P -d ${DOCSDIR} -type d 2>/dev/null | \
${SED} -ne 's,^${PREFIX}/,@dirrm ,p' >> ${TMPPLIST}
.endif
.include <bsd.port.mk>