diff options
author | piernov <piernov@piernov.org> | 2012-01-22 11:53:58 +0100 |
---|---|---|
committer | piernov <piernov@piernov.org> | 2012-01-22 11:53:58 +0100 |
commit | 656378eb13dd8c1af44a368e7dfee3333eb055a2 (patch) | |
tree | 9707d7a6d1af19d5c1d8431821232ae81ce42d85 /libgl/Pkgfile | |
parent | 9626427c1a1d9c292fc519810c13b9a8073e777f (diff) | |
parent | 8d576551b5c270c65fe06443b7295d73cc662064 (diff) | |
download | nutyx-pakxe-656378eb13dd8c1af44a368e7dfee3333eb055a2.tar.gz nutyx-pakxe-656378eb13dd8c1af44a368e7dfee3333eb055a2.tar.bz2 nutyx-pakxe-656378eb13dd8c1af44a368e7dfee3333eb055a2.tar.xz nutyx-pakxe-656378eb13dd8c1af44a368e7dfee3333eb055a2.zip |
Merged with http://kiao.no-ip.info/NuTyX/git/nutyx-pakxe → Repository splitted → nutyx-pakxe
Diffstat (limited to 'libgl/Pkgfile')
-rw-r--r-- | libgl/Pkgfile | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/libgl/Pkgfile b/libgl/Pkgfile new file mode 100644 index 000000000..ef2401a8c --- /dev/null +++ b/libgl/Pkgfile @@ -0,0 +1,47 @@ +# Description: Bibliothèque graphique 3D Mesa +# URL: http://www.mesa3d.org +# Maintainer: NuTyX core team +# Packager: thierryn1 at hispeed dot ch +# Depends on: talloc, expat, libdrm, xorg-makedepend, xorg-glproto, xorg-xextproto, xorg-dri2proto, xorg-libx11, xorg-libxext, xorg-libxxf86vm, xorg-libxt, xorg-libxdamage, xorg-libxmu, xorg-libxi, llvm +# Run on: talloc,expat,libdrm,xorg-makedepend,xorg-libx11,xorg-libxext,xorg-libxxf86vm,xorg-libxt,xorg-libxdamage,xorg-libxmu,xorg-libxi + +name=libgl +version=7.11.2 +release=1 +source=(ftp://ftp.freedesktop.org/pub/mesa/$version/MesaLib-$version.tar.bz2 + llvm3.0.patch) + +build() { + cd Mesa-$version + + patch -p1 < ../llvm3.0.patch + + sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" $(find $SRC -name '*.py') + sed -i -e "s|PYTHON2 = python|PYTHON2 = python2|" $SRC/Mesa-$version/configs/{default,autoconf.in} + sed -i -e "s|python|python2|" $SRC/Mesa-$version/src/gallium/auxiliary/Makefile + + ./configure $XORG_CONFIG \ + --with-driver=dri \ + --with-dri-driverdir=$XORG_PREFIX/lib/dri \ + --with-dri-drivers="i810,i915,i965,mga,mach64,nouveau,r128,r200,r300,r600,radeon,savage,sis,unichrome,tdfx,swrast" \ + --with-gallium-drivers="r300,r600,nouveau,swrast" \ + --enable-egl \ + --enable-gles1 \ + --enable-gles2 \ + --enable-openvg \ + --enable-gallium-egl \ + --enable-gallium-llvm \ + --enable-texture-float \ + --enable-glut \ + --enable-shared-glapi \ + --enable-glx-tls \ + --enable-xcb \ + --enable-shared-dricore + + # La compilation multithread casse le dricore partagé. + make + + install -m755 -d $PKG/$XORG_PREFIX/lib{,/X11/modules/extensions} + bin/minstall lib/libGL.so* $PKG/$XORG_PREFIX/lib/ + ln -s libglx.xorg $PKG/$XORG_PREFIX/lib/X11/modules/extensions/libglx.so +} |