summaryrefslogtreecommitdiff
path: root/lang/clang/Makefile
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2012-05-23 11:02:41 +0000
committeradam <adam@pkgsrc.org>2012-05-23 11:02:41 +0000
commita5d2417d8fb8b6540e06d1f311058ad32a37f79a (patch)
tree7597b6ec8dce077b1ad118e5f5ce30b2e71c5b4a /lang/clang/Makefile
parent9819f9d336e7c228da655301b6d70c669dcb38ec (diff)
downloadpkgsrc-a5d2417d8fb8b6540e06d1f311058ad32a37f79a.tar.gz
Changes 3.1:
* Major New Features - AddressSanitizer, a fast memory error detector. - MachineInstr Bundles, Support to model instruction bundling / packing. - ARM Integrated Assembler, A full featured assembler and direct-to-object support for ARM. - Basic Block Placement Probability driven basic block placement. * LLVM IR and Core Improvements - A new type representing 16 bit half floating point values has been added. - IR now supports vectors of pointers, including vector GEPs. - Module flags have been introduced. They convey information about the module as a whole to LLVM subsystems. This is currently used to encode Objective C ABI information. - Loads can now have range metadata attached to them to describe the possible values being loaded. - The llvm.ctlz and llvm.cttz intrinsics now have an additional argument which indicates whether the behavior of the intrinsic is undefined on a zero input. This can be used to generate more efficient code on platforms that only have instructions which don't return the type size when counting bits in 0. * Optimizer Improvements - The loop unroll pass now is able to unroll loops with run-time trip counts. This feature is turned off by default, and is enabled with the -unroll-runtime flag. - A new basic-block autovectorization pass is available. Pass -vectorize to run this pass along with some associated post-vectorization cleanup passes. For more information, see the EuroLLVM 2012 slides: Autovectorization with LLVM. - Inline cost heuristics have been completely overhauled and now closely model constant propagation through call sites, disregard trivially dead code costs, and can model C++ STL iterator patterns.
Diffstat (limited to 'lang/clang/Makefile')
-rw-r--r--lang/clang/Makefile17
1 files changed, 7 insertions, 10 deletions
diff --git a/lang/clang/Makefile b/lang/clang/Makefile
index f2a17d29e4b..ee5dfb187a7 100644
--- a/lang/clang/Makefile
+++ b/lang/clang/Makefile
@@ -1,9 +1,10 @@
-# $NetBSD: Makefile,v 1.11 2011/12/02 14:42:12 adam Exp $
+# $NetBSD: Makefile,v 1.12 2012/05/23 11:02:41 adam Exp $
-DISTNAME= clang-3.0
+DISTNAME= clang-3.1
CATEGORIES= lang
MASTER_SITES= http://llvm.org/releases/${PKGVERSION_NOREV}/
-DISTFILES= llvm-${PKGVERSION_NOREV}.tar.gz clang-${PKGVERSION_NOREV}.tar.gz
+DISTFILES= llvm-${PKGVERSION_NOREV}.src.tar.gz \
+ clang-${PKGVERSION_NOREV}.src.tar.gz
MAINTAINER= adam.hoka@gmail.com
HOMEPAGE= http://llvm.org/
@@ -15,12 +16,13 @@ PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}/llvm-${PKGVERSION_NOREV}.src
USE_LANGUAGES= c c++
-USE_TOOLS+= chown perl:build gmake
+USE_TOOLS+= chown gmake
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-assertions
CONFIGURE_ARGS+= --disable-bindings # disable OCaml
CONFIGURE_ARGS+= --disable-timestamps
CONFIGURE_ARGS+= --enable-optimized
+#CONFIGURE_ARGS+= --enable-shared
MAKE_DIRS+= etc/llvm
@@ -38,13 +40,8 @@ PLIST_SUBST+= SOEXT="dylib"
PLIST_SUBST+= SOEXT="so"
.endif
-SUBST_CLASSES+= perl
-SUBST_MESSAGE.perl= Fixing llvm-configure PERL path
-SUBST_STAGE.perl= post-patch
-SUBST_FILES.perl= tools/llvm-config/llvm-config.in.in
-SUBST_SED.perl= -e 's,@PERL@,${PERL5},'
-
post-extract:
mv ${WRKDIR}/clang-${PKGVERSION_NOREV}.src ${WRKSRC}/tools/clang
+.include "../../lang/python/tool.mk"
.include "../../mk/bsd.pkg.mk"