blob: 06faa4b956bfd5473b6ac8ef4a7ef95c023f612e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Description: Low Level Virtual Machine (LLVM)
# URL: http://llvm.org/
# Maintainer: NuTyX core team
# Packager: piernov <piernov@piernov.org>
# Depends on:
# Run on:
name=llvm
version=2.9
release=1
source=(http://llvm.org/releases/$version/{$name,clang}-$version.tgz)
build() {
cd $name-$version
mv ../clang-$version ./tools/clang
case `uname -m` in
x86_64)
enable_pic="yes";;
i?86)
enable_pic="no";;
esac
./configure --prefix=/usr \
--sysconfdir=/etc \
--libdir=/usr/lib/$name \
--datadir=/usr/share/$name \
--enable-shared \
--enable-jit \
--enable-optimized \
--enable-targets=host-only \
--disable-expensive-checks \
--enable-debug-runtime \
--disable-assertions \
--enable-threads \
--enable-pic=$enable_pic
make
make DESTDIR=$PKG KEEP_SYMBOLS=1 PROJ_docsdir=/usr/share/$name PROJ_etcdir=/etc/$name PROJ_libdir=/usr/lib/$name install
sed -i -e "s|ABS_RUN_DIR/lib.*\"|ABS_RUN_DIR/lib/$name\"|" $PKG/usr/bin/llvm-config
install -d $PKG/etc/ld.so.conf.d
echo /usr/lib/llvm > $PKG/etc/ld.so.conf.d/llvm.conf
}
|