diff options
author | brooks <brooks@FreeBSD.org> | 2013-10-17 04:16:26 +0800 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2013-10-17 04:16:26 +0800 |
commit | 1ff87093d83262d58e24f88ba3d5f1f586c23c1d (patch) | |
tree | c8b23e2b61c24b07cc46e80c3d3deb78538c1d79 /lang | |
parent | 5fbc855a01f9225eebccf2e668a18762c73389c0 (diff) | |
download | freebsd-ports-gnome-1ff87093d83262d58e24f88ba3d5f1f586c23c1d.tar.gz freebsd-ports-gnome-1ff87093d83262d58e24f88ba3d5f1f586c23c1d.tar.zst freebsd-ports-gnome-1ff87093d83262d58e24f88ba3d5f1f586c23c1d.zip |
Support STAGEDIR
Diffstat (limited to 'lang')
-rw-r--r-- | lang/clang33/Makefile | 18 | ||||
-rw-r--r-- | lang/clang33/pkg-plist | 1 |
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 |