blob: 229057db1d7465b1a94c73acd97f4a6ad86a0dd2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# $Id: PKGBUILD 85846 2013-03-07 17:52:47Z lcarlier $
# Maintainer: Laurent Carlier <lordheavym@gmail.com>
# Contributor: Thomas Dziedzic < gostrc at gmail >
# Contributor: Roberto Alsina <ralsina@kde.org>
# Contributor: Tomas Lindquist Olsen <tomas@famolsen.dk>
# Contributor: Anders Bergh <anders@archlinuxppc.org>
# Contributor: Tomas Wilhelmsson <tomas.wilhelmsson@gmail.com>
pkgname=llvm-amdgpu-snapshot
pkgver=20130307
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.${pkgver}.tar.gz)
md5sums=('6aa900855eea11b6dce86fb04d813d75')
build() {
cd "$srcdir"/llvm-*
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=R600 \
--disable-expensive-checks \
--with-binutils-include=/usr/include \
--$_optimized_switch-optimized
make REQUIRES_RTTI=1
}
package() {
cd "$srcdir"/llvm-*
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"
}
|