2008-10-04 06:29:49 +02:00
|
|
|
# Template build file for 'MesaLib'.
|
|
|
|
pkgname=MesaLib
|
2013-12-13 15:46:30 +01:00
|
|
|
version=10.0.1
|
|
|
|
revision=1
|
2010-03-29 10:21:32 +02:00
|
|
|
wrksrc="Mesa-${version}"
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2013-08-28 09:14:52 +02:00
|
|
|
configure_args="--enable-glx-tls --enable-shared-glapi --enable-gbm
|
|
|
|
--enable-gles1 --enable-gles2 --enable-openvg --enable-egl --enable-xa
|
2013-10-15 17:18:22 +02:00
|
|
|
--with-dri-driverdir=/usr/lib/xorg/modules/drivers --enable-vdpau
|
2012-10-09 09:35:58 +02:00
|
|
|
--enable-gallium-egl --enable-xvmc --enable-osmesa --enable-texture-float
|
2013-12-01 10:35:25 +01:00
|
|
|
--with-gallium-drivers=r300,r600,radeonsi,svga,swrast,nouveau
|
2013-08-30 14:33:20 +02:00
|
|
|
--with-dri-drivers=i915,i965,r200,radeon,nouveau,swrast
|
2013-01-16 10:07:05 +01:00
|
|
|
--with-egl-platforms=drm,wayland"
|
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"
|
2013-12-13 15:46:30 +01:00
|
|
|
distfiles="ftp://ftp.freedesktop.org/pub/mesa/${version}/${pkgname}-${version}.tar.bz2"
|
|
|
|
checksum=3cdf868f9599ca310c17fcf5b4ce9aec9903d8bf8561fde2577f3d422f823270
|
2012-10-09 09:35:58 +02:00
|
|
|
|
2013-06-21 11:44:36 +02:00
|
|
|
hostmakedepends="automake libtool flex pkg-config llvm>=3.3"
|
2013-05-01 08:02:08 +02:00
|
|
|
makedepends="glproto dri2proto>=2.1 libXext-devel libXxf86vm-devel libXdamage-devel
|
|
|
|
libudev-devel>=183 libdrm-devel expat-devel talloc-devel libxml2-python
|
2013-08-28 09:14:52 +02:00
|
|
|
libvdpau-devel libXvMC-devel>=1.0.6 wayland-devel elfutils-devel"
|
2014-01-01 16:10:11 +01:00
|
|
|
conf_files="/etc/drirc"
|
2012-11-17 15:04:12 +01:00
|
|
|
|
2012-10-09 09:35:58 +02:00
|
|
|
pre_configure() {
|
2013-08-28 09:14:52 +02:00
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
2012-10-09 09:35:58 +02:00
|
|
|
}
|
2013-04-12 09:01:46 +02:00
|
|
|
|
|
|
|
post_install() {
|
|
|
|
rm -f ${DESTDIR}/usr/lib/libGL.so{,.1}
|
|
|
|
mv ${DESTDIR}/usr/lib/libGL.so.1.2.0 ${DESTDIR}/usr/lib/libGL-mesa.so.1.2.0
|
|
|
|
}
|
|
|
|
|
|
|
|
libgbm_package() {
|
2013-10-05 10:14:29 +02:00
|
|
|
short_desc="Mesa Generic buffer management API - runtime"
|
2013-04-12 09:01:46 +02:00
|
|
|
replaces="MesaLib<9.0.2"
|
|
|
|
pkg_install() {
|
2013-08-06 11:39:25 +02:00
|
|
|
vmove "usr/lib/libgbm.so.*"
|
2013-04-12 09:01:46 +02:00
|
|
|
vmove usr/lib/gbm/gbm_gallium_drm.so
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libEGL_package() {
|
|
|
|
short_desc="Free implementation of the EGL API - runtime"
|
|
|
|
replaces="MesaLib<7.11_2"
|
|
|
|
pkg_install() {
|
2013-08-06 11:39:25 +02:00
|
|
|
vmove "usr/lib/libEGL*.so.*"
|
2013-04-12 09:01:46 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libglapi_package() {
|
|
|
|
short_desc="Free implementation of the GL API - shared library"
|
|
|
|
replaces="MesaLib<7.11_2"
|
|
|
|
pkg_install() {
|
2013-08-06 11:39:25 +02:00
|
|
|
vmove "usr/lib/libglapi.so.*"
|
2013-04-12 09:01:46 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libGLES_package() {
|
|
|
|
short_desc="Free implementation of the OpenGL|ES 1.x and 2.x API"
|
|
|
|
replaces="MesaLib<7.11_2"
|
|
|
|
pkg_install() {
|
2013-08-06 11:39:25 +02:00
|
|
|
vmove "usr/lib/libGLES*.so.*"
|
2013-04-12 09:01:46 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libGL_package() {
|
|
|
|
short_desc="Free implementation of the OpenGL API - GLX runtime"
|
|
|
|
replaces="MesaLib<7.11_2"
|
|
|
|
pkg_install() {
|
2013-08-06 11:39:25 +02:00
|
|
|
vmove "usr/lib/libGL*.so.*"
|
2013-04-12 09:01:46 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libOpenVG_package() {
|
|
|
|
short_desc="Free implementation of the OpenVG API - runtime"
|
|
|
|
replaces="MesaLib<7.11_2"
|
|
|
|
pkg_install() {
|
2013-08-06 11:39:25 +02:00
|
|
|
vmove "usr/lib/libOpenVG.so.*"
|
2013-04-12 09:01:46 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libOSMesa_package() {
|
|
|
|
short_desc="Mesa Off-Screen interface library"
|
|
|
|
replaces="MesaLib<7.11_2"
|
|
|
|
pkg_install() {
|
2013-08-06 11:39:25 +02:00
|
|
|
vmove "usr/lib/libOSMesa.so.*"
|
2013-04-12 09:01:46 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-12-01 10:21:16 +01:00
|
|
|
libxatracker_package() {
|
|
|
|
short_desc="Mesa XA tracker interface library"
|
|
|
|
replaces="MesaLib<10.0.0_2"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libxatracker*.so.*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-06-21 11:44:36 +02:00
|
|
|
libwayland-egl_package() {
|
|
|
|
short_desc="Free implementation of the EGL API - wayland runtime"
|
|
|
|
pkg_install() {
|
2013-08-06 11:39:25 +02:00
|
|
|
vmove "usr/lib/libwayland-egl.so.*"
|
2013-06-21 11:44:36 +02:00
|
|
|
vmove usr/lib/egl
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-12 09:01:46 +02:00
|
|
|
MesaLib-devel_package() {
|
|
|
|
depends="glproto dri2proto>=2.1 libXext-devel libXxf86vm-devel libXdamage-devel
|
|
|
|
libXfixes-devel libX11-devel libxcb-devel libdrm-devel>=2.4.39 expat-devel
|
2013-10-15 17:18:22 +02:00
|
|
|
libGL>=${version}_${revision} libOpenVG>=${version}_${revision}
|
|
|
|
libGLES>=${version}_${revision} libEGL>=${version}_${revision}
|
|
|
|
libOSMesa>=${version}_${revision} libgbm>=${version}_${revision}
|
|
|
|
libwayland-egl>=${version}_${revision}
|
2013-12-01 10:21:16 +01:00
|
|
|
libxatracker>=${version}_${revision}"
|
2013-05-21 22:47:00 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 09:01:46 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
2013-08-06 11:39:25 +02:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 09:01:46 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mesa-ati-dri_package() {
|
|
|
|
short_desc="Mesa DRI drivers for ATI GPUs"
|
2013-12-01 10:21:16 +01:00
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
2013-04-12 09:01:46 +02:00
|
|
|
replaces="MesaLib<9.0.2"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libXvMCr[36]00.so*"
|
|
|
|
vmove "usr/lib/vdpau/libvdpau_r[36]00.so*"
|
2013-08-28 09:14:52 +02:00
|
|
|
vmove "usr/lib/vdpau/libvdpau_radeon*.so*"
|
2013-10-15 17:18:22 +02:00
|
|
|
vmove "usr/lib/xorg/modules/drivers/radeon*"
|
|
|
|
vmove "usr/lib/xorg/modules/drivers/r[236]00*"
|
2013-04-12 09:01:46 +02:00
|
|
|
vmove "usr/lib/gallium-pipe/pipe_r[36]00.so"
|
2013-08-28 09:14:52 +02:00
|
|
|
vmove usr/lib/gallium-pipe/pipe_radeonsi.so
|
2013-04-12 09:01:46 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mesa-intel-dri_package() {
|
|
|
|
short_desc="Mesa DRI drivers for Intel GPUs"
|
2013-12-01 10:21:16 +01:00
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
2013-04-12 09:01:46 +02:00
|
|
|
pkg_install() {
|
2013-10-15 17:18:22 +02:00
|
|
|
vmove "usr/lib/xorg/modules/drivers/i9[16]5_dri.*"
|
2013-04-12 09:01:46 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mesa-nouveau-dri_package() {
|
|
|
|
short_desc="Mesa DRI drivers for NVIDIA GPUs (nouveau dri)"
|
2013-12-01 10:21:16 +01:00
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
2013-04-12 09:01:46 +02:00
|
|
|
replaces="MesaLib<9.0.2"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libXvMCnouveau.so*"
|
|
|
|
vmove "usr/lib/vdpau/libvdpau_nouveau.so*"
|
2013-10-15 17:18:22 +02:00
|
|
|
vmove "usr/lib/xorg/modules/drivers/nouveau*"
|
2013-04-12 09:01:46 +02:00
|
|
|
vmove usr/lib/gallium-pipe/pipe_nouveau.so
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mesa-swraster-dri_package() {
|
|
|
|
short_desc="Mesa DRI drivers for the Software Rasterizer"
|
2013-12-01 10:21:16 +01:00
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
2013-04-12 09:01:46 +02:00
|
|
|
replaces="MesaLib<9.0.2"
|
|
|
|
pkg_install() {
|
2013-10-15 17:18:22 +02:00
|
|
|
vmove "usr/lib/xorg/modules/drivers/swrast*"
|
2013-04-12 09:01:46 +02:00
|
|
|
vmove "usr/lib/gallium-pipe/pipe_swrast.so"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mesa-vmwgfx-dri_package() {
|
|
|
|
short_desc="Mesa DRI drivers for VMware"
|
2013-12-01 10:21:16 +01:00
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
2013-04-12 09:01:46 +02:00
|
|
|
replaces="MesaLib<9.0.2"
|
|
|
|
pkg_install() {
|
2013-10-15 17:18:22 +02:00
|
|
|
vmove "usr/lib/xorg/modules/drivers/vmwgfx*"
|
2013-04-12 09:01:46 +02:00
|
|
|
vmove usr/lib/gallium-pipe/pipe_vmwgfx.so
|
|
|
|
}
|
|
|
|
}
|