diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-19 06:33:05 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-19 06:39:52 +0000 |
commit | 752a8a05f3a4303a0c3d8b9b30e369aa1f60e71e (patch) | |
tree | b08cb700ca6fa70a18cd0630603a6a090f68dc3b /testing | |
parent | 2b6b06cf40ef82a0943217b3312c77b21be7f64a (diff) | |
download | aports-752a8a05f3a4303a0c3d8b9b30e369aa1f60e71e.tar.bz2 aports-752a8a05f3a4303a0c3d8b9b30e369aa1f60e71e.tar.xz |
testing/llvm: split out clang and llvm-libs
Diffstat (limited to 'testing')
-rw-r--r-- | testing/llvm/APKBUILD | 42 | ||||
-rw-r--r-- | testing/llvm/clang-2.9-add_gcc_vers.patch | 12 |
2 files changed, 48 insertions, 6 deletions
diff --git a/testing/llvm/APKBUILD b/testing/llvm/APKBUILD index 92f70b923..6f8ac9002 100644 --- a/testing/llvm/APKBUILD +++ b/testing/llvm/APKBUILD @@ -2,17 +2,18 @@ # Maintainer: William Pitcock <nenolod@dereferenced.org> pkgname=llvm pkgver=2.9 -pkgrel=0 +pkgrel=1 pkgdesc="low level virtual machine compiler system" arch="x86" url="http://llvm.org/" license="UOI-NCSA" depends= -makedepends="groff perl" +makedepends="groff perl libffi-dev" install= -subpackages="$pkgname-dev $pkgname-doc" +subpackages="clang $pkgname-dev $pkgname-doc $pkgname-libs" source="http://llvm.org/releases/$pkgver/llvm-$pkgver.tgz http://llvm.org/releases/$pkgver/clang-$pkgver.tgz + clang-2.9-add_gcc_vers.patch " _builddir="$srcdir"/build @@ -40,22 +41,51 @@ prepare() { build() { cd "$_builddir" - ../$pkgname-$pkgver/configure --prefix=/usr \ + ../$pkgname-$pkgver/configure \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + --enable-ffi \ + --enable-shared \ + || return 1 # configure gets it wrong. We do have error_t sed -i -e 's/.*undef HAVE_ERROR_T.*/#define HAVE_ERROR_T 1/' \ -e '/define error_t/d' \ ./include/llvm/Config/config.h || return 1 + make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install + + #relocate docs + mkdir -p "$pkgdir"/usr/share/doc + mv "$pkgdir"/usr/docs/llvm "$pkgdir"/usr/share/doc/ || return 1 + rmdir "$pkgdir"/usr/docs || return 1 +} + +clang() { + pkgdesc="A C language family front-end for LLVM" + mkdir -p "$subpkgdir"/usr/bin \ + "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/bin/clang* "$pkgdir"/usr/bin/tblgen \ + "$subpkgdir"/usr/bin/ || return 1 + mv "$pkgdir"/usr/lib/clang \ + "$pkgdir"/usr/lib/libclang.so \ + "$subpkgdir"/usr/lib/ || return 1 + +} + +libs() { + pkgdesc="LLVM shared libraries" + mkdir -p "$subpkgdir"/usr/lib/ + mv "$pkgdir"/usr/lib/*.so "$subpkgdir"/usr/lib/ } md5sums="793138412d2af2c7c7f54615f8943771 llvm-2.9.tgz -634de18d04b7a4ded19ec4c17d23cfca clang-2.9.tgz" +634de18d04b7a4ded19ec4c17d23cfca clang-2.9.tgz +996988e8a9d74b9393fde8fb8561dbaf clang-2.9-add_gcc_vers.patch" diff --git a/testing/llvm/clang-2.9-add_gcc_vers.patch b/testing/llvm/clang-2.9-add_gcc_vers.patch new file mode 100644 index 000000000..8ce320ac6 --- /dev/null +++ b/testing/llvm/clang-2.9-add_gcc_vers.patch @@ -0,0 +1,12 @@ +--- ./tools/clang/lib/Driver/ToolChains.cpp.add_gcc_vers 2011-03-21 22:29:27.000000000 +0100 ++++ ./tools/clang/lib/Driver/ToolChains.cpp 2011-08-01 18:20:29.504194241 +0200 +@@ -1449,7 +1449,8 @@ + GccTriple = "i586-suse-linux"; + } + +- const char* GccVersions[] = {"4.5.2", "4.5.1", "4.5", "4.4.5", "4.4.4", ++ const char* GccVersions[] = {"4.6.1", "4.6.0", ++ "4.5.2", "4.5.1", "4.5", "4.4.5", "4.4.4", + "4.4.3", "4.4", "4.3.4", "4.3.3", "4.3.2", + "4.3", "4.2.4", "4.2.3", "4.2.2", "4.2.1", + "4.2"}; |