mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
- 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
0d5c25da67
commit
752a3c3c4b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=306280
@ -40,11 +40,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:MMEMDEBUG}
|
||||
@ -79,15 +78,19 @@ post-patch:
|
||||
.endif
|
||||
|
||||
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 New Issue
Block a user