diff options
author | brooks <brooks@FreeBSD.org> | 2010-10-08 22:00:32 +0800 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2010-10-08 22:00:32 +0800 |
commit | ffd7c0b6e70068b818faf551ef6b1c94a9ea498f (patch) | |
tree | d1578f4cb5beca69ef7d16cca1ddae60de141632 /lang/clang/Makefile | |
parent | e3517dc33042f3bf00c54b204da4271d689e5222 (diff) | |
download | freebsd-ports-graphics-ffd7c0b6e70068b818faf551ef6b1c94a9ea498f.tar.gz freebsd-ports-graphics-ffd7c0b6e70068b818faf551ef6b1c94a9ea498f.tar.zst freebsd-ports-graphics-ffd7c0b6e70068b818faf551ef6b1c94a9ea498f.zip |
Upgrade LLVM, Clang, and llvm-gcc to 2.8 release.
The Clang port has now been updated to avoid building LLVM twice.
Diffstat (limited to 'lang/clang/Makefile')
-rw-r--r-- | lang/clang/Makefile | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/lang/clang/Makefile b/lang/clang/Makefile index eaca0b70c52..cbef6f9d0e8 100644 --- a/lang/clang/Makefile +++ b/lang/clang/Makefile @@ -6,8 +6,7 @@ # PORTNAME= clang -PORTVERSION= 2.7 -PORTREVISION= 2 +PORTVERSION= 2.8 CATEGORIES= devel lang MASTER_SITES= http://llvm.org/releases/${PORTVERSION}/ EXTRACT_SUFX= .tgz @@ -26,6 +25,7 @@ LLVM_NAME= llvm-${PORTVERSION} LLVM_SOURCE= ${LLVM_NAME}${EXTRACT_SUFX} WRKSRC= ${WRKDIR}/${LLVM_NAME} +BUILD_WRKSRC= ${WRKSRC}/tools/clang INSTALL_WRKSRC= ${WRKSRC}/tools/clang BUILD_DEPENDS+= llvm-as:${PORTSDIR}/devel/llvm @@ -45,6 +45,10 @@ USE_PERL5= yes USE_PYTHON= yes MAKE_JOBS_SAFE= yes +MAKE_ARGS= LLVMIncDir=${LOCALBASE}/include \ + LLVMToolDir=${LOCALBASE}/bin \ + LLVMLibDir=${LOCALBASE}/lib + .if defined(MAINTAINER_MODE) CONFIGURE_ARGS+= --with-f2c=${LOCALBASE} .else @@ -84,6 +88,10 @@ post-patch: ${REINPLACE_CMD} -e 's|/usr/bin/env python|${PYTHON_CMD}|' \ ${WRKSRC}/tools/clang/tools/scan-view/scan-view +#@cd ${WRKSRC}/tools/clang && ${GMAKE} TBLGEN=/usr/local/bin/tblgen LLVM_OBJ_ROOT=/usr/local +#do-build: +# @cd ${WRKSRC}/tools/clang && ${GMAKE} LLVMIncDir=/usr/local/include LLVMToolDir=/usr/local/bin LLVMLibDir=/usr/local/lib + .if defined(NOPORTDOCS) post-build: @cd ${WRKSRC}/tools/clang/docs/tools && ${GMAKE} clang.1 @@ -122,11 +130,11 @@ regression-test: ${BUILD_COOKIE} PLIST_FILE_LIST= bin/ccc-analyzer \ bin/c++-analyzer \ + bin/c-index-test \ bin/clang \ bin/clang++ \ bin/scan-build \ bin/scan-view \ - lib/libCIndex.* \ lib/libclang* PLIST_DIR_LIST= include/clang \ include/clang-c \ |