From c86f9de16ec4b9f5dd181c929d3030cd1589a7ad Mon Sep 17 00:00:00 2001 From: jhale Date: Mon, 22 Oct 2012 17:50:13 +0000 Subject: - 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 --- devel/gwenhywfar/Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'devel/gwenhywfar') diff --git a/devel/gwenhywfar/Makefile b/devel/gwenhywfar/Makefile index 62a813c95b21..d0faf55f7f69 100644 --- a/devel/gwenhywfar/Makefile +++ b/devel/gwenhywfar/Makefile @@ -40,11 +40,10 @@ GWEN_SHLIB_VER= 60 .include -.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 -- cgit