40 lines
921 B
Plaintext
40 lines
921 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.1
|
|
release=3
|
|
source=(http://dl.sourceforge.net/$name/Mesa{Lib,Demos}-$version.tar.bz2 \
|
|
$name.diff)
|
|
|
|
build() {
|
|
cd Mesa-$version
|
|
|
|
patch -Np1 -i $SRC/$name.diff
|
|
|
|
cat <<EOF >> configs/linux-dri
|
|
INSTALL_DIR = $PKG/usr
|
|
DRI_DRIVER_INSTALL_DIR = $PKG/usr/lib/dri
|
|
DRI_DRIVER_SEARCH_DIR = /usr/lib/dri
|
|
OPT_FLAGS = $CFLAGS
|
|
GLUT_LIB = m
|
|
EOF
|
|
|
|
# mach64 is broken w/ libdrm 2.2.0
|
|
sed -i -e 's/^\(DRI_DIRS = .*\) mach64 \(.*\)/\1 \2/' \
|
|
configs/linux-dri
|
|
|
|
make linux-dri-x86
|
|
|
|
pushd progs/xdemos
|
|
make glxgears glxinfo
|
|
popd
|
|
|
|
make install
|
|
|
|
install -d $PKG/usr/bin
|
|
install -m 755 progs/xdemos/glx{gears,info} $PKG/usr/bin
|
|
}
|