summaryrefslogtreecommitdiff
path: root/pcr/mesa-git
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/mesa-git')
-rw-r--r--pcr/mesa-git/PKGBUILD1039
1 files changed, 0 insertions, 1039 deletions
diff --git a/pcr/mesa-git/PKGBUILD b/pcr/mesa-git/PKGBUILD
deleted file mode 100644
index 0a63f43d8..000000000
--- a/pcr/mesa-git/PKGBUILD
+++ /dev/null
@@ -1,1039 +0,0 @@
-# Maintainer: Márcio Silva <coadde@lavabit.com>
-
-_d3d1x=false
-_openvg=true
-_va=false
-_vdpau=true
-_wayland=true
-_xorg=true
-_xvmc=true
-pkgbase=mesa-git
-pkgname=(
- mesa-git
-)
-true && pkgname=(
- khrplatform-devel-git
- libcl-libre-git
- libgbm-git
- libgl-gallium-git
- libgl-git
- libglapi-git
- libgles-git
- osmesa-git
- ati-dri-git
- intel-gallium-dri-git
- intel-dri-git
- nouveau-dri-git
- svga-dri-git
- mesa-git
-)
-if [ $_openvg = true ]; then
- pkgname+=(
- libvg-git
- )
-fi
-if [ $_va = true ]; then
- pkgname+=(
- ati-va-git
- soft-va-git
- )
-fi
-if [ $_vdpau = true ]; then
- pkgname+=(
- ati-vdpau-git
- nouveau-vdpau-git
- soft-vdpau-git
- )
-fi
-if [ $_wayland = true ]; then
- pkgname+=(
- libegl-wayland-git
- )
-else
- pkgname+=(
- libegl-git
- )
-fi
-if [ $_xorg = true ]; then
- pkgname+=(
- ati-xorg-git
- intel-xorg-git
- nouveau-xorg-git
- )
-fi
-if [ $_xvmc = true ]; then
- pkgname+=(
- ati-xvmc-git
- nouveau-xvmc-git
- soft-xvmc-git
- )
-fi
-true && pkgver=9.0.0.git$(LC_ALL=C date -u +%Y%m%d)
-true && pkgrel=1
-_mesaver=9.0
-_dricore=9.1
-arch=(
- i686
- x86_64
- mips64el
-)
-makedepends=(
- clang # needed for compilation
- git # needed for git source
- glproto-git # needed for compilation
- imake # needed for compilation
- libdrm-git # needed for compilation
- libgbm-git # needed for 'make install' (ld error)
- libgl-git # needed for 'make install' (ld error)
- libxdamage # needed for compilation
- libxml2 # needed for compilation
- libxxf86vm # needed for compilation
- llvm # for llvm support
- python2 # needed for compilation
-)
-if [ $_d3d1x = true ]; then
- makedepends+=(
- wine
- )
-fi
-if [ $_openvg = true ]; then
- makedepends+=(
- libvg-git # needed for 'make install' (ld error)
- )
-fi
-if [ $_va = true ]; then
- makedepends+=(
- libva
- )
-fi
-if [ $_vdpau = true ]; then
- makedepends+=(
- libvdpau
- )
-fi
-if [ $_wayland = true ]; then
- makedepends+=(
- wayland
- )
-fi
-if [ $_xorg = true ]; then
- makedepends+=(
- xf86driproto
- xorg-server-devel
- )
-fi
-if [ $_xvmc = true ]; then
- makedepends+=(
- libxvmc
- )
-fi
-license=(
- MIT
- Khronos
- LGPL
-)
-url=http://mesa3d.sourceforge.net
-
-_gitroot=git://anongit.freedesktop.org/git/${pkgbase%-git}/${pkgbase%-git}
-_gitname=${pkgbase%-git}
-
-build() {
- msg 'Connecting to git.freedesktop.org GIT server....'
- if [ -d $_gitname ] ; then
- cd $_gitname && git pull origin
- else
- git clone $_gitroot --depth 1
- fi
- msg 'GIT checkout done or server timeout'
- msg 'Starting make...'
-
- cd $srcdir
-
- # Cleanup and prepare the build dir
- [ -d build ] && rm -rf build
- cp -r $_gitname build
- cd build
-
- #cd $srcdir/Mesa-$pkgver
-
- if [ $_d3d1x = true ]; then
- D3D1X_FLAG=--enable-d3d1x
- fi
- if [ $_openvg = true ]; then
- OPENVG_FLAG=--enable-openvg
- fi
- if [ $_va = true ]; then
- VA_FLAG=--enable-va
- fi
- if [ $_vdpau = true ]; then
- VDPAU_FLAG=--enable-vdpau
- fi
- if [ $_wayland = true ]; then
- WAYLAND_FLAG=--with-egl-platforms=drm,x11,wayland
- fi
- if [ $_xorg = true ]; then
- XORG_FLAG=--enable-xorg
- fi
- if [ $_xvmc = true ]; then
- XVMC_FLAG=--enable-xvmc
- fi
-
- ./autogen.sh --prefix=/usr \
- $D3D1X_FLAG \
- --enable-dri \
- --enable-egl \
- --enable-gallium-egl \
- --enable-gallium-g3dvl \
- --enable-gallium-gbm \
- --enable-gallium-llvm \
- --enable-gbm \
- --enable-gles1 \
- --enable-gles2 \
- --enable-glx \
- --enable-glx-tls \
- --enable-opencl \
- --enable-opengl \
- $OPENVG_FLAG \
- --enable-osmesa \
- --enable-r600-llvm-compiler \
- --enable-shared-glapi \
- --enable-texture-float \
- $VA_FLAG \
- $VDPAU_FLAG \
- --enable-xa \
- $XORG_FLAG \
- $XVMC_FLAG \
- $WAYLAND_FLAG \
- --with-clang-libdir=/usr/lib \
- --with-dri-driverdir=/usr/lib/xorg/modules/dri \
- --with-dri-drivers=i915,i965,nouveau,r200,radeon,swrast \
- --with-gallium-drivers=i915,nouveau,r300,r600,radeonsi,svga,swrast
- make V=0
-}
-
-package_khrplatform-devel-git() {
- conflicts=(
- khrplatform-devel
- )
- provides=(
- khrplatform-devel=$_mesaver
- )
- pkgdesc='Khronos platform development package'
-
- cd $srcdir/build
- install -m755 -d $pkgdir/usr/include/KHR
- install -m755 -d $pkgdir/usr/share/licenses/khrplatform-devel
- install -Dm644 include/KHR/khrplatform.h $pkgdir/usr/include/KHR
- install -Dm644 docs/COPYING $pkgdir/usr/share/licenses/khrplatform-devel
- install -Dm644 docs/license.html $pkgdir/usr/share/licenses/khrplatform-devel
-}
-
-package_libcl-libre-git() {
- depends=(
- gcc-libs
- libdrm-git
- libffi
- libxcb
- systemd
- #udev
- )
- conflicts=(
- libcl
- libcl-libre
- )
- provides=(
- libcl
- libcl-libre
- )
- replaces=(
- libcl
- )
- pkgdesc='A libre version of OpenCL library and ICD loader, (Mesa OpenCL)'
-
- make -C $srcdir/build/src/gallium/targets/opencl DESTDIR=$pkgdir install
-
- cd $srcdir/build
- #install -m755 -d $pkgdir/usr/lib/opencl
- install -m755 -d $pkgdir/usr/share/licenses/libcl
- #install -Dm644 src/gallium/targets/opencl/libOpenCL.la $pkgdir/usr/lib
- #install -Dm644 lib/libOpenCL.so* $pkgdir/usr/lib
- #install -Dm644 src/gallium/targets/pipe-loader/*.so $pkgdir/usr/lib/opencl
- install -Dm644 docs/COPYING $pkgdir/usr/share/licenses/libcl
- install -Dm644 docs/license.html $pkgdir/usr/share/licenses/libcl
-}
-
-package_libegl-wayland-git() {
- depends=(
- khrplatform-devel-git
- libgbm-git
- libxext
- libxfixes
- wayland
- )
- if [ $_openvg = true ]; then
- depends+=(
- libvg-git
- )
- fi
- conflicts=(
- libegl
- libegl-git
- libegl-wayland
- )
- provides=(
- libegl=$_mesaver
- libegl-git
- libegl-wayland=$_mesaver
- )
- pkgdesc='Mesa EGL libraries and headers, with wayland Support'
-
- make -C $srcdir/build/src/egl DESTDIR=$pkgdir install
- make -C $srcdir/build/src/gallium/targets/egl-static DESTDIR=$pkgdir install
-
- cd $srcdir/build
- rm -fvr $pkgdir/usr/include/KHR
- #install -m755 -d $pkgdir/usr/include/EGL
- #install -m755 -d $pkgdir/usr/lib/egl
- #install -m755 -d $pkgdir/usr/lib/pkgconfig
- install -m755 -d $pkgdir/usr/share/doc/libegl
- install -m755 -d $pkgdir/usr/share/licenses/libegl
- #install -Dm644 include/EGL/* $pkgdir/usr/include/EGL
- #install -Dm644 src/egl/main/libEGL.la $pkgdir/usr/lib
- #install -Dm644 lib/libEGL.so* $pkgdir/usr/lib
- #install -Dm644 src/egl/wayland/wayland-egl/libwayland-egl.la $pkgdir/usr/lib
- #install -Dm644 lib/libwayland-egl.so* $pkgdir/usr/lib
- #install -Dm644 lib/egl/egl_gallium.so $pkgdir/usr/lib/egl
- #install -Dm644 src/egl/main/egl.pc $pkgdir/usr/lib/pkgconfig
- #install -Dm644 src/egl/wayland/wayland-egl/wayland-egl.pc $pkgdir/usr/lib/pkgconfig
- install -Dm644 docs/egl.html $pkgdir/usr/share/doc/libegl
- install -Dm644 docs/COPYING $pkgdir/usr/share/licenses/libegl
- install -Dm644 docs/license.html $pkgdir/usr/share/licenses/libegl
-}
-
-package_libegl-git() {
- depends=(
- khrplatform-devel-git
- libgbm-git
- libxext
- libxfixes
- )
- if [ $_openvg = true ]; then
- depends+=(
- libvg-git
- )
- fi
- conflicts=(
- libegl
- libegl-wayland
- libegl-wayland-git
- )
- provides=(
- libegl=$_mesaver
- libegl-wayland=$_mesaver
- libegl-wayland-git
- )
- pkgdesc='Mesa EGL libraries and headers'
-
- make -C $srcdir/build/src/egl DESTDIR=$pkgdir install
- make -C $srcdir/build/src/gallium/targets/egl-static DESTDIR=$pkgdir install
-
- cd $srcdir/build
- rm -fvr $pkgdir/usr/include/KHR
- #install -m755 -d $pkgdir/usr/include/EGL
- #install -m755 -d $pkgdir/usr/lib/egl
- #install -m755 -d $pkgdir/usr/lib/pkgconfig
- install -m755 -d $pkgdir/usr/share/doc/libegl
- install -m755 -d $pkgdir/usr/share/licenses/libegl
- #install -Dm644 include/EGL/* $pkgdir/usr/include/EGL
- #install -Dm644 src/egl/main/libEGL.la $pkgdir/usr/lib
- #install -Dm644 lib/libEGL.so* $pkgdir/usr/lib
- #install -Dm644 lib/egl/egl_gallium.so $pkgdir/usr/lib/egl
- #install -Dm644 src/egl/main/egl.pc $pkgdir/usr/lib/pkgconfig
- install -Dm644 docs/egl.html $pkgdir/usr/share/doc/libegl
- install -Dm644 docs/COPYING $pkgdir/usr/share/licenses/libegl
- install -Dm644 docs/license.html $pkgdir/usr/share/licenses/libegl
-}
-
-package_libgbm-git() {
- depends=(
- gcc-libs
- libdrm-git
- libffi
- libglapi-git
- libxcb
- systemd
- #udev
- )
- conflicts=(
- libgbm
- )
- provides=(
- libgbm=$_mesaver
- )
- pkgdesc='Mesa GBM libraries and header'
-
- make -C $srcdir/build/src/gbm DESTDIR=$pkgdir install
- make -C $srcdir/build/src/gallium/targets/gbm DESTDIR=$pkgdir install
-
- cd $srcdir/build
- #install -m755 -d $pkgdir/usr/lib/include
- #install -m755 -d $pkgdir/usr/lib/gbm
- #install -m755 -d $pkgdir/usr/lib/pkgconfig
- install -m755 -d $pkgdir/usr/share/licenses/libgbm
- #install -Dm644 src/gbm/main/gbm.h $pkgdir/usr/include
- #install -Dm644 src/gbm/libgbm.la $pkgdir/usr/lib
- #install -Dm644 lib/libgbm.so* $pkgdir/usr/lib
- #install -Dm644 src/gallium/targets/gbm/gbm_gallium_drm.so $pkgdir/usr/lib/gbm
- #install -Dm644 src/gallium/targets/pipe-loader/*.so $pkgdir/usr/lib/gbm
- #install -Dm644 src/gbm/main/gbm.pc $pkgdir/usr/lib/pkgconfig
- install -Dm644 docs/COPYING $pkgdir/usr/share/licenses/libgbm
- install -Dm644 docs/license.html $pkgdir/usr/share/licenses/libgbm
-}
-
-package_libgl-gallium-git() {
- depends=(
- expat
- gcc-libs
- libdrm-git
- libglapi-git
- libxdamage
- libxxf86vm
- )
- conflicts=(
- libgl
- libgl-git
- libgl-gallium
- )
- provides=(
- libgl=$_mesaver
- libgl-git
- libgl-gallium=$_mesaver
- )
- pkgdesc='Mesa 3D OpenGL graphics library and DRI Gallium software rasterizer'
-
- make -C $srcdir/build/src/glx DESTDIR=$pkgdir install
- make -C $srcdir/build/src/mesa/libdricore DESTDIR=$pkgdir install
- make -C $srcdir/build/src/gallium/targets/dri-swrast DESTDIR=$pkgdir install
-
- cd $srcdir/build
- #install -m755 -d $pkgdir/usr/lib/xorg/modules/dri
- install -m755 -d $pkgdir/usr/lib/xorg/modules/extensions
- install -m755 -d $pkgdir/usr/share/doc/libgl
- install -m755 -d $pkgdir/usr/share/licenses/libgl
- #ln -s libdricore$_dricore.so.1.0.0 $pkgdir/usr/lib/libdricore.so
- ln -s libglx.xorg $pkgdir/usr/lib/xorg/modules/extensions/libglx.so
- #install -Dm644 src/glx/libGL.la $pkgdir/usr/lib
- #install -Dm644 lib/libGL.so* $pkgdir/usr/lib
- #install -Dm644 src/mesa/libdricore/libdricore$_dricore.la $pkgdir/usr/lib
- #install -Dm644 lib/libdricore$_dricore.so* $pkgdir/usr/lib
- #install -Dm644 lib/gallium/swrast_dri.so $pkgdir/usr/lib/xorg/modules/dri
- install -Dm644 docs/libGL.txt $pkgdir/usr/share/doc/libgl
- install -Dm644 docs/COPYING $pkgdir/usr/share/licenses/libgl
- install -Dm644 docs/license.html $pkgdir/usr/share/licenses/libgl
-}
-
-package_libgl-git() {
- depends=(
- expat
- gcc-libs
- libdrm-git
- libglapi-git
- libxdamage
- libxxf86vm
- )
- conflicts=(
- libgl
- libgl-gallium
- libgl-gallium-git
- )
- provides=(
- libgl=$_mesaver
- libgl-gallium=$_mesaver
- libgl-gallium-git
- )
- pkgdesc='Mesa 3D OpenGL graphics library and DRI software rasterizer'
-
- make -C $srcdir/build/src/glx DESTDIR=$pkgdir install
- make -C $srcdir/build/src/mesa/libdricore DESTDIR=$pkgdir install
- make -C $srcdir/build/src/mesa/drivers/dri/swrast DESTDIR=$pkgdir install
-
- cd $srcdir/build
- #install -m755 -d $pkgdir/usr/lib/xorg/modules/dri
- install -m755 -d $pkgdir/usr/lib/xorg/modules/extensions
- install -m755 -d $pkgdir/usr/share/doc/libgl
- install -m755 -d $pkgdir/usr/share/licenses/libgl
- #ln -s libdricore$_mesaver.so.1.0.0 $pkgdir/usr/lib/libdricore.so
- ln -s libglx.xorg $pkgdir/usr/lib/xorg/modules/extensions/libglx.so
- #install -Dm644 src/glx/libGL.la $pkgdir/usr/lib
- #install -Dm644 lib/libGL.so* $pkgdir/usr/lib
- #install -Dm644 src/mesa/libdricore/libdricore$_dricore.la $pkgdir/usr/lib
- #install -Dm644 lib/libdricore$_dricore.so* $pkgdir/usr/lib
- #install -Dm644 src/mesa/drivers/dri/swrast/swrast_dri.la $pkgdir/usr/lib/xorg/modules/dri
- #install -Dm644 lib/swrast_dri.so $pkgdir/usr/lib/xorg/modules/dri
- install -Dm644 docs/libGL.txt $pkgdir/usr/share/doc/libgl
- install -Dm644 docs/COPYING $pkgdir/usr/share/licenses/libgl
- install -Dm644 docs/license.html $pkgdir/usr/share/licenses/libgl
-}
-
-package_libglapi-git() {
- depends=(
- glibc
- )
- conflicts=(
- libglapi
- )
- provides=(
- libglapi=$_mesaver
- )
- pkgdesc='free implementation of the GL API -- shared library. The Mesa GL API module is responsible for dispatching all the gl* functions'
-
- make -C $srcdir/build/src/mapi/shared-glapi DESTDIR=$pkgdir install
-
- cd $srcdir/build
- #install -m755 -d $pkgdir/usr/lib
- install -m755 -d $pkgdir/usr/share/licenses/libglapi
- #install -Dm644 src/mapi/shared-glapi/libglapi.la $pkgdir/usr/lib
- #install -Dm644 lib/libglapi.so* $pkgdir/usr/lib
- install -Dm644 docs/COPYING $pkgdir/usr/share/licenses/libglapi
- install -Dm644 docs/license.html $pkgdir/usr/share/licenses/libglapi
-}
-
-package_libgles-git() {
- depends=(
- khrplatform-devel-git
- libdrm-git
- libglapi-git
- )
- conflicts=(
- libgles
- )
- provides=(
- libgles=$_mesaver
- )
- pkgdesc='Mesa GLES libraries and headers'
-
- make -C $srcdir/build/src/mapi/es1api DESTDIR=$pkgdir install
- make -C $srcdir/build/src/mapi/es2api DESTDIR=$pkgdir install
-
- cd $srcdir/build
- #install -m755 -d $pkgdir/usr/include/GLES
- #install -m755 -d $pkgdir/usr/include/GLES2
- #install -m755 -d $pkgdir/usr/lib/pkgconfig
- install -m755 -d $pkgdir/usr/share/licenses/libgles
- #install -Dm644 include/GLES/* $pkgdir/usr/include/GLES
- #install -Dm644 include/GLES2/* $pkgdir/usr/include/GLES2
- #install -Dm644 src/mapi/es1api/libGLESv1_CM.la $pkgdir/usr/lib
- #install -Dm644 src/mapi/es2api/libGLESv2.la $pkgdir/usr/lib
- #install -Dm644 lib/libGLESv*.so* $pkgdir/usr/lib
- #install -Dm644 src/mapi/es1api/glesv1_cm.pc $pkgdir/usr/lib/pkgconfig
- #install -Dm644 src/mapi/es2api/glesv2.pc $pkgdir/usr/lib/pkgconfig
- install -Dm644 docs/COPYING $pkgdir/usr/share/licenses/libgles
- install -Dm644 docs/license.html $pkgdir/usr/share/licenses/libgles
-}
-
-package_libvg-git() {
- depends=(
- glibc
- )
- conflicts=(
- libvg
- )
- provides=(
- libvg=$_mesaver
- )
- pkgdesc='Mesa OpenVG libraries and headers'
-
- make -C $srcdir/build/src/mapi/vgapi DESTDIR=$pkgdir install
-
- cd $srcdir/build
- #install -m755 -d $pkgdir/usr/include/VG
- #install -m755 -d $pkgdir/usr/lib/pkgconfig
- install -m755 -d $pkgdir/usr/share/doc/libvg
- install -m755 -d $pkgdir/usr/share/licenses/libvg
- #install -Dm644 include/VG/* $pkgdir/usr/include/VG
- #install -Dm644 src/mapi/vgapi/libOpenVG.la $pkgdir/usr/lib
- #install -Dm644 lib/libOpenVG.so* $pkgdir/usr/lib
- #install -Dm644 src/mapi/vgapi/vg.pc $pkgdir/usr/lib/pkgconfig
- install -Dm644 docs/openvg.html $pkgdir/usr/share/doc/libvg
- install -Dm644 docs/COPYING $pkgdir/usr/share/licenses/libvg
- install -Dm644 docs/license.html $pkgdir/usr/share/licenses/libvg
-}
-
-package_osmesa-git() {
- depends=(
- mesa-git
- )
- conflicts=(
- osmesa
- )
- provides=(
- osmesa=$_mesaver
- )
- optdepends=(
- 'opengl-man-pages: for the OpenGL API man pages'
- )
- pkgdesc='Mesa 3D off-screen rendering library'
-
- make -C $srcdir/build/src/mesa/drivers/osmesa DESTDIR=$pkgdir install
-
- cd $srcdir/build
- #install -m755 -d $pkgdir/usr/lib/pkgconfig
- install -m755 -d $pkgdir/usr/share/doc/osmesa
- install -m755 -d $pkgdir/usr/share/licenses/osmesa
- #install -Dm644 src/mesa/drivers/osmesa/libOSMesa.la $pkgdir/usr/lib
- #install -Dm644 lib/libOSMesa.so* $pkgdir/usr/lib
- #install -Dm644 src/mesa/drivers/osmesa/osmesa.pc $pkgdir/usr/lib/pkgconfig
- install -Dm644 docs/osmesa.html $pkgdir/usr/share/doc/osmesa
- install -Dm644 docs/COPYING $pkgdir/usr/share/licenses/osmesa
- install -Dm644 docs/license.html $pkgdir/usr/share/licenses/osmesa
-}
-
-package_ati-dri-git() {
- depends=(
- libgl-git
- )
- conflicts=(
- ati-dri
- 'xf86-video-ati<6.9.0-6'
- )
- provides=(
- ati-dri=$_mesaver
- )
- pkgdesc='Mesa DRI radeon/r200 + Gallium3D r300,r600,radeonsi drivers for AMD/ATI Radeon'
-
- # classic mesa driver for radeon,r200
- make -C $srcdir/build/src/mesa/drivers/dri/r200 DESTDIR=$pkgdir install
- make -C $srcdir/build/src/mesa/drivers/dri/radeon DESTDIR=$pkgdir install
- # gallium3D driver for r300,r600,radeonsi
- make -C $srcdir/build/src/gallium/targets/dri-r300 DESTDIR=$pkgdir install
- make -C $srcdir/build/src/gallium/targets/dri-r600 DESTDIR=$pkgdir install
- make -C $srcdir/build/src/gallium/targets/dri-radeonsi DESTDIR=$pkgdir install
-
- cd $srcdir/build
- #install -m755 -d $pkgdir/usr/lib/xorg/modules/dri
- install -m755 -d $pkgdir/usr/share/licenses/ati-dri
- # classic mesa driver for radeon,r200
- #install -Dm644 src/mesa/drivers/dri/r200/r200_dri.la $pkgdir/usr/lib/xorg/modules/dri
- #install -Dm644 lib/r200_dri.so $pkgdir/usr/lib/xorg/modules/dri
- #install -Dm644 src/mesa/drivers/dri/radeon/radeon_dri.la $pkgdir/usr/lib/xorg/modules/dri
- #install -Dm644 lib/radeon_dri.so $pkgdir/usr/lib/xorg/modules/dri
- # gallium3D driver for r300,r600,radeonsi
- #install -Dm644 lib/gallium/r300_dri.so $pkgdir/usr/lib/xorg/modules/dri
- #install -Dm644 lib/gallium/r600_dri.so $pkgdir/usr/lib/xorg/modules/dri
- #install -Dm644 lib/gallium/radeonsi_dri.so $pkgdir/usr/lib/xorg/modules/dri
- install -Dm644 docs/COPYING $pkgdir/usr/share/licenses/ati-dri
- install -Dm644 docs/license.html $pkgdir/usr/share/licenses/ati-dri
-}
-
-package_intel-gallium-dri-git() {
- depends=(
- libgl-git
- )
- conflicts=(
- intel-dri
- intel-dri-git
- intel-gallium-dri
- )
- provides=(
- intel-dri=$_mesaver
- intel-dri-git
- intel-gallium-dri=$_mesaver
- )
- pkgdesc='Mesa DRI drivers for Intel, with i915 Gallium Driver )'
-
- make -C $srcdir/build/src/gallium/targets/dri-i915 DESTDIR=$pkgdir install
- make -C $srcdir/build/src/mesa/drivers/dri/i965 DESTDIR=$pkgdir install
-
- cd $srcdir/build
- #install -m755 -d $pkgdir/usr/lib/xorg/modules/dri
- install -m755 -d $pkgdir/usr/share/licenses/intel-dri
- #install -Dm644 src/gallium/targets/dri-i915/i915_dri.so $pkgdir/usr/lib/xorg/modules/dri
- #install -Dm644 src/mesa/drivers/dri/i965/i965_dri.la $pkgdir/usr/lib/xorg/modules/dri
- #install -Dm644 lib/i965_dri.so $pkgdir/usr/lib/xorg/modules/dri
- install -Dm644 docs/COPYING $pkgdir/usr/share/licenses/intel-dri
- install -Dm644 docs/license.html $pkgdir/usr/share/licenses/intel-dri
-}
-
-package_intel-dri-git() {
- depends=(
- libgl-git
- )
- conflicts=(
- intel-dri
- intel-gallium-dri
- intel-gallium-dri-git
- )
- provides=(
- intel-dri=$_mesaver
- intel-gallium-dri=$_mesaver
- intel-gallium-dri-git=$_mesaver
- )
- pkgdesc='Mesa DRI drivers for Intel'
-
- make -C $srcdir/build/src/mesa/drivers/dri/i915 DESTDIR=$pkgdir install
- make -C $srcdir/build/src/mesa/drivers/dri/i965 DESTDIR=$pkgdir install
-
- cd $srcdir/build
- #install -m755 -d $pkgdir/usr/lib/xorg/modules/dri
- install -m755 -d $pkgdir/usr/share/licenses/intel-dri
- #install -Dm644 src/mesa/drivers/dri/i915/i915_dri.la $pkgdir/usr/lib/xorg/modules/dri
- #install -Dm644 src/mesa/drivers/dri/i915/.libs/i915_dri.so $pkgdir/usr/lib/xorg/modules/dri
- #install -Dm644 src/mesa/drivers/dri/i965/i965_dri.la $pkgdir/usr/lib/xorg/modules/dri
- #install -Dm644 lib/i965_dri.so $pkgdir/usr/lib/xorg/modules/dri
- install -Dm644 docs/COPYING $pkgdir/usr/share/licenses/intel-dri
- install -Dm644 docs/license.html $pkgdir/usr/share/licenses/intel-dri
-}
-
-package_nouveau-dri-git() {
- depends=(
- libgl-git
- )
- conflicts=(
- nouveau-dri
- )
- provides=(
- nouveau-dri=$_mesaver
- )
- pkgdesc='Mesa classic DRI + Gallium3D drivers for Nouveau'
-
- # classic mesa driver for nv10 , nv20 nouveau_vieux_dri.so
- make -C $srcdir/build/src/mesa/drivers/dri/nouveau DESTDIR=$pkgdir install
- # gallium3D driver for nv30 - nv40 - nv50 nouveau_dri.so
- make -C $srcdir/build/src/gallium/targets/dri-nouveau DESTDIR=$pkgdir install
-
- cd $srcdir/build
- #install -m755 -d $pkgdir/usr/lib/xorg/modules/dri
- install -m755 -d $pkgdir/usr/share/licenses/nouveau-dri
- #install -Dm644 src/mesa/drivers/dri/nouveau/nouveau_vieux_dri.la $pkgdir/usr/lib/xorg/modules/dri
- #install -Dm644 lib/nouveau_vieux_dri.so $pkgdir/usr/lib/xorg/modules/dri
- #install -Dm644 lib/gallium/nouveau_dri.so $pkgdir/usr/lib/xorg/modules/dri
- install -Dm644 docs/COPYING $pkgdir/usr/share/licenses/nouveau-dri
- install -Dm644 docs/license.html $pkgdir/usr/share/licenses/nouveau-dri
-}
-
-package_svga-dri-git() {
- depends=(
- libgl-git
- )
- conflicts=(
- svga-dri
- )
- provides=(
- svga-dri=$_mesaver
- )
- pkgdesc='Free Gallium3D VMware guest GL driver'
-
- make -C $srcdir/build/src/gallium/targets/dri-vmwgfx DESTDIR=$pkgdir install
- make -C $srcdir/build/src/gallium/targets/xa-vmwgfx DESTDIR=$pkgdir install
-
- cd $srcdir/build
- #install -m755 -d $pkgdir/usr/lib/include
- #install -m755 -d $pkgdir/usr/lib/pkgconfig
- #install -m755 -d $pkgdir/usr/lib/xorg/modules/dri
- install -m755 -d $pkgdir/usr/share/licenses/svga-dri
- #install -Dm644 lib/gallium/libxatracker.so* $pkgdir/usr/lib
- #install -Dm644 src/gallium/state_trackers/xa/xa_composite.h $pkgdir/usr/lib/include
- #install -Dm644 src/gallium/state_trackers/xa/xa_context.h $pkgdir/usr/lib/include
- #install -Dm644 src/gallium/state_trackers/xa/xa_tracker.h $pkgdir/usr/lib/include
- #install -Dm644 src/gallium/targets/xa-vmwgfx/xatracker.pc $pkgdir/usr/lib/pkgconfig
- #install -Dm644 lib/gallium/vmwgfx_dri.so $pkgdir/usr/lib/xorg/modules/dri
- install -Dm644 docs/COPYING $pkgdir/usr/share/licenses/svga-dri
- install -Dm644 docs/license.html $pkgdir/usr/share/licenses/svga-dri
-}
-
-package_ati-va-git() {
- depends=(
- glibc
- )
- conflicts=(
- ati-va
- )
- provides=(
- ati-va=$_mesaver
- )
- pkgdesc='Mesa Gallium3D VA library for ATI'
-
- make -C $srcdir/build/src/gallium/targets/va-r300 DESTDIR=$pkgdir install
- make -C $srcdir/build/src/gallium/targets/va-r600 DESTDIR=$pkgdir install
- make -C $srcdir/build/src/gallium/targets/va-radeonsi DESTDIR=$pkgdir install
-
- cd $srcdir/build
- #install -m755 -d $pkgdir/usr/lib/va
- install -m755 -d $pkgdir/usr/share/licenses/ati-va
- #install -Dm644 lib/gallium/libva_r*00.so* $pkgdir/usr/lib/va
- #install -Dm644 lib/gallium/libva_radeonsi.so* $pkgdir/usr/lib/va
- install -Dm644 docs/COPYING $pkgdir/usr/share/licenses/ati-va
- install -Dm644 docs/license.html $pkgdir/usr/share/licenses/ati-va
-}
-
-package_soft-va-git() {
- depends=(
- glibc
- )
- conflicts=(
- soft-va
- )
- provides=(
- soft-va=$_mesaver
- )
- pkgdesc='Mesa Gallium3D VA library for Software Rasterizer'
-
- make -C $srcdir/build/src/gallium/targets/va-softpipe DESTDIR=$pkgdir install
-
- cd $srcdir/build
- #install -m755 -d $pkgdir/usr/lib/va
- install -m755 -d $pkgdir/usr/share/licenses/soft-va
- #install -Dm644 lib/gallium/libva_softpipe.so* $pkgdir/usr/lib/va
- install -Dm644 docs/COPYING $pkgdir/usr/share/licenses/soft-va
- install -Dm644 docs/license.html $pkgdir/usr/share/licenses/soft-va
-}
-
-package_ati-vdpau-git() {
- depends=(
- gcc-libs
- libdrm-git
- libx11
- )
- conflicts=(
- ati-vdpau
- )
- provides=(
- ati-vdpau=$_mesaver
- )
- pkgdesc='Mesa Gallium3D VDPAU libraries for ATI'
-
- make -C $srcdir/build/src/gallium/targets/vdpau-r300 DESTDIR=$pkgdir install
- make -C $srcdir/build/src/gallium/targets/vdpau-r600 DESTDIR=$pkgdir install
- make -C $srcdir/build/src/gallium/targets/vdpau-radeonsi DESTDIR=$pkgdir install
-
- cd $srcdir/build
- #install -m755 -d $pkgdir/usr/lib/vdpau
- install -m755 -d $pkgdir/usr/share/licenses/ati-vdpau
- #install -Dm644 lib/gallium/libvdpau_r*00.so* $pkgdir/usr/lib/vdpau
- #install -Dm644 lib/gallium/libvdpau_radeonsi.so* $pkgdir/usr/lib/vdpau
- install -Dm644 docs/COPYING $pkgdir/usr/share/licenses/ati-vdpau
- install -Dm644 docs/license.html $pkgdir/usr/share/licenses/ati-vdpau
-}
-
-package_nouveau-vdpau-git() {
- depends=(
- gcc-libs
- libdrm-git
- libx11
- )
- conflicts=(
- nouveau-vdpau
- )
- provides=(
- nouveau-vdpau=$_mesaver
- )
- pkgdesc='Mesa Gallium3D VDPAU library for Nouveau'
-
- make -C $srcdir/build/src/gallium/targets/vdpau-nouveau DESTDIR=$pkgdir install
-
- cd $srcdir/build
- #install -m755 -d $pkgdir/usr/lib/vdpau
- install -m755 -d $pkgdir/usr/share/licenses/nouveau-vdpau
- #install -Dm644 lib/gallium/libvdpau_nouveau.so* $pkgdir/usr/lib/vdpau
- install -Dm644 docs/COPYING $pkgdir/usr/share/licenses/nouveau-vdpau
- install -Dm644 docs/license.html $pkgdir/usr/share/licenses/nouveau-vdpau
-}
-
-package_soft-vdpau-git() {
- depends=(
- gcc-libs
- )
- conflicts=(
- soft-vdpau
- )
- provides=(
- soft-vdpau=$_mesaver
- )
- pkgdesc='Mesa Gallium3D VDPAU library for Software Rasterizer'
-
- make -C $srcdir/build/src/gallium/targets/vdpau-softpipe DESTDIR=$pkgdir install
-
- cd $srcdir/build
- #install -m755 -d $pkgdir/usr/lib/vdpau
- install -m755 -d $pkgdir/usr/share/licenses/soft-vdpau
- #install -Dm644 lib/gallium/libvdpau_softpipe.so* $pkgdir/usr/lib/vdpau
- install -Dm644 docs/COPYING $pkgdir/usr/share/licenses/soft-vdpau
- install -Dm644 docs/license.html $pkgdir/usr/share/licenses/soft-vdpau
-}
-
-package_ati-xorg-git() {
- depends=(
- gcc-libs
- libdrm-git
- )
- conflicts=(
- ati-xorg
- )
- provides=(
- ati-xorg=$_mesaver
- )
- pkgdesc='Mesa Gallium3D Xorg Drivers for ATI'
-
- make -C $srcdir/build/src/gallium/targets/xorg-r300 DESTDIR=$pkgdir install
- make -C $srcdir/build/src/gallium/targets/xorg-r600 DESTDIR=$pkgdir install
- make -C $srcdir/build/src/gallium/targets/xorg-radeonsi DESTDIR=$pkgdir install
-
- cd $srcdir/build
- #install -m755 -d $pkgdir/usr/lib/xorg/modules/drivers
- install -m755 -d $pkgdir/usr/share/licenses/ati-xorg
- # gallium3D driver for r300,r600g,radeonsi
- #install -Dm644 lib/gallium/r300_drv.so $pkgdir/usr/lib/xorg/modules/drivers
- #install -Dm644 lib/gallium/r600g_drv.so $pkgdir/usr/lib/xorg/modules/drivers
- #install -Dm644 lib/gallium/radeonsi_drv.so $pkgdir/usr/lib/xorg/modules/drivers
- install -Dm644 docs/COPYING $pkgdir/usr/share/licenses/ati-xorg
- install -Dm644 docs/license.html $pkgdir/usr/share/licenses/ati-xorg
-}
-
-package_intel-xorg-git() {
- depends=(
- gcc-libs
- libdrm-git
- )
- conflicts=(
- intel-xorg
- )
- provides=(
- intel-xorg=$_mesaver
- )
- pkgdesc='Mesa Gallium3D Xorg Drivers for Intel'
-
- make -C $srcdir/build/src/gallium/targets/xorg-i915 DESTDIR=$pkgdir install
-
- cd $srcdir/build
- #install -m755 -d $pkgdir/usr/lib/xorg/modules/drivers
- install -m755 -d $pkgdir/usr/share/licenses/intel-xorg
- #install -Dm644 lib/modesetting_drv.so $pkgdir/usr/lib/xorg/modules/drivers
- install -Dm644 docs/COPYING $pkgdir/usr/share/licenses/intel-xorg
- install -Dm644 docs/license.html $pkgdir/usr/share/licenses/intel-xorg
-}
-
-package_nouveau-xorg-git() {
- depends=(
- gcc-libs
- libdrm-git
- )
- conflicts=(
- nouveau-xorg
- )
- provides=(
- nouveau-xorg=$_mesaver
- )
- pkgdesc='Mesa Gallium3D Xorg Drivers for Nouveau'
-
- make -C $srcdir/build/src/gallium/targets/xorg-nouveau DESTDIR=$pkgdir install
-
- cd $srcdir/build
- #install -m755 -d $pkgdir/usr/lib/xorg/modules/drivers
- install -m755 -d $pkgdir/usr/share/licenses/nouveau-xorg
- #install -Dm644 lib/gallium/nouveau2_drv.so $pkgdir/usr/lib/xorg/modules/drivers
- install -Dm644 docs/COPYING $pkgdir/usr/share/licenses/nouveau-xorg
- install -Dm644 docs/license.html $pkgdir/usr/share/licenses/nouveau-xorg
-}
-
-package_ati-xvmc-git() {
- depends=(
- gcc-libs
- libdrm-git
- libxv
- )
- conflicts=(
- ati-xvmc
- )
- provides=(
- ati-xvmc=$_mesaver
- )
- pkgdesc='Mesa Gallium3D XvMC libraries for ATI'
-
- make -C $srcdir/build/src/gallium/targets/xvmc-r300 DESTDIR=$pkgdir install
- make -C $srcdir/build/src/gallium/targets/xvmc-r600 DESTDIR=$pkgdir install
-
- cd $srcdir/build
- #install -m755 -d $pkgdir/usr/lib
- install -m755 -d $pkgdir/usr/share/licenses/ati-xvmc
- #install -Dm644 lib/gallium/libXvMCr*00.so* $pkgdir/usr/lib
- install -Dm644 docs/COPYING $pkgdir/usr/share/licenses/ati-xvmc
- install -Dm644 docs/license.html $pkgdir/usr/share/licenses/ati-xvmc
-}
-
-package_nouveau-xvmc-git() {
- depends=(
- gcc-libs
- libdrm-git
- libxv
- )
- conflicts=(
- nouveau-xvmc
- )
- provides=(
- nouveau-xvmc=$_mesaver
- )
- pkgdesc='Mesa Gallium3D XvMC library for Nouveau'
-
- make -C $srcdir/build/src/gallium/targets/xvmc-nouveau DESTDIR=$pkgdir install
-
- cd $srcdir/build
- #install -m755 -d $pkgdir/usr/lib
- install -m755 -d $pkgdir/usr/share/licenses/nouveau-xvmc
- #install -Dm644 lib/gallium/libXvMCnouveau.so* $pkgdir/usr/lib
- install -Dm644 docs/COPYING $pkgdir/usr/share/licenses/nouveau-xvmc
- install -Dm644 docs/license.html $pkgdir/usr/share/licenses/nouveau-xvmc
-}
-
-package_soft-xvmc-git() {
- depends=(
- gcc-libs
- libdrm-git
- libxv
- )
- conflicts=(
- soft-xvmc
- )
- provides=(
- soft-xvmc=$_mesaver
- )
- pkgdesc='Mesa Gallium3D XvMC library for Software Rasterizer'
-
- make -C $srcdir/build/src/gallium/targets/xvmc-softpipe DESTDIR=$pkgdir install
-
- cd $srcdir/build
- #install -m755 -d $pkgdir/usr/lib
- install -m755 -d $pkgdir/usr/share/licenses/soft-xvmc
- #install -Dm644 lib/gallium/libXvMCsoftpipe.so* $pkgdir/usr/lib
- install -Dm644 docs/COPYING $pkgdir/usr/share/licenses/soft-xvmc
- install -Dm644 docs/license.html $pkgdir/usr/share/licenses/soft-xvmc
-}
-
-package_mesa-git() {
- depends=(
- dri2proto
- glproto-git
- libglu-git
- )
- optdepends=(
- 'libcl: for OpenCL Graphics Video Hardware Support'
- 'libegl-wayland-git: for Wayland Desktop Graphics'
- 'opengl-man-pages: for the OpenGL API man pages'
- )
- conflicts=(
- mesa
- )
- provides=(
- mesa=$_mesaver
- )
- pkgdesc='Mesa 3-D graphics libraries and include files'
-
- cd $srcdir/build
- make DESTDIR=$pkgdir install
- rm -fvr $pkgdir/usr/include/{EGL,GLES,GLES2,KHR,VG,gbm.h,xa_*.h}
- rm -fvr $pkgdir/usr/lib/{egl,gbm,opencl,vdpau,xorg}
- rm -fv $pkgdir/usr/lib/{libEGL*,libGL*,libGLESv*,libOSMesa*,libOpenCL*,libOpenVG*,libXvMC*,libdricore*,libgbm*,libglapi*,libwayland*,libxatracker.so*}
- rm -fv $pkgdir/usr/lib/pkgconfig/{egl.pc,gbm.pc,glesv1_cm.pc,glesv2.pc,osmesa.pc,vg.pc,wayland-egl.pc,xatracker.pc}
- install -m755 -d $pkgdir/usr/share/licenses/mesa
- install -Dm644 docs/COPYING $pkgdir/usr/share/licenses/mesa
- install -Dm644 docs/license.html $pkgdir/usr/share/licenses/mesa
-}