mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
llvm: add 3.4 recipe and patchset
This commit is contained in:
61
sys-devel/llvm/llvm-3.4.recipe
Normal file
61
sys-devel/llvm/llvm-3.4.recipe
Normal file
@@ -0,0 +1,61 @@
|
||||
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="46ed668a1ce38985120dbf6344cf6116"
|
||||
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
|
||||
"
|
||||
|
||||
PATCHES="llvm-${portVersion}.patchset"
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user