blob: 148414acf2769ae74d02a86ab7222429419f13f4 (
plain)
1 # Description: Mesa 3D Graphics Library
2 # URL: http://www.mesa3d.org
3 # Maintainer: Tilman Sauerbeck, tilman at code-monkey dot de
4 # Depends on: libdrm, xorg-makedepend, xorg-glproto, xorg-xextproto, xorg-libx11, xorg-xf86vidmodeproto, xorg-libxext, xorg-libxxf86vm, xorg-libxt
5 #
6 # Nice to have: libtxc_dxtn
7
8 name=mesa3d
9 version=6.5
10 release=1
11 source=(http://dl.sourceforge.net/$name/Mesa{Lib,Demos}-$version.tar.bz2)
12
13 build() {
14 cd Mesa-$version
15
16 sed -i -e 's/define DEFAULT_DRIVER_DIR.*$/define DEFAULT_DRIVER_DIR "\/usr\/lib\/dri"/' src/glx/x11/dri_glx.c
17
18 # setting GLUT_LIB to 'm' will make it so that glxgears and glxinfo
19 # are not linked to libglut (they don't use it at all)
20 # feel free to come up with a nicer way of workind around this problem :)
21 make OPT_FLAGS="$CFLAGS" GLUT_LIB=m linux-dri-x86
22
23 pushd progs/xdemos
24 make OPT_FLAGS="$CFLAGS" GLUT_LIB=m glxgears glxinfo
25 popd
26
27 install -d $PKG/usr/{lib,include}
28 make DESTDIR=$PKG/usr install
29
30 install -d $PKG/usr/lib/dri
31 install lib/*_dri.so $PKG/usr/lib/dri
32
33 install -d $PKG/usr/bin
34 install -m 755 progs/xdemos/glx{gears,info} $PKG/usr/bin
35 }
|