2015-08-07 23:56:11 +08:00
|
|
|
# Maintainer: Lone_Wolf <lonewolf at xs4all dot nl>
|
|
|
|
# Contributor: Armin K. <krejzi at email dot com>
|
2014-12-31 02:42:36 +08:00
|
|
|
# Contributor: Kristian Klausen <klausenbusk@hotmail.com>
|
|
|
|
# Contributor: Egon Ashrafinia <e.ashrafinia@gmail.com>
|
|
|
|
# Contributor: Tavian Barnes <tavianator@gmail.com>
|
|
|
|
# Contributor: Jan de Groot <jgc@archlinux.org>
|
|
|
|
# Contributor: Andreas Radke <andyrtr@archlinux.org>
|
|
|
|
# Contributor: Thomas Dziedzic < gostrc at gmail >
|
|
|
|
# Contributor: Antti "Tera" Oja <antti.bofh@gmail.com>
|
|
|
|
# Contributor: Diego Jose <diegoxter1006@gmail.com>
|
|
|
|
|
|
|
|
pkgbase=mesa-git
|
|
|
|
pkgname=('opencl-mesa-git' 'libva-mesa-driver-git' 'mesa-vdpau-git' 'mesa-git' 'mesa-libgl-git')
|
2015-08-07 23:56:11 +08:00
|
|
|
pkgver=11.0.0_devel.71858.a97f1b6
|
|
|
|
pkgrel=3
|
2014-12-31 02:42:36 +08:00
|
|
|
arch=('i686' 'x86_64')
|
2015-08-07 23:56:11 +08:00
|
|
|
makedepends=('python2-mako' 'libxml2' 'libx11' 'glproto' 'libdrm' 'dri2proto' 'dri3proto' 'presentproto'
|
|
|
|
'libxshmfence' 'libxxf86vm' 'libxdamage' 'libvdpau' 'libva' 'wayland' 'elfutils' 'llvm-svn'
|
|
|
|
'systemd' 'libomxil-bellagio' 'libclc' 'clang-svn' 'git'
|
|
|
|
'libtxc_dxtn' 'ocl-icd' 'openssl' 'gnutls')
|
|
|
|
|
2014-12-31 02:42:36 +08:00
|
|
|
url="http://mesa3d.sourceforge.net"
|
|
|
|
license=('custom')
|
|
|
|
source=('mesa::git://anongit.freedesktop.org/mesa/mesa#branch=master'
|
|
|
|
'LICENSE')
|
|
|
|
md5sums=('SKIP'
|
|
|
|
'5c65a0fe315dd347e09b1f2826a1df5a')
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "${srcdir}/mesa"
|
2015-08-07 23:56:11 +08:00
|
|
|
echo $(cat VERSION | tr "-" "_").$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
|
2014-12-31 02:42:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
_mesaver() {
|
|
|
|
path="${srcdir}/mesa/VERSION"
|
|
|
|
[ -f $path ] && cat "$path"
|
|
|
|
}
|
|
|
|
|
|
|
|
build () {
|
|
|
|
cd "${srcdir}/mesa"
|
|
|
|
|
|
|
|
./autogen.sh --prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--with-dri-driverdir=/usr/lib/xorg/modules/dri \
|
|
|
|
--with-gallium-drivers=r300,r600,radeonsi,nouveau,svga,swrast \
|
|
|
|
--with-dri-drivers=i915,i965,r200,radeon,nouveau,swrast \
|
|
|
|
--with-egl-platforms=x11,drm,wayland \
|
|
|
|
--disable-xvmc \
|
|
|
|
--enable-llvm-shared-libs \
|
|
|
|
--enable-egl \
|
|
|
|
--enable-gbm \
|
|
|
|
--enable-gallium-llvm \
|
|
|
|
--enable-shared-glapi \
|
|
|
|
--enable-glx \
|
|
|
|
--enable-glx-tls \
|
|
|
|
--enable-dri \
|
|
|
|
--enable-osmesa \
|
|
|
|
--enable-gles1 \
|
|
|
|
--enable-gles2 \
|
|
|
|
--enable-texture-float \
|
|
|
|
--enable-xa \
|
|
|
|
--enable-vdpau \
|
|
|
|
--enable-omx \
|
|
|
|
--enable-nine \
|
|
|
|
--enable-opencl \
|
|
|
|
--enable-opencl-icd \
|
|
|
|
--with-clang-libdir=/usr/lib
|
|
|
|
|
2015-08-07 23:56:11 +08:00
|
|
|
|
2014-12-31 02:42:36 +08:00
|
|
|
make
|
|
|
|
|
|
|
|
# fake installation
|
|
|
|
mkdir -p "${srcdir}/fakeinstall"
|
|
|
|
make DESTDIR="${srcdir}/fakeinstall" install
|
|
|
|
}
|
|
|
|
|
|
|
|
package_opencl-mesa-git () {
|
|
|
|
pkgdesc="OpenCL support for AMD/ATI Radeon Mesa drivers"
|
2015-08-07 23:56:11 +08:00
|
|
|
depends=('expat' 'libdrm' 'elfutils' 'libxfixes' 'libxext' 'ocl-icd' 'libclc' 'clang-svn' 'llvm-libs-svn' 'nettle' "mesa-git=${pkgver}")
|
2014-12-31 02:42:36 +08:00
|
|
|
optdepends=('opencl-headers: headers necessary for OpenCL development')
|
2015-08-07 23:56:11 +08:00
|
|
|
provides=("opencl-mesa=$(_mesaver)")
|
2014-12-31 02:42:36 +08:00
|
|
|
replaces=('opencl-mesa')
|
|
|
|
conflicts=('opencl-mesa')
|
|
|
|
|
|
|
|
install -v -m755 -d "${pkgdir}/etc"
|
|
|
|
mv -v "${srcdir}/fakeinstall/etc/OpenCL" "${pkgdir}/etc/"
|
|
|
|
|
|
|
|
install -v -m755 -d "${pkgdir}/usr/lib/gallium-pipe"
|
|
|
|
mv -v "${srcdir}"/fakeinstall/usr/lib/lib*OpenCL* "${pkgdir}/usr/lib/"
|
|
|
|
mv -v "${srcdir}"/fakeinstall/usr/lib/gallium-pipe/pipe_{r600,radeonsi}.so "${pkgdir}/usr/lib/gallium-pipe/"
|
|
|
|
|
2015-08-07 23:56:11 +08:00
|
|
|
install -v -m755 -d "${pkgdir}/usr/share/licenses/opencl-mesa-git"
|
|
|
|
install -v -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/opencl-mesa-git/"
|
2014-12-31 02:42:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package_libva-mesa-driver-git() {
|
|
|
|
pkgdesc="VA-API implementation for gallium"
|
2015-08-07 23:56:11 +08:00
|
|
|
depends=('libdrm' 'libx11' 'llvm-libs-svn' 'expat' 'elfutils' 'nettle' "mesa-git=${pkgver}")
|
|
|
|
provides=("libva-mesa-driver=$(_mesaver)")
|
2014-12-31 02:42:36 +08:00
|
|
|
conflicts=('libva-mesa-driver')
|
|
|
|
|
|
|
|
install -v -m755 -d "${pkgdir}/usr/lib"
|
|
|
|
mv -v "${srcdir}/fakeinstall/usr/lib/dri" "${pkgdir}/usr/lib/"
|
|
|
|
|
2015-08-07 23:56:11 +08:00
|
|
|
install -v -m755 -d "${pkgdir}/usr/share/licenses/libva-mesa-driver-git"
|
|
|
|
install -v -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/libva-mesa-driver-git/"
|
2014-12-31 02:42:36 +08:00
|
|
|
}
|
|
|
|
|
2015-08-07 23:56:11 +08:00
|
|
|
|
2014-12-31 02:42:36 +08:00
|
|
|
package_mesa-vdpau-git() {
|
|
|
|
pkgdesc="Mesa VDPAU drivers"
|
2015-08-07 23:56:11 +08:00
|
|
|
depends=('libdrm' 'libx11' 'llvm-libs-svn' 'expat' 'elfutils' 'nettle' "mesa-git=${pkgver}")
|
|
|
|
provides=("mesa-vdpau=$(_mesaver)")
|
2014-12-31 02:42:36 +08:00
|
|
|
replaces=('mesa-vdpau')
|
|
|
|
conflicts=('mesa-vdpau')
|
|
|
|
|
|
|
|
install -v -m755 -d "${pkgdir}/usr/lib"
|
|
|
|
mv -v "${srcdir}/fakeinstall/usr/lib/vdpau" "${pkgdir}/usr/lib/"
|
|
|
|
|
2015-08-07 23:56:11 +08:00
|
|
|
install -v -m755 -d "${pkgdir}/usr/share/licenses/mesa-vdpau-git"
|
|
|
|
install -v -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/mesa-vdpau-git/"
|
2014-12-31 02:42:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package_mesa-git () {
|
|
|
|
pkgdesc="an open-source implementation of the OpenGL specification"
|
|
|
|
depends=('libdrm' 'wayland' 'libxxf86vm' 'libxdamage' 'libxshmfence' 'systemd' 'elfutils'
|
2015-08-07 23:56:11 +08:00
|
|
|
'libomxil-bellagio' 'expat' 'libtxc_dxtn' 'llvm-libs-svn')
|
2014-12-31 02:42:36 +08:00
|
|
|
optdepends=('opengl-man-pages: for the OpenGL API man pages'
|
|
|
|
'mesa-vdpau-git: for accelerated video playback'
|
|
|
|
'libva-mesa-driver-git: for accelerated video playback')
|
2015-08-07 23:56:11 +08:00
|
|
|
provides=("mesa=$(_mesaver)" 'mesa-r300-r600-radeonsi-git' 'mesa-dri')
|
|
|
|
replaces=('mesa' 'mesa-r300-r600-radeonsi-git' 'mesa-dri')
|
|
|
|
conflicts=('mesa' 'mesa-r300-r600-radeonsi-git' 'mesa-dri')
|
2014-12-31 02:42:36 +08:00
|
|
|
|
|
|
|
install -v -m755 -d "${pkgdir}/etc"
|
|
|
|
mv -v "${srcdir}/fakeinstall/etc/drirc" "${pkgdir}/etc/"
|
|
|
|
|
|
|
|
install -v -m755 -d "${pkgdir}/usr/lib/xorg/modules/dri"
|
|
|
|
# ati-dri, nouveau-dri, intel-dri, svga-dri, swrast
|
|
|
|
mv -v "${srcdir}"/fakeinstall/usr/lib/xorg/modules/dri/* "${pkgdir}/usr/lib/xorg/modules/dri/"
|
|
|
|
|
|
|
|
mv -v "${srcdir}"/fakeinstall/usr/lib/bellagio "${pkgdir}/usr/lib/"
|
|
|
|
mv -v "${srcdir}"/fakeinstall/usr/lib/d3d "${pkgdir}/usr/lib/"
|
|
|
|
mv -v "${srcdir}"/fakeinstall/usr/lib/*.so* "${pkgdir}/usr/lib/"
|
|
|
|
|
|
|
|
mv -v "${srcdir}/fakeinstall/usr/include" "${pkgdir}/usr/"
|
|
|
|
mv -v "${srcdir}/fakeinstall/usr/lib/pkgconfig" "${pkgdir}/usr/lib/"
|
|
|
|
|
|
|
|
install -v -m755 -d "${pkgdir}/usr/lib/mesa"
|
|
|
|
# move libgl/EGL/glesv*.so to not conflict with blobs - may break .pc files ?
|
2014-12-31 02:48:55 +08:00
|
|
|
mv -v "${pkgdir}"/usr/lib/libGL.so* "${pkgdir}/usr/lib/mesa/"
|
|
|
|
mv -v "${pkgdir}"/usr/lib/libEGL.so* "${pkgdir}/usr/lib/mesa/"
|
|
|
|
mv -v "${pkgdir}"/usr/lib/libGLES*.so* "${pkgdir}/usr/lib/mesa/"
|
2014-12-31 02:42:36 +08:00
|
|
|
|
2015-08-07 23:56:11 +08:00
|
|
|
install -v -m755 -d "${pkgdir}/usr/share/licenses/mesa-git"
|
|
|
|
install -v -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/mesa-git/"
|
2014-12-31 02:42:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package_mesa-libgl-git () {
|
|
|
|
pkgdesc="Mesa 3-D graphics library"
|
2015-08-07 23:56:11 +08:00
|
|
|
depends=("mesa-git=${pkgver}")
|
2014-12-31 02:42:36 +08:00
|
|
|
provides=("mesa-libgl=$(_mesaver)" "libgl=$(_mesaver)")
|
2015-08-07 23:56:11 +08:00
|
|
|
replaces=('mesa-libgl')
|
2014-12-31 02:42:36 +08:00
|
|
|
conflicts=('mesa-libgl')
|
|
|
|
|
|
|
|
# See FS#26284
|
|
|
|
install -v -m755 -d "${pkgdir}/usr/lib/xorg/modules/extensions"
|
|
|
|
ln -sfv libglx.xorg "${pkgdir}/usr/lib/xorg/modules/extensions/libglx.so"
|
|
|
|
|
|
|
|
ln -sfv /usr/lib/mesa/libGL.so.1.2.0 "${pkgdir}/usr/lib/libGL.so.1.2.0"
|
|
|
|
ln -sfv libGL.so.1.2.0 "${pkgdir}/usr/lib/libGL.so.1"
|
|
|
|
ln -sfv libGL.so.1.2.0 "${pkgdir}/usr/lib/libGL.so"
|
|
|
|
|
|
|
|
ln -sfv /usr/lib/mesa/libEGL.so.1.0.0 "${pkgdir}/usr/lib/libEGL.so.1.0.0"
|
|
|
|
ln -sfv libEGL.so.1.0.0 "${pkgdir}/usr/lib/libEGL.so.1"
|
|
|
|
ln -sfv libEGL.so.1.0.0 "${pkgdir}/usr/lib/libEGL.so"
|
|
|
|
|
|
|
|
ln -sfv /usr/lib/mesa/libGLESv1_CM.so.1.1.0 "${pkgdir}/usr/lib/libGLESv1_CM.so.1.1.0"
|
|
|
|
ln -sfv libGLESv1_CM.so.1.1.0 "${pkgdir}/usr/lib/libGLESv1_CM.so.1"
|
|
|
|
ln -sfv libGLESv1_CM.so.1.1.0 "${pkgdir}/usr/lib/libGLESv1_CM.so"
|
|
|
|
|
2014-12-31 02:48:55 +08:00
|
|
|
ln -sfv /usr/lib/mesa/libGLESv2.so.2.0.0 "${pkgdir}/usr/lib/libGLESv2.so.2.0.0"
|
|
|
|
ln -sfv libGLESv2.so.2.0.0 "${pkgdir}/usr/lib/libGLESv2.so.2"
|
|
|
|
ln -sfv libGLESv2.so.2.0.0 "${pkgdir}/usr/lib/libGLESv2.so"
|
2014-12-31 02:42:36 +08:00
|
|
|
|
2015-08-07 23:56:11 +08:00
|
|
|
install -v -m755 -d "${pkgdir}/usr/share/licenses/mesa-libgl-git"
|
|
|
|
install -v -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/mesa-libgl-git/"
|
|
|
|
}
|