33 lines
779 B
Plaintext
33 lines
779 B
Plaintext
# Description: Mesa 3D Graphics Library
|
|
# URL: http://www.mesa3d.org
|
|
# Maintainer: Tilman Sauerbeck, tilman at crux dot nu
|
|
# Depends on: libdrm, xorg-makedepend, xorg-glproto, xorg-xextproto, xorg-libx11, xorg-xf86vidmodeproto, xorg-libxext, xorg-libxxf86vm, xorg-libxt
|
|
|
|
name=mesa3d
|
|
version=6.5
|
|
release=1
|
|
source=(http://dl.sourceforge.net/$name/Mesa{Lib,Demos}-$version.tar.bz2)
|
|
|
|
build() {
|
|
cd Mesa-$version
|
|
|
|
cat <<EOF >> configs/linux-dri
|
|
GLUT_LIB=m
|
|
DEFINES += -DDEFAULT_DRIVER_DIR=\"/usr/lib/dri\"
|
|
OPT_FLAGS = $CFLAGS
|
|
EOF
|
|
|
|
make linux-dri-x86
|
|
|
|
pushd progs/xdemos
|
|
make glxgears glxinfo
|
|
popd
|
|
|
|
install -d $PKG/usr/{bin,lib/dri,include}
|
|
|
|
make DESTDIR=$PKG/usr install
|
|
|
|
install -m 755 lib/*_dri.so $PKG/usr/lib/dri
|
|
install -m 755 progs/xdemos/glx{gears,info} $PKG/usr/bin
|
|
}
|