svn commit: r340759 - head/devel/ccdoc

Baptiste Daroussin bapt at FreeBSD.org
Thu Jan 23 00:15:39 UTC 2014


Author: bapt
Date: Thu Jan 23 00:15:38 2014
New Revision: 340759
URL: http://svnweb.freebsd.org/changeset/ports/340759
QAT: https://qat.redports.org/buildarchive/r340759/

Log:
  Support stage

Modified:
  head/devel/ccdoc/Makefile

Modified: head/devel/ccdoc/Makefile
==============================================================================
--- head/devel/ccdoc/Makefile	Thu Jan 23 00:13:24 2014	(r340758)
+++ head/devel/ccdoc/Makefile	Thu Jan 23 00:15:38 2014	(r340759)
@@ -11,18 +11,17 @@ DIST_SUBDIR=	ccdoc
 MAINTAINER=	ports at 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>


More information about the svn-ports-all mailing list