29 lines
610 B
Plaintext
29 lines
610 B
Plaintext
# Description: LLVM including clang
|
|
# URL: http://llvm.org
|
|
# Maintainer: Tilman Sauerbeck, tilman at crux dot nu
|
|
|
|
name=llvm
|
|
version=2.8
|
|
release=2
|
|
source=(http://llvm.org/releases/$version/{$name,clang}-$version.tgz llvm.diff)
|
|
|
|
build() {
|
|
patch -p1 -d clang-$version -i $SRC/llvm.diff
|
|
|
|
mv clang-$version $name-$version/tools/clang
|
|
|
|
cd $name-$version
|
|
|
|
./configure --prefix=/usr --without-oprofile
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
# 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
|
|
}
|