xorg/mesa3d/Pkgfile

47 lines
1.1 KiB
Plaintext
Raw Normal View History

2006-04-07 18:48:00 +02:00
# Description: Mesa 3D Graphics Library
# URL: http://www.mesa3d.org
# Maintainer: Tilman Sauerbeck, tilman at crux dot nu
2007-06-21 13:33:47 +02:00
# Depends on: libdrm, xorg-makedepend, xorg-glproto, xorg-xextproto, xorg-libx11, xorg-xf86vidmodeproto, xorg-libxext, xorg-libxxf86vm, xorg-libxt, xorg-libxdamage
2006-04-07 18:48:00 +02:00
name=mesa3d
2008-08-16 22:15:29 +02:00
version=7.0.4
release=1
2008-04-05 11:30:01 +02:00
source=(http://dl.sourceforge.net/$name/Mesa{Lib,Demos}-$version.tar.bz2)
2006-04-07 18:48:00 +02:00
build() {
# https://bugs.freedesktop.org/show_bug.cgi?id=11380
export CFLAGS="$CFLAGS -fno-ivopts"
2006-04-07 18:48:00 +02:00
cd Mesa-$version
2006-04-10 11:09:07 +02:00
cat <<EOF >> configs/linux-dri
2006-09-16 15:36:44 +02:00
INSTALL_DIR = $PKG/usr
DRI_DRIVER_INSTALL_DIR = $PKG/usr/lib/dri
DRI_DRIVER_SEARCH_DIR = /usr/lib/dri
2006-04-10 11:09:07 +02:00
OPT_FLAGS = $CFLAGS
GLUT_LIB = m
2006-04-10 11:09:07 +02:00
EOF
2006-04-07 18:48:00 +02:00
2008-06-27 14:23:27 +02:00
# Honor $CC
if [ -n "$CC" ]; then
echo "CC=$CC" >> configs/linux-dri
fi
2007-06-06 16:51:22 +02:00
# nouveau is broken w/ libdrm 2.3.0
sed -i -e 's/nouveau//' configs/linux-dri
2006-04-10 11:09:07 +02:00
make linux-dri-x86
2006-04-07 18:48:00 +02:00
pushd progs/xdemos
2006-04-10 11:09:07 +02:00
make glxgears glxinfo
2006-04-07 18:48:00 +02:00
popd
2006-09-16 15:36:44 +02:00
make install
2006-04-07 18:48:00 +02:00
2006-09-16 15:36:44 +02:00
install -d $PKG/usr/bin
2006-04-07 18:48:00 +02:00
install -m 755 progs/xdemos/glx{gears,info} $PKG/usr/bin
2008-05-14 13:09:14 +02:00
# remove pkgmk's working directory from the pkgconfig files
sed -i -e 's/^prefix=.*$/prefix=\/usr/' $PKG/usr/lib/pkgconfig/*.pc
2006-04-07 18:48:00 +02:00
}