2008-10-04 06:29:49 +02:00
|
|
|
# Template build file for 'MesaLib'.
|
|
|
|
pkgname=MesaLib
|
2011-11-28 09:31:26 +01:00
|
|
|
version=7.11.2
|
2012-01-07 11:56:37 +01:00
|
|
|
revision=1
|
2010-03-29 10:21:32 +02:00
|
|
|
wrksrc="Mesa-${version}"
|
2010-11-01 18:58:55 +01:00
|
|
|
distfiles="ftp://ftp.freedesktop.org/pub/mesa/$version/$pkgname-$version.tar.bz2"
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2011-08-01 12:18:47 +02:00
|
|
|
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
|
2011-08-02 11:44:40 +02:00
|
|
|
--with-gallium-drivers=r300,r600,swrast,nouveau --enable-gallium-egl
|
|
|
|
--enable-openvg"
|
2008-10-02 07:36:10 +02:00
|
|
|
short_desc="Graphics library similar to SGI's OpenGL"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-06-14 15:17:59 +02:00
|
|
|
homepage="http://www.mesa3d.org/"
|
|
|
|
license="MIT, LGPL-2.1"
|
2011-11-28 09:31:26 +01:00
|
|
|
checksum=57746aa8c60bc6f5596ec6c6c7274de40fa12edce5ec33fe899e704fa00b5357
|
2008-10-02 07:36:10 +02:00
|
|
|
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."
|
2009-03-19 06:43:21 +01:00
|
|
|
|
2011-11-03 13:44:31 +01:00
|
|
|
subpackages="libEGL libglapi libGLES libGL libGLU libGLw libOpenVG"
|
|
|
|
subpackages="${subpackages} ${pkgname}-devel"
|
|
|
|
|
2011-08-01 12:18:47 +02:00
|
|
|
Add_dependency build perl ">=0"
|
2011-06-14 15:17:59 +02:00
|
|
|
Add_dependency build flex
|
2009-03-19 06:43:21 +01:00
|
|
|
Add_dependency build pkg-config
|
|
|
|
Add_dependency build glproto
|
2011-01-09 15:44:16 +01:00
|
|
|
Add_dependency build dri2proto ">=2.1"
|
2009-03-19 06:43:21 +01:00
|
|
|
Add_dependency build makedepend
|
2009-12-24 16:04:45 +01:00
|
|
|
Add_dependency build libXext-devel
|
2010-01-11 00:08:23 +01:00
|
|
|
Add_dependency build libXxf86vm-devel
|
|
|
|
Add_dependency build libXdamage-devel
|
2009-12-24 16:04:45 +01:00
|
|
|
Add_dependency build libXfixes-devel
|
2010-01-11 00:08:23 +01:00
|
|
|
Add_dependency build libX11-devel
|
|
|
|
Add_dependency build libxcb-devel
|
2010-11-01 18:58:55 +01:00
|
|
|
Add_dependency build libudev-devel
|
2010-01-11 00:08:23 +01:00
|
|
|
Add_dependency build libdrm-devel
|
|
|
|
Add_dependency build expat-devel
|
2009-12-24 16:04:45 +01:00
|
|
|
Add_dependency build libXt-devel
|
2010-11-01 18:58:55 +01:00
|
|
|
Add_dependency build talloc-devel
|
2011-07-02 21:28:24 +02:00
|
|
|
Add_dependency build libxml2-python
|
2011-08-01 12:18:47 +02:00
|
|
|
Add_dependency build llvm-devel
|
2011-04-11 16:38:11 +02:00
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
2011-08-01 12:18:47 +02:00
|
|
|
local dridir=/usr/lib/xorg/modules/dri
|
2011-06-21 13:38:41 +02:00
|
|
|
# Make a symlink from gallium software rasterizer to emulate
|
|
|
|
# the classic one.
|
2011-08-01 12:18:47 +02:00
|
|
|
cd ${DESTDIR}/${dridir} && ln -sf swrast_dri.so swrastg_dri.so
|
2011-04-11 16:38:11 +02:00
|
|
|
}
|