diff options
Diffstat (limited to 'mesa3d/Pkgfile')
-rwxr-xr-x | mesa3d/Pkgfile | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/mesa3d/Pkgfile b/mesa3d/Pkgfile new file mode 100755 index 000000000..25ba9ae31 --- /dev/null +++ b/mesa3d/Pkgfile @@ -0,0 +1,63 @@ +# Description: Librairie 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=mesa3d +version=7.11 +release=1 +source=(ftp://ftp.freedesktop.org/pub/mesa/7.11/MesaLib-$version.tar.bz2) + +build() { + cd Mesa-$version + + 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 -j1 + + # mesa + make DESTDIR=$PKG install + + # libgl + bin/minstall lib/lib* $PKG/usr/lib/ + + case `uname -m` in + x86_64) + install -m755 -d $PKG/$XORG_PREFIX/lib64 + install -m755 -d $PKG/$XORG_PREFIX/lib64/X11/modules/extensions + bin/minstall lib/lib* $PKG/usr/lib64/ + esac + + cd src/mesa/drivers/dri + make -C swrast DESTDIR=$PKG install + case `uname -m` in + x86_64) + rm $PKG/usr/lib{,64}/libGL.*;; + i?86) + rm $PKG/usr/lib/libGL.*;; + esac + +} |