milis/talimatname/genel/llvm/talimat

41 lines
943 B
Plaintext

# Description: LLVM derleyici arka uç
# URL: http://llvm.org/
# Packager: milisarge
# Depends on: python
name=llvm
version=3.7.0
release=1
source=(http://llvm.org/releases/$version/$name-$version.src.tar.xz \
config.h llvm-config.h)
build() {
cd $name-$version.src
mkdir build
cd build
../configure --prefix=/usr \
--without-oprofile \
--enable-cxx11 \
--enable-targets=x86,x86_64,r600 \
--enable-shared \
--mandir=/usr/man
make DISABLE_ASSERTIONS=1 $MAKEFLAGS
make DISABLE_ASSERTIONS=1 DESTDIR=$PKG install
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
}