diff options
author | William Pitcock <nenolod@dereferenced.org> | 2010-12-17 09:57:10 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2010-12-17 09:58:27 +0000 |
commit | d73d15596971d1271b19edd2e90f2b4ce47646a6 (patch) | |
tree | 5462e3b3f06f37752d82a1176df30c73e89e5dbf /testing/llvm/APKBUILD | |
parent | 9b611b5a4bc24ae04ff1e0bc98d87de3aad3cc24 (diff) | |
download | aports-d73d15596971d1271b19edd2e90f2b4ce47646a6.tar.bz2 aports-d73d15596971d1271b19edd2e90f2b4ce47646a6.tar.xz |
testing/llvm: new aport.
clang is included with this port, but does not generate PIC on x86_64. on
i386, this is not a problem so clang should, in theory, be working fully there.
Diffstat (limited to 'testing/llvm/APKBUILD')
-rw-r--r-- | testing/llvm/APKBUILD | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/testing/llvm/APKBUILD b/testing/llvm/APKBUILD new file mode 100644 index 0000000000..610b153cad --- /dev/null +++ b/testing/llvm/APKBUILD @@ -0,0 +1,57 @@ +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: William Pitcock <nenolod@dereferenced.org> +pkgname=llvm +pkgver=2.8 +pkgrel=0 +pkgdesc="low level virtual machine compiler system" +arch="all" +url="http://llvm.org/" +license="UOI-NCSA" +depends= +makedepends="groff" +install= +subpackages="$pkgname-dev $pkgname-doc" +source="http://llvm.org/releases/$pkgver/llvm-$pkgver.tgz + http://llvm.org/releases/$pkgver/clang-$pkgver.tgz + llvm-uclibc-errno-fsckery.patch" + +_builddir="$srcdir"/build + +prepare() { + mkdir "$_builddir" + + msg "Preparing CLANG sources..." + + mv "$srcdir"/clang-$pkgver "$srcdir"/$pkgname-$pkgver/tools/clang + + msg "Patching LLVM core..." + + cd "$srcdir"/$pkgname-$pkgver + + for i in $source; do + case $i in + *.patch) + msg "Applying $i..." + patch -s -p1 -N -i "$srcdir"/$i || return 1 + ;; + esac + done +} + +build() { + cd "$_builddir" + ../$pkgname-$pkgver/configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install +} + +md5sums="220d361b4d17051ff4bb21c64abe05ba llvm-2.8.tgz +10e14c901fc3728eecbd5b829e011b59 clang-2.8.tgz +089441aa2369c90a0fd0edaa311cb7d6 llvm-uclibc-errno-fsckery.patch" |