aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-03-03 10:55:29 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-03-03 10:55:29 +0800
commit7fe30ca7513b85797c5c564b6021a6f16b4c103a (patch)
treecaece6759a4ecf40341ed9a26de50094578dd974
parent56eaeb9bc4a02323b7db6afcccab70b56ca0ad25 (diff)
downloadfreebsd-ports-gnome-7fe30ca7513b85797c5c564b6021a6f16b4c103a.tar.gz
freebsd-ports-gnome-7fe30ca7513b85797c5c564b6021a6f16b4c103a.tar.zst
freebsd-ports-gnome-7fe30ca7513b85797c5c564b6021a6f16b4c103a.zip
- Add LICENSE
- Fix installation from non-root
-rw-r--r--devel/ccdoc/Makefile12
1 files changed, 4 insertions, 8 deletions
diff --git a/devel/ccdoc/Makefile b/devel/ccdoc/Makefile
index 08dbbf47798f..8ed286ef7760 100644
--- a/devel/ccdoc/Makefile
+++ b/devel/ccdoc/Makefile
@@ -11,7 +11,7 @@ DIST_SUBDIR= ccdoc
MAINTAINER= ports@FreeBSD.org
COMMENT= Extracting comments from C++ source and generating HTML
-OPTIONS_DEFINE= DOCS
+LICENSE= MIT
USES= perl5
@@ -22,6 +22,8 @@ PLIST_FILES= bin/ccdoc \
man/man1/ccdoc.1.gz
PORTDOCS= *
+OPTIONS_DEFINE= DOCS
+
do-configure:
${REINPLACE_CMD} -e "s:%%PERL%%:${PERL}:" \
-e "s:%%CXX%%:${CXX}:" \
@@ -33,12 +35,6 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/../bin_opt_gcc_/ccdoc.exe \
${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} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC}/../doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>