summaryrefslogtreecommitdiffstats
path: root/libgl/Pkgfile
blob: 8e1d475822ad17913152ac5c54a15d10be9b3b95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# 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=8.0.1
release=1
source=(ftp://ftp.freedesktop.org/pub/mesa/$version/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-dri-driverdir=$XORG_PREFIX/lib/dri \
		--with-dri-drivers="i915,i965,nouveau,r200,radeon,swrast" \
		--with-gallium-drivers="i915,r300,r600,nouveau,swrast,svga" \
		--enable-egl \
		--enable-gles1 \
		--enable-gles2 \
		--enable-openvg \
		--enable-gallium-egl \
		--enable-gallium-llvm \
		--enable-texture-float \
		--enable-shared-glapi \
		--enable-glx-tls \
		--enable-dri \
		--enable-shared-dricore \
		--enable-osmesa \
		--enable-xa \
#		--enable-gallium-g3dvl
#		--enable-d3d1x \
#		--enable-xorg
	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
}