diff options
author | Márcio Alexandre Silva Delgado <coadde@adinet.com.uy> | 2012-09-04 22:00:55 -0300 |
---|---|---|
committer | Márcio Alexandre Silva Delgado <coadde@adinet.com.uy> | 2012-09-04 22:00:55 -0300 |
commit | ac55e256051e02dac6320d277926cc70ea65cb81 (patch) | |
tree | f00a62f3334a28a5d0ba13d56c690cfd2f0c0e8d /libre/libcl-libre | |
parent | 934c1b9fe4dd4b6eeceb5d51730099c222deaab1 (diff) | |
download | abslibre-ac55e256051e02dac6320d277926cc70ea65cb81.tar.gz abslibre-ac55e256051e02dac6320d277926cc70ea65cb81.tar.bz2 abslibre-ac55e256051e02dac6320d277926cc70ea65cb81.zip |
libcl-libre: add package to libre repo
Diffstat (limited to 'libre/libcl-libre')
-rw-r--r-- | libre/libcl-libre/PKGBUILD | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/libre/libcl-libre/PKGBUILD b/libre/libcl-libre/PKGBUILD new file mode 100644 index 000000000..5dd3ede01 --- /dev/null +++ b/libre/libcl-libre/PKGBUILD @@ -0,0 +1,99 @@ +# Maintainer: Márcio Silva <coadde@lavabit.com> + +pkgname=libcl-libre +true && pkgver=9.0.git20120904 +true && pkgrel=1 +arch=( + i686 + x86_64 + mips64el +) +makedepends=( + clang + dri2proto + git + glproto + imake + libdrm + libxdamage + libxext + libxml2 + llvm + python2 +) +license=( + MIT + Khronos + LGPL +) +url=http://mesa3d.sourceforge.net +#source=( +# ftp://ftp.freedesktop.org/pub/mesa/$pkgver/MesaLib-$pkgver.tar.bz2 +#) +#sha512sums=( +# b7e8879e92252d0588d9eeeed904fd502ce1f48551b9a97f52aeb1318c79a80fab27504521107d61fbb5d986b2d778d89023a892baf9f1c5a5d2ee3746fefa57 +#) + +_gitroot=git://anongit.freedesktop.org/git/mesa/mesa +_gitname=mesa + +build() { + msg 'Connecting to git.freedesktop.org GIT server....' + if [ -d $_gitname ] ; then + cd $_gitname && git pull origin + else + git clone $_gitroot --depth 1 + fi + msg 'GIT checkout done or server timeout' + msg 'Starting make...' + + cd $srcdir + + # Cleanup and prepare the build dir + [ -d build ] && rm -rf build + cp -r $_gitname build + cd build + + #cd $srcdir/Mesa-$pkgver + + autoreconf -vfi + ./autogen.sh --prefix=/usr \ + --enable-opencl \ + --enable-gallium-llvm \ + --enable-r600-llvm-compiler \ + --with-clang-libdir=/usr/lib \ + --with-dri-drivers=nouveau,radeon,swrast \ + --with-gallium-drivers=r300,r600,nouveau,swrast + make +} + +package() { + depends=( + gcc-libs + libdrm-git + libffi + libxcb + udev + ) + conflicts=( + ${pkgname%-libre} + ) + provides=( + ${pkgname%-libre} + ) + replaces=( + ${pkgname%-libre} + ) + pkgdesc='A libre version of OpenCL library and ICD loader, (Mesa OpenCL)' + + make -C $srcdir/build/src/gallium/targets/opencl DESTDIR=$pkgdir install + + cd $srcdir/build + #install -m755 -d $pkgdir/usr/lib/opencl + install -m755 -d $pkgdir/usr/share/licenses/${pkgname%-libre} + #bin/minstall src/gallium/targets/opencl/libOpenCL.la $pkgdir/usr/lib + #bin/minstall lib/libOpenCL.so* $pkgdir/usr/lib + #bin/minstall src/gallium/targets/pipe-loader/*.so $pkgdir/usr/lib/${pkgname%-libre} + bin/minstall docs/COPYING $pkgdir/usr/share/licenses/${pkgname%-libre} + bin/minstall docs/license.html $pkgdir/usr/share/licenses/${pkgname%-libre} +} |