aboutsummaryrefslogtreecommitdiff
path: root/lang/clang
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2010-05-04 20:45:59 +0000
committerBrooks Davis <brooks@FreeBSD.org>2010-05-04 20:45:59 +0000
commit9cc0ad5dc4bfe8efe5beb4b9d5a8f12be58225f8 (patch)
treed2a4756d868fee8a9e8548716ec5ad9c27bc7dfe /lang/clang
parent68de77439a83c94898bcf921d42ff921a9225d1c (diff)
downloadports-9cc0ad5dc4bfe8efe5beb4b9d5a8f12be58225f8.tar.gz
ports-9cc0ad5dc4bfe8efe5beb4b9d5a8f12be58225f8.zip
Notes
Diffstat (limited to 'lang/clang')
-rw-r--r--lang/clang/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/lang/clang/Makefile b/lang/clang/Makefile
index 17b0a0ac364a..5e26bc753885 100644
--- a/lang/clang/Makefile
+++ b/lang/clang/Makefile
@@ -7,6 +7,7 @@
PORTNAME= clang
PORTVERSION= 2.7
+PORTREVISION= 1
CATEGORIES= devel lang
MASTER_SITES= http://llvm.org/releases/${PORTVERSION}/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
@@ -52,9 +53,10 @@ CONFIGURE_ARGS+= --enable-optimized
DOCSRCDIR=
.else
DOCSRCDIR= docs
-MAN1= clang.1
.endif
+MAN1= clang.1
+
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64"
@@ -77,6 +79,11 @@ post-patch:
${WRKSRC}/tools/clang/tools/scan-build/ccc-analyzer \
${WRKSRC}/tools/clang/tools/scan-build/scan-build
+.if defined(NOPORTDOCS)
+post-build:
+ @cd ${WRKSRC}/tools/clang/docs/tools && ${GMAKE} clang.1
+.endif
+
post-install:
@${INSTALL_SCRIPT} ${WRKSRC}/tools/clang/tools/scan-build/ccc-analyzer \
${PREFIX}/bin
@@ -85,6 +92,10 @@ post-install:
@${MKDIR} ${DATADIR}
@${INSTALL_DATA} ${WRKSRC}/tools/clang/tools/scan-build/scanview.css ${DATADIR}
@${INSTALL_DATA} ${WRKSRC}/tools/clang/tools/scan-build/sorttable.js ${DATADIR}
+.if defined(NOPORTDOCS)
+ @${INSTALL_MAN} ${WRKSRC}/tools/clang/docs/tools/clang.1 \
+ ${MANPREFIX}/man/man1/
+.endif
TEST_CMD= '(cd ${WRKSRC}/test; ${SETENV} ${MAKE_ENV} ${GMAKE} check)'
regression-test: ${BUILD_COOKIE}