From d79fcad704ae2e735f07d6b58b63e7c326c1fb3d Mon Sep 17 00:00:00 2001 From: Márcio Alexandre Silva Delgado Date: Tue, 3 Sep 2013 02:18:12 -0300 Subject: fixing libclc-svn and mesa-libcl; adding lib32-libclc-svn package to libre repo --- libre/lib32-libclc-svn/PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ libre/libclc-svn/PKGBUILD | 6 +++--- libre/mesa-libcl/PKGBUILD | 5 +++-- 3 files changed, 47 insertions(+), 5 deletions(-) create mode 100644 libre/lib32-libclc-svn/PKGBUILD (limited to 'libre') diff --git a/libre/lib32-libclc-svn/PKGBUILD b/libre/lib32-libclc-svn/PKGBUILD new file mode 100644 index 000000000..c1c7e021c --- /dev/null +++ b/libre/lib32-libclc-svn/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Márcio Silva + +_pkgname=libclc +pkgname=lib32-$_pkgname-svn +pkgver=$(LC_ALL=C date -u +%Y%m%d) +pkgrel=2 +arch=x86_64 +pkgdesc='Library requirements of the OpenCL C programming language (32-bit)' +url=http://libclc.llvm.org/ +license=MIT +depends=(lib32-llvm-libs libclc-svn) +makedepends=(clang lib32-llvm python2 svn) +provides=(lib32-$_pkgname) +conflicts=lib32-$_pkgname +source=$_pkgname::svn+http://llvm.org/svn/llvm-project/libclc/trunk +sha512sums=SKIP + +prepare() { + sed -i 's|/usr/bin/python|/usr/bin/python2|g; + ' $srcdir/$_pkgname/{configure,build/ninja_syntax}.py +} + +build() { + export CC="gcc -m32" + export CXX="g++ -m32" + + cd $srcdir/$_pkgname + ./configure.py --prefix=/usr\ + --libexecdir=/usr/lib32/clc\ + --pkgconfigdir=/usr/lib32/pkgconfig\ + --with-llvm-config=/usr/bin/llvm-config32 + make +} + +package() { + cd $srcdir/$_pkgname + make DESTDIR=$pkgdir install + install -vDm644 LICENSE.TXT $pkgdir/usr/share/licenses/$pkgname/LICENSE + msg 'remove useless include dir' + rm -vrf $pkgdir/usr/include +} diff --git a/libre/libclc-svn/PKGBUILD b/libre/libclc-svn/PKGBUILD index ada19c6ff..3b7034348 100644 --- a/libre/libclc-svn/PKGBUILD +++ b/libre/libclc-svn/PKGBUILD @@ -5,11 +5,11 @@ pkgname=$_pkgname-svn pkgver=$(LC_ALL=C date -u +%Y%m%d) pkgrel=1 arch=(mips64el x86_64 i686) -pkgdesc='Library requirements of the OpenCL C programming language.' +pkgdesc='Library requirements of the OpenCL C programming language' url=http://libclc.llvm.org/ license=MIT -depends=clang -makedepends=(svn python2) +depends=llvm-libs +makedepends=(clang python2 svn) provides=($_pkgname) conflicts=$_pkgname source=$_pkgname::svn+http://llvm.org/svn/llvm-project/libclc/trunk diff --git a/libre/mesa-libcl/PKGBUILD b/libre/mesa-libcl/PKGBUILD index 554959013..828e2bdb9 100644 --- a/libre/mesa-libcl/PKGBUILD +++ b/libre/mesa-libcl/PKGBUILD @@ -5,17 +5,18 @@ _pkgname=libcl pkgname=$pkgbase-$_pkgname _pkgflag=libre pkgver=9.2.0 -pkgrel=1 +pkgrel=2 pkgdesc='Mesa 3-D OpenCL library' url=http://${pkgbase}3d.sourceforge.net license=(MIT Khronos LGPL) arch=(mips64el x86_64 i686) depends=( libclc - mesa + $pkgbase ) optdepends='opencl-headers: headers necessary for OpenCL development' makedepends=( + clang dri2proto glproto imake -- cgit v1.2.3-54-g00ecf