diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2013-05-22 20:21:07 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2013-05-22 20:21:07 +0000 |
commit | 3538809848cdc44c64b2fc7d5abc1989369bc42b (patch) | |
tree | cc8ac5d07e91afc1c339a8d911468b4a69cc30ff /lang | |
parent | fcc5146594a2764f2483b116edfb857fd93f2a7a (diff) | |
download | ports-3538809848cdc44c64b2fc7d5abc1989369bc42b.tar.gz ports-3538809848cdc44c64b2fc7d5abc1989369bc42b.zip |
Notes
Diffstat (limited to 'lang')
-rw-r--r-- | lang/clang/Makefile | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/lang/clang/Makefile b/lang/clang/Makefile index 64f30ca5e682..b6845ccad5e4 100644 --- a/lang/clang/Makefile +++ b/lang/clang/Makefile @@ -7,7 +7,7 @@ PORTNAME= clang PORTVERSION= 3.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= lang devel MASTER_SITES= http://llvm.org/releases/${PORTVERSION}/ DISTNAME= ${PORTNAME}-${PORTVERSION}.src @@ -18,7 +18,7 @@ EXTRACT_ONLY= ${LLVM_SOURCE} MAINTAINER= brooks@FreeBSD.org COMMENT= C, Objective-C, and C++ compiler -CONFLICTS= clang-devel-[23]* clang31-* +CONFLICTS= clang-devel-[23]* CLANG_NAME= clang-${PORTVERSION}.src CLANG_SOURCE= ${CLANG_NAME}${EXTRACT_SUFX} @@ -31,15 +31,11 @@ INSTALL_WRKSRC= ${WRKSRC}/tools/clang BUILD_DEPENDS+= llvm>=${PORTVERSION}:${PORTSDIR}/devel/llvm RUN_DEPENDS+= llvm>=${PORTVERSION}:${PORTSDIR}/devel/llvm -.if defined(PACKAGE_BUILDING) || defined(MAINTAINER_MODE) +.if defined(PACKAGE_BUILDING) BUILD_DEPENDS+= runtest:${PORTSDIR}/misc/dejagnu .endif -.if defined(MAINTAINER_MODE) -BUILD_DEPENDS+= f2c:${PORTSDIR}/lang/f2c -.endif GNU_CONFIGURE= yes -USE_GCC= 4.2+ USE_GMAKE= yes USE_LDCONFIG= yes USE_PERL5= yes @@ -55,16 +51,20 @@ OPTIONS_DEFINE= ASSERTS DOCS ASSERTS_DESC= Enable assertions (thread unsafe) +CONFIGURE_ARGS+= --enable-optimized + MAN1= clang.1 PLIST_SUB+= PORTVERSION=${PORTVERSION} .include <bsd.port.options.mk> -.if defined(MAINTAINER_MODE) -CONFIGURE_ARGS+= --with-f2c=${LOCALBASE} +.if ${PORT_OPTIONS:MASSERTS} +CONFIGURE_ARGS+= --enable-assertions +RELTYPE= Release+Asserts .else -CONFIGURE_ARGS+= --enable-optimized +CONFIGURE_ARGS+= --disable-assertions +RELTYPE= Release .endif .if ${PORT_OPTIONS:MDOCS} @@ -73,14 +73,6 @@ CONFIGURE_ARGS+= --enable-docs CONFIGURE_ARGS+= --disable-docs .endif -.if ${PORT_OPTIONS:MASSERTS} -CONFIGURE_ARGS+= --enable-assertions -RELTYPE= Release+Asserts -.else -CONFIGURE_ARGS+= --disable-assertions -RELTYPE= Release -.endif - .include <bsd.port.pre.mk> .if ${ARCH} == "sparc64" @@ -119,6 +111,7 @@ post-build: @cd ${WRKSRC}/tools/clang/docs/tools && ${GMAKE} clang.1 post-install: + @${LN} -sf clang ${PREFIX}/bin/clang-cpp @${INSTALL_SCRIPT} ${WRKSRC}/tools/clang/tools/scan-build/ccc-analyzer \ ${WRKSRC}/tools/clang/tools/scan-build/c++-analyzer \ ${WRKSRC}/tools/clang/tools/scan-build/scan-build \ @@ -150,6 +143,7 @@ PLIST_FILE_LIST= bin/ccc-analyzer \ bin/clang \ bin/clang++ \ bin/clang-check \ + bin/clang-cpp \ bin/clang-tblgen \ bin/c-index-test \ bin/scan-build \ |