blob: 73aebda2ca3540dc20b1621a33f19e1ef384163e (
plain)
1 # Description: LLVM including clang
2 # URL: http://llvm.org
3 # Maintainer: Thomas Penteker, tek at serverop dot de
4 # Packager: Tilman Sauerbeck, tilman at crux dot nu
5 # Depends on: python
6
7 name=llvm
8 version=3.3
9 release=2
10 source=(http://llvm.org/releases/$version/{$name,cfe}-$version.src.tar.gz)
11
12 build() {
13 mv cfe-$version.src $name-$version.src/tools/clang
14
15 cd $name-$version.src
16
17 # enable enable-shard and the R600 target for mesa3d
18 ./configure --prefix=/usr --without-oprofile --enable-cxx11 \
19 --enable-targets=x86,x86_64 \
20 --enable-shared --enable-experimental-targets=R600
21
22 make $MAKEFLAGS
23 make DESTDIR=$PKG install
24
25 # Unfortunately, llvm's configure script seems to ignore --mandir.
26 mv $PKG/usr/share/man $PKG/usr
27 rmdir $PKG/usr/share
28
29 find $PKG -name .dir -delete
30 rm -rf $PKG/usr/docs
31 }
|