summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorMárcio Alexandre Silva Delgado <coadde@adinet.com.uy>2012-09-06 01:57:15 -0300
committerMárcio Alexandre Silva Delgado <coadde@adinet.com.uy>2012-09-06 01:57:15 -0300
commit1161e1ddc8a39cfccc0d053603488e8e588d04dc (patch)
tree5bf459c49b3566be109af54c77ca02a11c0909d4 /pcr
parentec0cb30ae401e68e0d79962a70652529f11ce953 (diff)
libegl-git: add package to pcr
Diffstat (limited to 'pcr')
-rw-r--r--pcr/libegl-git/PKGBUILD105
1 files changed, 105 insertions, 0 deletions
diff --git a/pcr/libegl-git/PKGBUILD b/pcr/libegl-git/PKGBUILD
new file mode 100644
index 000000000..aa48ab5a3
--- /dev/null
+++ b/pcr/libegl-git/PKGBUILD
@@ -0,0 +1,105 @@
+# Maintainer: Márcio Silva <coadde@lavabit.com>
+
+pkgname=libegl-git
+true && pkgver=9.0.0.git20120906
+true && pkgrel=1
+_mesaver=9.0
+arch=(
+ i686
+ x86_64
+ mips64el
+)
+makedepends=(
+ clang
+ dri2proto
+ git
+ glproto-git
+ imake
+ libdrm-git
+ libxdamage
+ libxml2
+ libxxf86vm
+ python2
+)
+license=(
+ MIT
+ Khronos
+ LGPL
+)
+depends=(
+ khrplatform-devel-git
+ libgbm-git
+ libxext
+ libxfixes
+ libvg-git
+)
+conflicts=(
+ ${pkgname%-git}
+ ${pkgname%-git}-wayland
+ ${pkgname%-git}-wayland-git
+)
+provides=(
+ ${pkgname%-git}=$_mesaver
+ ${pkgname%-git}-wayland-git=$_mesaver
+)
+pkgdesc='Mesa EGL libraries and headers'
+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-egl \
+ --enable-gallium-egl \
+ --enable-gallium-gbm \
+ --enable-gbm \
+ --enable-openvg \
+ --with-clang-libdir=/usr/lib \
+ make
+}
+
+package() {
+ #make -C $srcdir/build/src/egl DESTDIR=$pkgdir install
+ #make -C $srcdir/build/src/gallium/targets/egl-static DESTDIR=$pkgdir install
+
+ cd $srcdir/build
+ install -m755 -d $pkgdir/usr/include/EGL
+ install -m755 -d $pkgdir/usr/lib/egl
+ install -m755 -d $pkgdir/usr/lib/pkgconfig
+ install -m755 -d $pkgdir/usr/share/doc/${pkgname%-git}
+ install -m755 -d $pkgdir/usr/share/licenses/${pkgname%-git}
+ bin/minstall include/EGL/* $pkgdir/usr/include/EGL
+ bin/minstall src/egl/main/libEGL.la $pkgdir/usr/lib
+ bin/minstall lib/libEGL.so* $pkgdir/usr/lib
+ bin/minstall lib/egl/egl_gallium.so $pkgdir/usr/lib/egl
+ bin/minstall src/egl/main/egl.pc $pkgdir/usr/lib/pkgconfig
+ bin/minstall docs/egl.html $pkgdir/usr/share/doc/${pkgname%-git}
+ bin/minstall docs/COPYING $pkgdir/usr/share/licenses/${pkgname%-git}
+ bin/minstall docs/license.html $pkgdir/usr/share/licenses/${pkgname%-git}
+}