2017-10-27 20:46:27 +02:00
|
|
|
|
# Tanım: LLVM derleyicisi
|
2016-02-29 23:33:40 +01:00
|
|
|
|
# URL: http://llvm.org/
|
2017-10-27 20:46:27 +02:00
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler: python cmake
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
isim=llvm
|
|
|
|
|
surum=4.0.0
|
|
|
|
|
devir=1
|
|
|
|
|
kaynak=(http://llvm.org/releases/$surum/$isim-$surum.src.tar.xz \
|
2017-06-19 07:58:44 +02:00
|
|
|
|
llvm-config.h)
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2017-06-19 07:58:44 +02:00
|
|
|
|
export CC=gcc
|
|
|
|
|
export CXX=g++
|
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
cd $isim-$surum.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
|
|
|
|
|
2017-06-19 07:58:44 +02:00
|
|
|
|
cmake -DLLVM_ENABLE_CXX1Y=1 \
|
|
|
|
|
-DLLVM_INCLUDE_EXAMPLES=0 \
|
|
|
|
|
-DLLVM_INCLUDE_TESTS=0 \
|
|
|
|
|
-DLLVM_ENABLE_OCAMLDOC=0 \
|
|
|
|
|
-DLLVM_TARGETS_TO_BUILD='X86;AMDGPU;BPF' \
|
|
|
|
|
-DLLVM_BUILD_LLVM_DYLIB=1 \
|
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr ..
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-06-19 07:58:44 +02:00
|
|
|
|
MAKEFLAGS="$MAKEFLAGS" make
|
|
|
|
|
make DESTDIR=$PKG install
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-06-19 07:58:44 +02:00
|
|
|
|
# multilib stub
|
2016-02-29 23:33:40 +01:00
|
|
|
|
mv $PKG/usr/include/llvm/Config/llvm-config{,-64}.h
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-06-19 07:58:44 +02:00
|
|
|
|
install -m 0644 $SRC/llvm-config.h $PKG/usr/include/llvm/Config/
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
|
|
|
|
}
|