void-packages/srcpkgs/MesaLib/template
Juan RP 23dd7d008e Update build_style for all templates.
- There's no need to set build_style for custom-install (default).
- gnu_{configure,makefile} renamed to gnu-{configure,makefile}.
2011-10-24 14:14:47 +02:00

67 lines
2.3 KiB
Text

# Template build file for 'MesaLib'.
pkgname=MesaLib
version=7.11
revision=1
wrksrc="Mesa-${version}"
distfiles="ftp://ftp.freedesktop.org/pub/mesa/$version/$pkgname-$version.tar.bz2"
build_style=gnu-configure
configure_args="--enable-glx-tls --enable-xcb --enable-shared-glapi
--enable-shared-dricore --disable-glut --enable-gles1 --enable-gles2
--enable-egl --with-dri-driverdir=/usr/lib/xorg/modules/dri --with-driver=dri
--with-gallium-drivers=r300,r600,swrast,nouveau --enable-gallium-egl
--enable-openvg"
short_desc="Graphics library similar to SGI's OpenGL"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.mesa3d.org/"
license="MIT, LGPL-2.1"
checksum=f8bf37a00882840a3e3d327576bc26a79ae7f4e18fe1f7d5f17a5b1c80dd7acf
long_desc="
MesaLib is a 3-D graphics library with an API which is very similar to
that of OpenGL*. To the extent that Mesa utilizes the OpenGL command syntax
or state machine, it is being used with authorization from Silicon Graphics,
Inc. However, the author makes no claim that Mesa is in any way a
compatible replacement for OpenGL or associated with Silicon Graphics, Inc."
subpackages="$pkgname-devel"
Add_dependency run libgcc
Add_dependency run glibc
Add_dependency run libstdc++
Add_dependency run libXext
Add_dependency run libXxf86vm
Add_dependency run libXdamage
Add_dependency run libXfixes
Add_dependency run libX11
Add_dependency run libxcb
Add_dependency run libudev
Add_dependency run libdrm ">=2.4.23"
Add_dependency run expat
Add_dependency run libXt
Add_dependency run talloc
Add_dependency build perl ">=0"
Add_dependency build flex
Add_dependency build pkg-config
Add_dependency build glproto
Add_dependency build dri2proto ">=2.1"
Add_dependency build makedepend
Add_dependency build libXext-devel
Add_dependency build libXxf86vm-devel
Add_dependency build libXdamage-devel
Add_dependency build libXfixes-devel
Add_dependency build libX11-devel
Add_dependency build libxcb-devel
Add_dependency build libudev-devel
Add_dependency build libdrm-devel
Add_dependency build expat-devel
Add_dependency build libXt-devel
Add_dependency build talloc-devel
Add_dependency build libxml2-python
Add_dependency build llvm-devel
post_install()
{
local dridir=/usr/lib/xorg/modules/dri
# Make a symlink from gallium software rasterizer to emulate
# the classic one.
cd ${DESTDIR}/${dridir} && ln -sf swrast_dri.so swrastg_dri.so
}