- 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:
parent
752a3c3c4b
commit
87799953a4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=306281
1 changed files with 7 additions and 4 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue