aboutsummaryrefslogtreecommitdiff
path: root/lang/clang33
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2013-10-16 20:16:26 +0000
committerBrooks Davis <brooks@FreeBSD.org>2013-10-16 20:16:26 +0000
commitd478065e52acc252abf8c30dbbcd0400b8aa6a10 (patch)
treec8b23e2b61c24b07cc46e80c3d3deb78538c1d79 /lang/clang33
parentf700f3c72859e76ad96286084080e1a492c84a24 (diff)
downloadports-d478065e52acc252abf8c30dbbcd0400b8aa6a10.tar.gz
ports-d478065e52acc252abf8c30dbbcd0400b8aa6a10.zip
Notes
Diffstat (limited to 'lang/clang33')
-rw-r--r--lang/clang33/Makefile18
-rw-r--r--lang/clang33/pkg-plist1
2 files changed, 9 insertions, 10 deletions
diff --git a/lang/clang33/Makefile b/lang/clang33/Makefile
index f68e2dbc543a..affee39cfc6b 100644
--- a/lang/clang33/Makefile
+++ b/lang/clang33/Makefile
@@ -49,12 +49,10 @@ OPTIONS_DEFINE= ASSERTS DOCS
ASSERTS_DESC= Enable assertions (thread unsafe)
-CONFIGURE_ARGS+= --enable-optimized
+CONFIGURE_ARGS+= --enable-optimized --enable-shared
# Build some docs manually later
CONFIGURE_ARGS+= --disable-docs
-MAN1= clang${LLVM_SUFFIX}.1
-
PLIST_SUB+= PORTVERSION=${PORTVERSION}
COMMANDS= c-index-test \
@@ -66,7 +64,6 @@ COMMANDS= c-index-test \
clang-tblgen
FIRST_COMMAND= ${COMMANDS:C/^/XXXX/1:MXXXX*:C/^XXXX//}
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MASSERTS}
@@ -113,18 +110,18 @@ post-build:
.endif
post-install:
- ${LN} -sf ${LLVM_PREFIX}/bin/clang ${LLVM_PREFIX}/bin/clang-cpp
+ ${LN} -f ${STAGEDIR}${LLVM_PREFIX}/bin/clang ${STAGEDIR}${LLVM_PREFIX}/bin/clang-cpp
${INSTALL_SCRIPT} ${WRKDIR}/llvm-wrapper.sh \
- ${PREFIX}/bin/${FIRST_COMMAND}${LLVM_SUFFIX}
+ ${STAGEDIR}${PREFIX}/bin/${FIRST_COMMAND}${LLVM_SUFFIX}
.for command in ${COMMANDS:C/^/XXXX/1:NXXXX*}
- ${LN} -f ${PREFIX}/bin/${FIRST_COMMAND}${LLVM_SUFFIX} \
- ${PREFIX}/bin/${command}${LLVM_SUFFIX}
+ ${LN} -f ${STAGEDIR}${PREFIX}/bin/${FIRST_COMMAND}${LLVM_SUFFIX} \
+ ${STAGEDIR}${PREFIX}/bin/${command}${LLVM_SUFFIX}
.endfor
.if ${PORT_OPTIONS:MDOCS}
- cd ${WRKSRC}/tools/clang/docs/tools && ${GMAKE} install-html install-ps
+ cd ${WRKSRC}/tools/clang/docs/tools && ${GMAKE} DESTDIR=${STAGEDIR}/ install-html install-ps
.endif
${INSTALL_MAN} ${WRKSRC}/tools/clang/docs/tools/clang.1 \
- ${MANPREFIX}/man/man1/clang${LLVM_SUFFIX}.1
+ ${STAGEDIR}${MANPREFIX}/man/man1/clang${LLVM_SUFFIX}.1
PLIST_FILE_LIST= ${COMMANDS:S|^|bin/|} \
lib/libclang*
@@ -140,6 +137,7 @@ build-plist:
(ls ${PLIST_FILE_LIST:S|^|${LLVM_PREFIX}/|}; \
${FIND} ${PLIST_DIR_LIST:S|^|${LLVM_PREFIX}/|} -type f) | \
${SED} -e 's|${PREFIX}/||' | ${SORT} >> ${PLIST}
+ echo man/man1/clang${LLVM_SUFFIX}.1.gz >> ${PLIST}
${FIND} ${DOCSDIR} -type f | \
${SED} -e 's|${DOCSDIR}|%%PORTDOCS%%%%DOCSDIR%%|' | \
${SORT} >> ${PLIST}
diff --git a/lang/clang33/pkg-plist b/lang/clang33/pkg-plist
index 24ad14e2a41f..579875a9df31 100644
--- a/lang/clang33/pkg-plist
+++ b/lang/clang33/pkg-plist
@@ -463,6 +463,7 @@ llvm33/lib/libclangStaticAnalyzerCheckers.a
llvm33/lib/libclangStaticAnalyzerCore.a
llvm33/lib/libclangStaticAnalyzerFrontend.a
llvm33/lib/libclangTooling.a
+man/man1/clang33.1.gz
%%PORTDOCS%%%%DOCSDIR%%/html/clang/clang.html
%%PORTDOCS%%%%DOCSDIR%%/html/clang/manpage.css
%%PORTDOCS%%%%DOCSDIR%%/ps/clang.ps