diff options
author | bapt <bapt@FreeBSD.org> | 2014-01-23 08:15:38 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-01-23 08:15:38 +0800 |
commit | 92f530da8ccc557787fd28ceca0fb7f74d26c501 (patch) | |
tree | cafe66cdaeacac1a9ce8d8b40421352a32f52c5c /devel/ccdoc | |
parent | ea85c7045813d2fb5dab44950264a4900915d081 (diff) | |
download | freebsd-ports-gnome-92f530da8ccc557787fd28ceca0fb7f74d26c501.tar.gz freebsd-ports-gnome-92f530da8ccc557787fd28ceca0fb7f74d26c501.tar.zst freebsd-ports-gnome-92f530da8ccc557787fd28ceca0fb7f74d26c501.zip |
Support stage
Diffstat (limited to 'devel/ccdoc')
-rw-r--r-- | devel/ccdoc/Makefile | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/devel/ccdoc/Makefile b/devel/ccdoc/Makefile index 51bb3350efae..08dbbf47798f 100644 --- a/devel/ccdoc/Makefile +++ b/devel/ccdoc/Makefile @@ -11,18 +11,17 @@ DIST_SUBDIR= ccdoc MAINTAINER= ports@FreeBSD.org COMMENT= Extracting comments from C++ source and generating HTML +OPTIONS_DEFINE= DOCS + USES= perl5 WRKSRC= ${WRKDIR}/${PORTNAME}v${PORTVERSION:S/.//g}/src MAKEFILE= mkopt_gcc.mk ALL_TARGET= bld -MAN1= ccdoc.1 -PLIST_FILES= bin/ccdoc -.if !defined(NOPORTDOCS) +PLIST_FILES= bin/ccdoc \ + man/man1/ccdoc.1.gz PORTDOCS= * -.endif -NO_STAGE= yes do-configure: ${REINPLACE_CMD} -e "s:%%PERL%%:${PERL}:" \ -e "s:%%CXX%%:${CXX}:" \ @@ -32,16 +31,14 @@ do-configure: do-install: ${INSTALL_PROGRAM} ${WRKSRC}/../bin_opt_gcc_/ccdoc.exe \ - ${PREFIX}/bin/ccdoc - ${INSTALL_MAN} ${WRKSRC}/../doc/htdocs/ccdoc.man ${MAN1PREFIX}/man/man1/${MAN1} -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} + ${STAGEDIR}${PREFIX}/bin/ccdoc + ${INSTALL_MAN} ${WRKSRC}/../doc/htdocs/ccdoc.man ${STAGEDIR}${MAN1PREFIX}/man/man1/${PORTNAME}.1 + @${MKDIR} ${STAGEDIR}${DOCSDIR} ${FIND} ${WRKSRC}/../doc \( -name '*.html' -o \ -name '*.htm' -o \ -name '*.gif' -o \ -name '*.txt' -o \ -name '*.jpg' \) -print | \ - ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} -.endif + ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> |