From 91fea2e90c87b282a3bb39b080b8c51eb52cdbbe Mon Sep 17 00:00:00 2001 From: root Date: Wed, 23 Jan 2013 00:06:58 -0800 Subject: Wed Jan 23 00:06:58 PST 2013 --- community/llvm-amdgpu-snapshot/PKGBUILD | 61 +++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 community/llvm-amdgpu-snapshot/PKGBUILD (limited to 'community/llvm-amdgpu-snapshot/PKGBUILD') diff --git a/community/llvm-amdgpu-snapshot/PKGBUILD b/community/llvm-amdgpu-snapshot/PKGBUILD new file mode 100644 index 000000000..b36b421f0 --- /dev/null +++ b/community/llvm-amdgpu-snapshot/PKGBUILD @@ -0,0 +1,61 @@ +# $Id: PKGBUILD 82677 2013-01-22 22:38:25Z lcarlier $ +# Maintainer: Laurent Carlier +# Contributor: Thomas Dziedzic < gostrc at gmail > +# Contributor: Roberto Alsina +# Contributor: Tomas Lindquist Olsen +# Contributor: Anders Bergh +# Contributor: Tomas Wilhelmsson + +pkgname=llvm-amdgpu-snapshot +pkgver=20121230 +pkgrel=1 +pkgdesc='Low Level Virtual Machine with AMDGPU enabled to build r600g shader llvm support' +arch=('i686' 'x86_64') +url="http://llvm.org" +license=('custom:University of Illinois/NCSA Open Source License') +depends=('libffi' 'python2' 'ocaml') +conflicts=('llvm') +source=(ftp://ftp.archlinux.org/other/community/llvm-amdgpu/llvm-amdgpu-master.20121230.tar.gz) +md5sums=('dbf9ad608a68fc758192c3d4716600d9') + +build() { + cd "$srcdir"/llvm-master + + sed -i 's/python$/python2/' utils/llvm-build/llvm-build + + # Apply strip option to configure + _optimized_switch="enable" + [[ $(check_option strip) == n ]] && _optimized_switch="disable" + + # Include location of libffi headers in CPPFLAGS + export CPPFLAGS="$CPPFLAGS $(pkg-config --cflags libffi)" + + # Force the use of GCC instead of clang + PYTHON=python2 CC=gcc CXX=g++ \ + ./configure \ + --prefix=/usr \ + --libdir=/usr/lib/llvm \ + --sysconfdir=/etc \ + --enable-shared \ + --enable-libffi \ + --enable-targets=all \ + --enable-experimental-targets=AMDGPU \ + --disable-expensive-checks \ + --with-binutils-include=/usr/include \ + --$_optimized_switch-optimized + + make REQUIRES_RTTI=1 +} + +package() { + cd "$srcdir"/llvm-master + + make DESTDIR="$pkgdir" install + + # Remove useless files + rm -r "$pkgdir"/usr/{docs,lib/ocaml} + # Fix permissions of static libs + chmod -x "$pkgdir"/usr/lib/lib*.a + + install -Dm644 LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} -- cgit v1.2.3-54-g00ecf