milis/talimatname/genel/llvm/talimat

41 lines
943 B
Plaintext
Raw Normal View History

2017-04-04 09:31:37 +02:00
# Description: LLVM derleyici arka uç
2016-02-29 23:33:40 +01:00
# URL: http://llvm.org/
2017-04-04 09:31:37 +02:00
# Packager: milisarge
2016-02-29 23:33:40 +01:00
# Depends on: python
2016-02-24 01:27:23 +01:00
name=llvm
2016-02-29 23:33:40 +01:00
version=3.7.0
2016-02-24 01:27:23 +01:00
release=1
2016-02-29 23:33:40 +01:00
source=(http://llvm.org/releases/$version/$name-$version.src.tar.xz \
config.h llvm-config.h)
2016-02-24 01:27:23 +01:00
build() {
2016-02-29 23:33:40 +01:00
cd $name-$version.src
2016-02-24 01:27:23 +01:00
2016-02-29 23:33:40 +01:00
mkdir build
cd build
2016-02-24 01:27:23 +01:00
2016-02-29 23:33:40 +01:00
../configure --prefix=/usr \
--without-oprofile \
--enable-cxx11 \
--enable-targets=x86,x86_64,r600 \
--enable-shared \
--mandir=/usr/man
2016-02-24 01:27:23 +01:00
2016-02-29 23:33:40 +01:00
make DISABLE_ASSERTIONS=1 $MAKEFLAGS
make DISABLE_ASSERTIONS=1 DESTDIR=$PKG install
2016-02-24 01:27:23 +01:00
2016-02-29 23:33:40 +01:00
find $PKG -name .dir -delete
rm -rf $PKG/usr/docs
2016-02-24 01:27:23 +01:00
2016-02-29 23:33:40 +01:00
# 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/
2016-02-24 01:27:23 +01:00
2016-02-29 23:33:40 +01:00
# remove example hello transform
rm $PKG/usr/lib/LLVMHello.so
2016-02-24 01:27:23 +01:00
}