aboutsummaryrefslogtreecommitdiff
path: root/devel/llvm35
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2014-09-25 18:35:58 +0000
committerBrooks Davis <brooks@FreeBSD.org>2014-09-25 18:35:58 +0000
commit63bd31174316e1cf9cce7f815556694952b63637 (patch)
tree8d172fb9402a0036453a89dc41c12da544a330a6 /devel/llvm35
parentf51674ab77cc66baff1fbf2c2aa12438ce61fdc8 (diff)
Notes
Diffstat (limited to 'devel/llvm35')
-rw-r--r--devel/llvm35/Makefile16
-rw-r--r--devel/llvm35/distinfo4
-rw-r--r--devel/llvm35/files/patch-utils_llvm-build_llvmbuild_main.py6
-rw-r--r--devel/llvm35/pkg-plist2
4 files changed, 17 insertions, 11 deletions
diff --git a/devel/llvm35/Makefile b/devel/llvm35/Makefile
index 303c25818190..67249009dd3d 100644
--- a/devel/llvm35/Makefile
+++ b/devel/llvm35/Makefile
@@ -1,11 +1,9 @@
# $FreeBSD$
PORTNAME= llvm
-DISTVERSION= 3.5.0rc2
-PORTREVISION= 1
+DISTVERSION= 3.5.0
CATEGORIES= devel lang
-MASTER_SITES= http://llvm.org/pre-releases/3.5/rc2/
-#http://llvm.org/pre-releases/3.5/rc2/llvm-3.5.0rc2.src.tar.xz
+MASTER_SITES= http://llvm.org/releases/3.5.0/
DISTNAME= ${PORTNAME}-${DISTVERSION}.src
PKGNAMESUFFIX= ${LLVM_SUFFIX}
@@ -18,7 +16,7 @@ DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${LLVM_SUFFIX}
DATADIR= ${PREFIX}/share/${PORTNAME}${LLVM_SUFFIX}
UNIQUENAME= ${PORTNAME}${LLVM_SUFFIX}
-WRKSRC= ${WRKDIR}/llvm.src
+WRKSRC= ${WRKDIR}/llvm-${DISTVERSION}.src
USES= compiler:c++11-lib execinfo gmake perl5 tar:xz
GNU_CONFIGURE= yes
@@ -112,10 +110,10 @@ CONFIGURE_ARGS+= --disable-docs
.if ${PORT_OPTIONS:MLIT}
MAN1SRCS+= lit.1
-USE_PYTHON= yes
+USES+= python
LIT_COMMANDS= lit llvm-lit FileCheck
.else
-USE_PYTHON_BUILD= yes
+USES+= python:build
.endif
.if ${PORT_OPTIONS:MLTOPLUGIN}
@@ -137,6 +135,10 @@ NOT_FOR_ARCH= ia64
.include <bsd.port.pre.mk>
+.if ${OSVERSION} < 900000
+BROKEN= GCC failing on 8.x
+.endif
+
.if ${PORT_OPTIONS:MCMAKE} && ${COMPILER_TYPE} != clang
BROKEN= CMake support only works with clang
.endif
diff --git a/devel/llvm35/distinfo b/devel/llvm35/distinfo
index 66d49199129f..3770da8b9e38 100644
--- a/devel/llvm35/distinfo
+++ b/devel/llvm35/distinfo
@@ -1,2 +1,2 @@
-SHA256 (llvm-3.5.0rc2.src.tar.xz) = 962130e3c1916e5a393675276af709d61a34d272c62d655baa9d966d0b87adde
-SIZE (llvm-3.5.0rc2.src.tar.xz) = 11770380
+SHA256 (llvm-3.5.0.src.tar.xz) = 28e199f368ef0a4666708f31c7991ad3bcc3a578342b0306526dd35f07595c03
+SIZE (llvm-3.5.0.src.tar.xz) = 11735940
diff --git a/devel/llvm35/files/patch-utils_llvm-build_llvmbuild_main.py b/devel/llvm35/files/patch-utils_llvm-build_llvmbuild_main.py
index 1e2de0273d55..ca34c8a2fe85 100644
--- a/devel/llvm35/files/patch-utils_llvm-build_llvmbuild_main.py
+++ b/devel/llvm35/files/patch-utils_llvm-build_llvmbuild_main.py
@@ -3,16 +3,20 @@ $FreeBSD$
--- utils/llvm-build/llvmbuild/main.py.orig
+++ utils/llvm-build/llvmbuild/main.py
-@@ -633,7 +633,13 @@
+@@ -660,7 +660,17 @@
# We handle a few special cases of target names here for historical
# reasons, as these are the names configure currently comes up with.
- native_target_name = { 'x86' : 'X86',
+ native_target_name = { 'amd64' : 'X86',
+ 'arm' : 'ARM',
++ 'armeb' : 'ARM',
++ 'armv6' : 'ARM',
++ 'armv6hf' : 'ARM',
+ 'i386' : 'X86',
+ 'mips' : 'Mips',
+ 'powerpc' : 'PowerPC',
++ 'powerpc64' : 'PowerPC',
+ 'sparc64' : 'Sparc',
+ 'x86' : 'X86',
'x86_64' : 'X86',
diff --git a/devel/llvm35/pkg-plist b/devel/llvm35/pkg-plist
index 8288755ac021..38a6e73569b9 100644
--- a/devel/llvm35/pkg-plist
+++ b/devel/llvm35/pkg-plist
@@ -670,7 +670,7 @@ llvm%%LLVM_SUFFIX%%/include/llvm/Transforms/Utils/VectorUtils.h
llvm%%LLVM_SUFFIX%%/include/llvm/Transforms/Vectorize.h
llvm%%LLVM_SUFFIX%%/lib/BugpointPasses.so
llvm%%LLVM_SUFFIX%%/lib/LLVMHello.so
-llvm%%LLVM_SUFFIX%%/lib/libLLVM-3.5.0.so
+llvm%%LLVM_SUFFIX%%/lib/libLLVM-%%PORTVERSION%%.so
llvm%%LLVM_SUFFIX%%/lib/libLLVM-3.5.so
llvm%%LLVM_SUFFIX%%/lib/libLLVM-3.5.so.0
llvm%%LLVM_SUFFIX%%/lib/libLLVMAArch64AsmParser.a