summaryrefslogtreecommitdiffstats
path: root/extra/llvm/Pkgfile
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2011-09-24 14:02:20 +0200
committerpiernov <piernov@piernov.org>2011-09-24 14:02:20 +0200
commit8536874140636a692666d880751da18dbe76a65a (patch)
tree9e6bc13848899e009afbc9e8f4af676f3293ec5c /extra/llvm/Pkgfile
parent356914b3eba4d5de7da05bc0c55589d454146fe7 (diff)
downloadnutyx-extra-8536874140636a692666d880751da18dbe76a65a.tar.gz
nutyx-extra-8536874140636a692666d880751da18dbe76a65a.tar.bz2
nutyx-extra-8536874140636a692666d880751da18dbe76a65a.tar.xz
nutyx-extra-8536874140636a692666d880751da18dbe76a65a.zip
llvm 2.9-1 ajout port
Diffstat (limited to 'extra/llvm/Pkgfile')
-rw-r--r--extra/llvm/Pkgfile39
1 files changed, 39 insertions, 0 deletions
diff --git a/extra/llvm/Pkgfile b/extra/llvm/Pkgfile
new file mode 100644
index 000000000..9a45e6cae
--- /dev/null
+++ b/extra/llvm/Pkgfile
@@ -0,0 +1,39 @@
+# 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
+}