From 0fcb70fee407d0cdc7286e4905e3e541b6a3b9fd Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Sat, 26 Oct 2013 18:15:03 -0500 Subject: [PATCH] llvm: Initial 3.3 port * Patches are needed for Haiku as there were some regressions in 3.3 --- sys-devel/llvm/llvm-3.3.recipe | 58 ++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 sys-devel/llvm/llvm-3.3.recipe diff --git a/sys-devel/llvm/llvm-3.3.recipe b/sys-devel/llvm/llvm-3.3.recipe new file mode 100644 index 000000000..f78c5b4ff --- /dev/null +++ b/sys-devel/llvm/llvm-3.3.recipe @@ -0,0 +1,58 @@ +SUMMARY="Modular and reuseable compiler and toolchain technologies." +DESCRIPTION="LLVM is a collection of modular and reuseable compiler and and toolchain technologies." +HOMEPAGE="http://www.llvm.org/" +LICENSE="UIUC" +COPYRIGHT="2003-2012 University of Illinois at Urbana-Champaign" +SRC_URI="http://llvm.org/releases/${portVersion}/llvm-${portVersion}.src.tar.gz" +REVISION="1" +CHECKSUM_MD5="40564e1dc390f9844f1711c08b08e391" +ARCHITECTURES="!x86 !x86_64" +if [ $effectiveTargetArchitecture != x86_gcc2 ]; then + ARCHITECTURES="$ARCHITECTURES x86_gcc2" +fi +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + llvm$secondaryArchSuffix = $portVersion + " + +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + " + +BUILD_REQUIRES=" + " + +BUILD_PREREQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + cmd:aclocal + cmd:autoconf + cmd:automake + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:libtoolize + cmd:make + cmd:python + cmd:sed + " + +SOURCE_DIR="llvm-${portVersion}.src" + +PATCH() +{ + find . -type f -exec sed -i 's/\/usr\/bin\/env/\/bin\/env/g' "{}" \; +} + +BUILD() +{ + # Haiku C++ requires rtti in a lot of central system components + # such as Mesa + export REQUIRES_RTTI=1 + runConfigure ./configure --enable-optimized + make $jobArgs +} + +INSTALL() +{ + make install +}