diff options
author | brooks <brooks@FreeBSD.org> | 2014-09-27 06:18:07 +0800 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2014-09-27 06:18:07 +0800 |
commit | 210f885722e9c16da0b23bc7dc02333659688701 (patch) | |
tree | 0827c45218da87d0601ffef7ea4ba05a3125045f /lang/clang35/Makefile | |
parent | 9f99563fbe7fa525440c79a562eacc01ba7425bb (diff) | |
download | freebsd-ports-gnome-210f885722e9c16da0b23bc7dc02333659688701.tar.gz freebsd-ports-gnome-210f885722e9c16da0b23bc7dc02333659688701.tar.zst freebsd-ports-gnome-210f885722e9c16da0b23bc7dc02333659688701.zip |
Install the bits necessicary for scan-view to work.
Make scan-build35 tell the user to run scan-view35.
PR: 193955
Sponsored by: DARPA, AFRL
Diffstat (limited to 'lang/clang35/Makefile')
-rw-r--r-- | lang/clang35/Makefile | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/lang/clang35/Makefile b/lang/clang35/Makefile index 4d57506fe40e..07b2642fadbb 100644 --- a/lang/clang35/Makefile +++ b/lang/clang35/Makefile @@ -2,6 +2,7 @@ PORTNAME= clang DISTVERSION= 3.5.0 +PORTREVISION= 1 CATEGORIES= lang devel MASTER_SITES= http://llvm.org/releases/3.5.0/ PKGNAMESUFFIX= ${LLVM_SUFFIX} @@ -31,6 +32,7 @@ LLVM_SUFFIX= ${PORTVERSION:C/([0-9]\.[0-9]).*/\1/:S/.//g:C/r.//} LLVM_PREFIX= ${PREFIX}/llvm${LLVM_SUFFIX} DATADIR= ${PREFIX}/share/${PORTNAME}${LLVM_SUFFIX} DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${LLVM_SUFFIX} +PYTHONLIBDIR= ${LLVM_PREFIX}/lib/python GNU_CONFIGURE= yes GNU_CONFIGURE_PREFIX= ${LLVM_PREFIX} @@ -108,6 +110,7 @@ post-patch: ${REINPLACE_CMD} -e 's|/usr/local/|${LOCALBASE}/|g' \ ${WRKSRC}/tools/clang/lib/Frontend/InitHeaderSearch.cpp ${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}/|g' \ + -e 's|%%LLVM_SUFFIX%%|${LLVM_SUFFIX}|g' \ ${WRKSRC}/tools/clang/tools/scan-build/scan-build pre-build: @@ -121,9 +124,7 @@ pre-build: post-build: @cd ${WRKSRC}/tools/clang/docs/tools && ${MAKE_CMD} man -.if ${PORT_OPTIONS:MDOCS} @cd ${WRKSRC}/tools/clang/docs/tools && ${MAKE_CMD} html ps -.endif post-install: ${STRIP_CMD} ${STAGEDIR}${LLVM_PREFIX}/lib/libclang.so @@ -145,10 +146,18 @@ post-install: ${LN} -f ${STAGEDIR}${PREFIX}/bin/${FIRST_COMMAND}${LLVM_SUFFIX} \ ${STAGEDIR}${PREFIX}/bin/${command}${LLVM_SUFFIX} .endfor -.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${STAGEDIR}${PYTHONLIBDIR} + ${MKDIR} ${STAGEDIR}${PYTHONLIBDIR}/Resources + ${INSTALL_SCRIPT} ${WRKSRC}/tools/clang/tools/scan-view/*.py \ + ${STAGEDIR}${PYTHONLIBDIR} + ${INSTALL_SCRIPT} ${WRKSRC}/tools/clang/tools/scan-view/Resources/* \ + ${STAGEDIR}${PYTHONLIBDIR}/Resources + ${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/tools/clang/tools/scan-build/scanview.css \ + ${WRKSRC}/tools/clang/tools/scan-build/sorttable.js \ + ${STAGEDIR}${DATADIR} cd ${WRKSRC}/tools/clang/docs/tools && \ ${MAKE_CMD} DESTDIR=${STAGEDIR}/ install-html install-ps -.endif ${INSTALL_MAN} ${WRKSRC}/tools/clang/docs/tools/clang.1 \ ${STAGEDIR}${MANPREFIX}/man/man1/clang${LLVM_SUFFIX}.1 ${INSTALL_MAN} ${WRKSRC}/tools/clang/tools/scan-build/scan-build.1 \ @@ -158,7 +167,8 @@ PLIST_FILE_LIST= ${COMMANDS:S|^|bin/|} \ lib/libclang* PLIST_DIR_LIST= include/clang \ include/clang-c \ - lib/clang + lib/clang \ + lib/python build-plist: ${RM} -f ${PLIST} |