mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-16 08:40:06 +02:00
56 lines
1.2 KiB
Bash
56 lines
1.2 KiB
Bash
SUMMARY="Modular and reuseable compiler and toolchain technologies"
|
|
DESCRIPTION="LLVM is a collection of modular and reuseable compiler and \
|
|
toolchain technologies."
|
|
HOMEPAGE="http://www.llvm.org/"
|
|
COPYRIGHT="2003-2012 University of Illinois at Urbana-Champaign"
|
|
LICENSE="UIUC"
|
|
REVISION="2"
|
|
SOURCE_URI="http://llvm.org/releases/${portVersion}/llvm-${portVersion}.src.tar.gz"
|
|
CHECKSUM_SHA256="68766b1e70d05a25e2f502e997a3cb3937187a3296595cf6e0977d5cd6727578"
|
|
SOURCE_DIR="llvm-${portVersion}.src"
|
|
|
|
ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64"
|
|
SECONDARY_ARCHITECTURES="?x86"
|
|
|
|
PROVIDES="
|
|
llvm$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:find
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:python
|
|
cmd:sed
|
|
"
|
|
|
|
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
|
|
}
|