mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
llvm: Add llvm-3.2 recipe
* llvm-3.3 needs some patching but can use a lot of the 3.2 recipe. * No -devel as llvm's whole goal is -devel (like gcc)
This commit is contained in:
@@ -1,28 +1,58 @@
|
||||
DESCRIPTION="LLVM is a collection of modular and reuseable compiler and toolchain technologies."
|
||||
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/"
|
||||
SRC_URI="http://llvm.org/releases/3.2/llvm-3.2.src.tar.gz"
|
||||
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"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND=""
|
||||
CHECKSUM_MD5="71610289bbc819e3e15fdd562809a2d7"
|
||||
MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building."
|
||||
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()
|
||||
{
|
||||
if [ ! -L /usr ]; then
|
||||
ln -s /boot/system/ /usr
|
||||
fi
|
||||
cd llvm-3.2.src
|
||||
cp -r /boot/common/data/libtool/config/. autoconf/
|
||||
cp -r /boot/common/data/libtool/config/. projects/sample/autoconf/
|
||||
./configure --enable-optimized --prefix=`finddir B_COMMON_DIRECTORY`
|
||||
make
|
||||
# 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()
|
||||
{
|
||||
cd llvm-3.2.src
|
||||
make install
|
||||
}
|
||||
|
||||
LICENSE="UIUC"
|
||||
COPYRIGHT="2003-2012 University of Illinois at Urbana-Champaign"
|
||||
|
||||
Reference in New Issue
Block a user