aboutsummaryrefslogtreecommitdiffstats
path: root/main/llvm/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/llvm/APKBUILD')
-rw-r--r--main/llvm/APKBUILD21
1 files changed, 19 insertions, 2 deletions
diff --git a/main/llvm/APKBUILD b/main/llvm/APKBUILD
index c54b37064b..798a2a438d 100644
--- a/main/llvm/APKBUILD
+++ b/main/llvm/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=llvm
pkgver=3.2
-pkgrel=1
+pkgrel=2
pkgdesc="low level virtual machine compiler system"
arch="x86 x86_64"
url="http://llvm.org/"
@@ -14,6 +14,7 @@ install=
subpackages="clang $pkgname-dev $pkgname-doc $pkgname-libs"
source="http://llvm.org/releases/$pkgver/llvm-$pkgver.src.tar.gz
http://llvm.org/releases/$pkgver/clang-$pkgver.src.tar.gz
+ llvm-3.2-alpine-linux.patch
"
_builddir="$srcdir"/build
@@ -42,6 +43,14 @@ prepare() {
build() {
cd "$_builddir"
+
+ export CBUILD
+ sed -i -e '/case "\${UNAME_MACHINE}:\${UNAME_SYSTEM}:\${UNAME_RELEASE}:\${UNAME_VERSION}" in/i \' \
+ -e 'if [ x != "x$CBUILD" ]; then echo "$CBUILD"; exit; fi' \
+ ../$pkgname-$pkgver.src/autoconf/config.guess \
+ ../$pkgname-$pkgver.src/projects/sample/autoconf/config.guess \
+ || return 1
+
../$pkgname-$pkgver.src/configure \
--prefix=/usr \
--sysconfdir=/etc \
@@ -50,6 +59,7 @@ build() {
--enable-ffi \
--enable-shared \
|| return 1
+ # --build="$CBUILD" --host="$CHOST" --target="$CTARGET" \
# configure gets it wrong. We do have error_t
sed -i -e 's/.*undef HAVE_ERROR_T.*/#define HAVE_ERROR_T 1/' \
@@ -89,4 +99,11 @@ libs() {
}
md5sums="71610289bbc819e3e15fdd562809a2d7 llvm-3.2.src.tar.gz
-3896ef4334df08563b05d0848ba80582 clang-3.2.src.tar.gz"
+3896ef4334df08563b05d0848ba80582 clang-3.2.src.tar.gz
+7c35c098d3f18bdf48d19ec889e22140 llvm-3.2-alpine-linux.patch"
+sha256sums="125090c4d26740f1d5e9838477c931ed7d9ad70d599ba265f46f3a42cb066343 llvm-3.2.src.tar.gz
+2aaaf03f7c0f6b16fe97ecc81247dc2bf2d4bec7620a77cc74670b7e07ff5658 clang-3.2.src.tar.gz
+5a16f907107781b4942714cf9d5e6ffcd21024f9f601f7b7dfb17108a62080d0 llvm-3.2-alpine-linux.patch"
+sha512sums="cc66171322dbbe40bcac0e0ea5b09df8ff52df63ded304f841f32f702270d6ab1512216413ee52498c3ebee8cd39c4cd23e3855d591944bc2ac0ae76f5be62cc llvm-3.2.src.tar.gz
+99fc57d19b76c42af9821eaaa762056a926eb68178f6b7dd5e8bf092c9ee201a554b91d760d5a30a57f38102eae340e080ef8c6a39327f6881eda391b20b108d clang-3.2.src.tar.gz
+b0982466670b63abde7787e4f1166c357ed2736ff23ce23511788441853bc14e5e9d25763d729dc33706200c39406138356d2cacee72057dc2b2852ea2b78174 llvm-3.2-alpine-linux.patch"