2010-04-27 20:03:12 +02:00
|
|
|
# Description: LLVM including clang
|
|
|
|
# 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
|
2013-04-04 12:37:17 +02:00
|
|
|
# Depends on: python
|
2010-04-27 20:03:12 +02:00
|
|
|
|
|
|
|
name=llvm
|
2014-05-13 11:14:17 +02:00
|
|
|
version=3.4.1
|
|
|
|
release=1
|
2013-09-17 12:23:23 +02:00
|
|
|
source=(http://llvm.org/releases/$version/{$name,cfe}-$version.src.tar.gz)
|
2010-04-27 20:03:12 +02:00
|
|
|
|
|
|
|
build() {
|
2014-05-13 14:27:49 +02:00
|
|
|
mv cfe-$version.src $name-$version.src/tools/clang
|
2010-10-30 11:57:14 +02:00
|
|
|
|
2014-05-13 14:27:49 +02:00
|
|
|
cd $name-$version.src
|
2010-04-27 20:03:12 +02:00
|
|
|
|
2014-05-13 14:27:49 +02:00
|
|
|
# enable enable-shard and the R600 target for mesa3d
|
|
|
|
./configure --prefix=/usr --without-oprofile --enable-cxx11 \
|
|
|
|
--enable-targets=x86,x86_64 \
|
|
|
|
--enable-shared --enable-experimental-targets=R600 \
|
|
|
|
--mandir=/usr/man
|
2010-04-27 20:03:12 +02:00
|
|
|
|
2014-05-13 14:27:49 +02:00
|
|
|
make $MAKEFLAGS
|
|
|
|
make DESTDIR=$PKG install
|
2010-04-27 20:03:12 +02:00
|
|
|
|
2014-05-13 14:27:49 +02:00
|
|
|
# Unfortunately, llvm's configure script seems to ignore --mandir.
|
|
|
|
mv $PKG/usr/share/man $PKG/usr
|
|
|
|
rmdir $PKG/usr/share
|
|
|
|
|
|
|
|
find $PKG -name .dir -delete
|
|
|
|
rm -rf $PKG/usr/docs
|
|
|
|
|
|
|
|
# fix symlink b0rkage
|
|
|
|
cd $PKG/usr/lib
|
|
|
|
ln -sf libLLVM-${version}.so libLLVM-${version%.*}.so
|
2010-04-27 20:03:12 +02:00
|
|
|
|
|
|
|
}
|