[arch-commits] Commit in llvm-amdgpu-snapshot/repos (4 files)
Laurent Carlier
lcarlier at nymeria.archlinux.org
Tue Feb 19 21:15:12 UTC 2013
Date: Tuesday, February 19, 2013 @ 22:15:12
Author: lcarlier
Revision: 84556
archrelease: copy trunk to community-testing-i686, community-testing-x86_64
Added:
llvm-amdgpu-snapshot/repos/community-testing-i686/
llvm-amdgpu-snapshot/repos/community-testing-i686/PKGBUILD
(from rev 84555, llvm-amdgpu-snapshot/trunk/PKGBUILD)
llvm-amdgpu-snapshot/repos/community-testing-x86_64/
llvm-amdgpu-snapshot/repos/community-testing-x86_64/PKGBUILD
(from rev 84555, llvm-amdgpu-snapshot/trunk/PKGBUILD)
-----------------------------------+
community-testing-i686/PKGBUILD | 62 ++++++++++++++++++++++++++++++++++++
community-testing-x86_64/PKGBUILD | 62 ++++++++++++++++++++++++++++++++++++
2 files changed, 124 insertions(+)
Copied: llvm-amdgpu-snapshot/repos/community-testing-i686/PKGBUILD (from rev 84555, llvm-amdgpu-snapshot/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2013-02-19 21:15:12 UTC (rev 84556)
@@ -0,0 +1,62 @@
+# $Id$
+# Maintainer: Laurent Carlier <lordheavym at gmail.com>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+# Contributor: Roberto Alsina <ralsina at kde.org>
+# Contributor: Tomas Lindquist Olsen <tomas at famolsen.dk>
+# Contributor: Anders Bergh <anders at archlinuxppc.org>
+# Contributor: Tomas Wilhelmsson <tomas.wilhelmsson at gmail.com>
+
+pkgname=llvm-amdgpu-snapshot
+pkgver=20130219
+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=('e0be7122e8b008b9ca55310903a9ed99')
+
+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"
+}
+
Copied: llvm-amdgpu-snapshot/repos/community-testing-x86_64/PKGBUILD (from rev 84555, llvm-amdgpu-snapshot/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2013-02-19 21:15:12 UTC (rev 84556)
@@ -0,0 +1,62 @@
+# $Id$
+# Maintainer: Laurent Carlier <lordheavym at gmail.com>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+# Contributor: Roberto Alsina <ralsina at kde.org>
+# Contributor: Tomas Lindquist Olsen <tomas at famolsen.dk>
+# Contributor: Anders Bergh <anders at archlinuxppc.org>
+# Contributor: Tomas Wilhelmsson <tomas.wilhelmsson at gmail.com>
+
+pkgname=llvm-amdgpu-snapshot
+pkgver=20130219
+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=('e0be7122e8b008b9ca55310903a9ed99')
+
+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"
+}
+
More information about the arch-commits
mailing list