aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2010-05-05 04:45:59 +0800
committerbrooks <brooks@FreeBSD.org>2010-05-05 04:45:59 +0800
commitefacc880e0c915b695377e9ca484f71190d887c9 (patch)
tree1c453ed79f8cb431983f6ad7a22d79f1a0718c08 /lang
parentf01126088f1f153fd9506fdc111a97e4d5258156 (diff)
downloadfreebsd-ports-gnome-efacc880e0c915b695377e9ca484f71190d887c9.tar.gz
freebsd-ports-gnome-efacc880e0c915b695377e9ca484f71190d887c9.tar.zst
freebsd-ports-gnome-efacc880e0c915b695377e9ca484f71190d887c9.zip
By popular depend, fix the installation of the clang.1 manpage when
NOPORTDOCS is set.
Diffstat (limited to 'lang')
-rw-r--r--lang/clang-devel/Makefile13
-rw-r--r--lang/clang/Makefile13
2 files changed, 24 insertions, 2 deletions
diff --git a/lang/clang-devel/Makefile b/lang/clang-devel/Makefile
index 17b0a0ac364a..5e26bc753885 100644
--- a/lang/clang-devel/Makefile
+++ b/lang/clang-devel/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}
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}