opt/llvm/Pkgfile

39 lines
999 B
Plaintext
Raw Normal View History

# Description: LLVM compiler backend
# URL: http://llvm.org/
2012-07-05 16:19:11 +02:00
# Maintainer: Thomas Penteker, tek at serverop dot de
# Packager: Tilman Sauerbeck, tilman at crux dot nu
# Depends on: python
2010-04-27 20:03:12 +02:00
name=llvm
2015-07-16 21:06:19 +02:00
version=3.6.2
2014-05-13 10:27:09 +02:00
release=1
2015-02-23 16:23:26 +01:00
source=(http://llvm.org/releases/$version/$name-$version.src.tar.xz \
config.h llvm-config.h)
2010-04-27 20:03:12 +02:00
build() {
cd $name-$version.src
2010-04-27 20:03:12 +02:00
2014-05-13 15:51:02 +02:00
./configure --prefix=/usr \
--without-oprofile \
--enable-cxx11 \
--enable-targets=x86,x86_64,r600 \
--enable-shared \
2014-05-13 10:53:59 +02:00
--mandir=/usr/man
2010-04-27 20:03:12 +02:00
2015-07-16 21:06:19 +02:00
make DISABLE_ASSERTIONS=1 $MAKEFLAGS
make DISABLE_ASSERTIONS=1 DESTDIR=$PKG install
2010-04-27 20:03:12 +02:00
2014-05-13 14:27:49 +02:00
find $PKG -name .dir -delete
rm -rf $PKG/usr/docs
# multilib stubs
mv $PKG/usr/include/llvm/Config/config{,-64}.h
mv $PKG/usr/include/llvm/Config/llvm-config{,-64}.h
install -m 0644 $SRC/config.h $PKG/usr/include/llvm/Config/
install -m 0644 $SRC/llvm-config.h $PKG/usr/include/llvm/Config/
# remove example hello transform
rm $PKG/usr/lib/LLVMHello.so
2010-04-27 20:03:12 +02:00
}