summaryrefslogtreecommitdiffstats
path: root/mesa3d/Pkgfile
blob: 96f20823d5c0dd28d279a5e8bc06c218319fb390 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
description="Mesa 3D Graphics Library"
packager=""
maintainer="Tilman Sauerbeck, tilman at crux dot nu"
url="http://www.mesa3d.org"
depends=(libdrm xorg-makedepend xorg-glproto xorg-xextproto xorg-dri2proto xorg-libx11 xorg-xf86vidmodeproto xorg-libxext xorg-libxxf86vm xorg-libxt xorg-libxdamage expat)

name=mesa3d
version=7.8.2
release=1
source=(ftp://ftp.freedesktop.org/pub/mesa/7.8.2/MesaLib-7.8.2.tar.bz2 Makefile glxgears.c glxinfo.c)
build () 
{ 
    cd Mesa-$version;
    mkdir -p progs/xdemos;
    mv $SRC/{Makefile,glx{gears,info}.c} progs/xdemos;
    ./configure --prefix=/usr --with-demos=xdemos --with-driver=dri --with-dri-driverdir=/usr/lib/dri;
    make;
    make DESTDIR=$PKG install;
    install -d $PKG/usr/bin;
    install -m 755 progs/xdemos/glx{gears,info} $PKG/usr/bin
}