Commit 8aba1a66 authored by Xuetian Weng's avatar Xuetian Weng
Browse files

make -dri packaeg not depends on mesa-libgl

parent 473e3756
......@@ -2,59 +2,52 @@
# contributor: almack@chakraos.org
pkgbase=mesa
pkgname=('opencl-mesa' 'mesa-dri' 'mesa-vdpau' 'mesa' 'mesa-libgl')
pkgver=10.3.2
pkgrel=1
pkgname=('mesa' 'mesa-libgl' 'opencl-mesa' 'ati-dri' 'intel-dri' 'nouveau-dri' 'svga-dri')
pkgver=10.2.6
pkgrel=2
arch=('x86_64')
conflics=('mesa-libtool')
provides=('mesa-libtool')
makedepends=('python2' 'libxml2' 'libx11' 'glproto' 'libdrm' 'dri2proto' 'dri3proto' 'presentproto'
'libxshmfence' 'libxxf86vm' 'libxdamage' 'libvdpau' 'wayland' 'elfutils' 'llvm' 'systemd'
'libomxil-bellagio' 'libclc' 'clang')
makedepends=('python2' 'libxml2' 'libx11' 'glproto' 'libdrm' 'dri2proto' 'dri3proto' 'presentproto' 'libxshmfence' 'libxxf86vm' 'libxdamage' 'libvdpau' 'wayland' 'elfutils' 'llvm' 'systemd' 'libclc' 'clang')
url="http://mesa3d.sourceforge.net"
license=('custom')
source=(${source[@]}
"ftp://ftp.freedesktop.org/pub/mesa/${pkgver}/MesaLib-${pkgver}.tar.gz"
'LICENSE'
)
md5sums=('eb68acc68a332798c5e4111ed61afa16'
md5sums=('30342c6c97b4dc1280b8cc8594c1c873'
'5c65a0fe315dd347e09b1f2826a1df5a')
options=('debug')
build() {
cd ${srcdir}/?esa-*
autoreconf -vfi # our automake is far too new for their build system :)
./configure --prefix=/usr \
--sysconfdir=/etc \
cd ${srcdir}/?esa-*
autoreconf -vfi
./configure --prefix=/usr \
--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 \
--enable-llvm-shared-libs \
--enable-egl \
--disable-gallium-egl \
--disable-gallium-gbm \
--enable-gbm \
--with-clang-libdir=/usr/lib \
--enable-gallium-llvm \
--enable-gallium-egl \
--enable-shared-glapi \
--enable-glx \
--enable-gbm \
--enable-glx-tls \
--enable-dri \
--enable-glx \
--enable-osmesa \
--enable-gles1 \
--enable-gles2 \
--enable-egl \
--enable-texture-float \
--enable-xa \
--enable-vdpau \
--enable-omx \
--enable-opencl --enable-opencl-icd \
--with-clang-libdir=/usr/lib
# --help
# --disable-gallium-egl : not well maintained/expose more bugs, so prefer egl_dri2 (FS#40096)
# --disable-gallium-gbm : FS#41337 only useful with gallium-egl
--enable-dri3 \
--enable-opencl --enable-opencl-icd
make
# fake installation, needed to be able to split the files
......@@ -63,78 +56,104 @@ build() {
make DESTDIR=${srcdir}/fakeinstall install
}
package_opencl-mesa() {
pkgdesc="OpenCL support for AMD/ATI Radeon mesa drivers"
depends=('expat' 'libdrm' 'elfutils' 'libxfixes' 'libxext' 'libcl' 'libclc' 'clang')
depends=('mesa-libgl' "mesa=${pkgver}" 'libcl' 'libclc' 'clang')
optdepends=('opencl-headers: headers necessary for OpenCL development')
install -m755 -d ${pkgdir}/etc
mv -v ${srcdir}/fakeinstall/etc/OpenCL ${pkgdir}/etc/
install -m755 -d "${pkgdir}/usr/lib"
mv -v ${srcdir}/fakeinstall/usr/lib/gallium-pipe ${pkgdir}/usr/lib/
install -m755 -d ${pkgdir}/usr/lib/
mv -v ${srcdir}/fakeinstall/usr/lib/lib*OpenCL* ${pkgdir}/usr/lib/
install -m755 -d "${pkgdir}/usr/share/licenses/opencl-mesa"
install -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/opencl-mesa/"
}
package_mesa-dri() {
pkgdesc="Mesa DRI drivers"
depends=('expat' 'libdrm' 'libtxc_dxtn')
conflicts=('ati-dri' 'intel-dri' 'nouveau-dri' 'svga-dri')
provides=('ati-dri' 'intel-dri' 'nouveau-dri' 'svga-dri')
replaces=('ati-dri' 'intel-dri' 'nouveau-dri' 'svga-dri')
optdepends=('mesa-vdpau: for accelerated video playback')
package_ati-dri() {
pkgdesc="Mesa drivers for AMD/ATI Radeon"
depends=('libtxc_dxtn' "mesa=${pkgver}")
install -m755 -d ${pkgdir}/etc
mv -v ${srcdir}/fakeinstall/etc/drirc ${pkgdir}/etc
install -m755 -d ${pkgdir}/usr/lib/vdpau/
mv -v ${srcdir}/fakeinstall/usr/lib/vdpau/libvdpau_{r600,radeonsi}.* ${pkgdir}/usr/lib/vdpau/
install -m755 -d ${pkgdir}/usr/lib/xorg/modules/dri
mv -v ${srcdir}/fakeinstall/usr/lib/xorg/modules/dri/{r200,r300,r600,radeon,radeonsi}_dri.so ${pkgdir}/usr/lib/xorg/modules/dri/
install -m755 -d ${pkgdir}/usr/lib/gallium-pipe
mv -v ${srcdir}/fakeinstall/usr/lib/gallium-pipe/pipe_{r300,r600,radeonsi}* ${pkgdir}/usr/lib/gallium-pipe/
install -m755 -d "${pkgdir}/usr/share/licenses/ati-dri"
install -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/ati-dri/"
}
package_intel-dri() {
pkgdesc="Mesa drivers for Intel"
depends=('libtxc_dxtn' "mesa=${pkgver}")
install -m755 -d ${pkgdir}/usr/lib/xorg/modules/dri
mv -v ${srcdir}/fakeinstall/usr/lib/xorg/modules/dri/{i915,i965}_dri.so ${pkgdir}/usr/lib/xorg/modules/dri/
install -m755 -d "${pkgdir}/usr/share/licenses/intel-dri"
install -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/intel-dri/"
}
package_nouveau-dri() {
pkgdesc="Mesa drivers for Nouveau"
depends=('libtxc_dxtn' "mesa=${pkgver}")
install -m755 -d ${pkgdir}/usr/lib/vdpau/
mv -v ${srcdir}/fakeinstall/usr/lib/vdpau/libvdpau_nouveau.* ${pkgdir}/usr/lib/vdpau/
install -m755 -d ${pkgdir}/usr/lib/xorg/modules/dri
# ati-dri
mv -v ${srcdir}/fakeinstall/usr/lib/xorg/modules/dri/{r200,r300,r600,radeon{,si}}_dri.so ${pkgdir}/usr/lib/xorg/modules/dri
# nouveau-dri
mv -v ${srcdir}/fakeinstall/usr/lib/xorg/modules/dri/nouveau{,_vieux}_dri.so ${pkgdir}/usr/lib/xorg/modules/dri
# intel-dri
mv -v ${srcdir}/fakeinstall/usr/lib/xorg/modules/dri/{i915,i965}_dri.so ${pkgdir}/usr/lib/xorg/modules/dri
# svga-dri
mv -v ${srcdir}/fakeinstall/usr/lib/xorg/modules/dri/vmwgfx_dri.so ${pkgdir}/usr/lib/xorg/modules/dri
# swrast
mv -v ${srcdir}/fakeinstall/usr/lib/xorg/modules/dri/{kms_,}swrast_dri.so ${pkgdir}/usr/lib/xorg/modules/dri
install -m755 -d "${pkgdir}/usr/share/licenses/mesa-dri"
install -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/mesa-dri/"
mv -v ${srcdir}/fakeinstall/usr/lib/xorg/modules/dri/nouveau_{dri,vieux_dri}.so ${pkgdir}/usr/lib/xorg/modules/dri/
install -m755 -d ${pkgdir}/usr/lib/gallium-pipe
mv -v ${srcdir}/fakeinstall/usr/lib/gallium-pipe/pipe_nouveau* ${pkgdir}/usr/lib/gallium-pipe/
install -m755 -d "${pkgdir}/usr/share/licenses/nouveau-dri"
install -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/nouveau-dri/"
}
package_mesa-vdpau() {
pkgdesc="Mesa VDPAU drivers"
depends=('libdrm' 'libx11' 'llvm-libs' 'expat' 'elfutils')
package_svga-dri() {
pkgdesc="Gallium3D VMware guest GL driver"
depends=('libdrm' 'expat' 'llvm-libs')
install -m755 -d ${pkgdir}/usr/lib/xorg/modules/dri
mv -v ${srcdir}/fakeinstall/usr/lib/xorg/modules/dri/vmwgfx_dri.so ${pkgdir}/usr/lib/xorg/modules/dri/
install -m755 -d ${pkgdir}/usr/lib
mv -v ${srcdir}/fakeinstall/usr/lib/vdpau ${pkgdir}/usr/lib
install -m755 -d "${pkgdir}/usr/share/licenses/mesa-vdpau"
install -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/mesa-vdpau/"
install -m755 -d ${pkgdir}/usr/lib/gallium-pipe
mv -v ${srcdir}/fakeinstall/usr/lib/gallium-pipe/pipe_vmwgfx* ${pkgdir}/usr/lib/gallium-pipe/
install -m755 -d "${pkgdir}/usr/share/licenses/svga-dri"
install -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/svga-dri/"
}
package_mesa() {
pkgdesc="an open-source implementation of the OpenGL specification"
depends=('libdrm' 'wayland' 'libxxf86vm' 'libxdamage' 'libxshmfence' 'systemd' 'elfutils'
'libomxil-bellagio' 'llvm-libs' 'mesa-dri')
pkgdesc="Mesa 3-D graphics libraries and include files"
depends=('libdrm' 'libvdpau' 'wayland' 'libxxf86vm' 'libxdamage' 'libxshmfence' 'systemd' 'elfutils' 'llvm-libs')
optdepends=('opengl-man-pages: for the OpenGL API man pages')
provides=('libglapi' 'osmesa' 'libgbm' 'libgles' 'libegl' 'khrplatform-devel')
conflicts=('libglapi' 'osmesa' 'libgbm' 'libgles' 'libegl' 'khrplatform-devel')
replaces=('libglapi' 'osmesa' 'libgbm' 'libgles' 'libegl' 'khrplatform-devel')
provides=('libglapi' 'libgles' 'libegl')
conflicts=('libglapi' 'libgles' 'libegl')
replaces=('libglapi' 'libgles' 'libegl')
install -m755 -d ${pkgdir}/usr/lib
mv -v ${srcdir}/fakeinstall/usr/lib/bellagio ${pkgdir}/usr/lib
install -m755 -d ${pkgdir}/etc
mv -v ${srcdir}/fakeinstall/usr/etc/drirc ${pkgdir}/etc
install -m755 -d ${pkgdir}/usr/lib/{gallium-pipe,gbm,egl}
mv -v ${srcdir}/fakeinstall/usr/lib/lib{OSMesa,gbm,glapi,wayland-egl,xatracker}.so* ${pkgdir}/usr/lib/
# FS#41337
#mv -v ${srcdir}/fakeinstall/usr/lib/gbm/gbm_gallium_drm* ${pkgdir}/usr/lib/gbm/
mv -v ${srcdir}/fakeinstall/usr/lib/gallium-pipe/pipe_swrast* ${pkgdir}/usr/lib/gallium-pipe/
mv -v ${srcdir}/fakeinstall/usr/lib/gbm/gbm_gallium_drm* ${pkgdir}/usr/lib/gbm/
mv -v ${srcdir}/fakeinstall/usr/lib/egl/egl_gallium* ${pkgdir}/usr/lib/egl/
mv -v ${srcdir}/fakeinstall/usr/include ${pkgdir}/usr
mv -v ${srcdir}/fakeinstall/usr/lib/pkgconfig ${pkgdir}/usr/lib/
install -m755 -d ${pkgdir}/usr/lib/xorg/modules/dri
mv -v ${srcdir}/fakeinstall/usr/lib/xorg/modules/dri/swrast_dri* ${pkgdir}/usr/lib/xorg/modules/dri/
install -m755 -d ${pkgdir}/usr/lib/mesa
# move libgl/EGL/glesv*.so to not conflict with blobs - may break .pc files ?
mv -v ${srcdir}/fakeinstall/usr/lib/libGL.so* ${pkgdir}/usr/lib/mesa/
......@@ -156,11 +175,11 @@ package_mesa-libgl() {
ln -s libglx.xorg "${pkgdir}/usr/lib/xorg/modules/extensions/libglx.so"
ln -s /usr/lib/mesa/libGL.so.1.2.0 ${pkgdir}/usr/lib/libGL.so.1.2.0
ln -s libGL.so.1.2.0 ${pkgdir}/usr/lib/libGL.so.1
ln -s libGL.so.1.2.0 ${pkgdir}/usr/lib/libGL.so.1
ln -s libGL.so.1.2.0 ${pkgdir}/usr/lib/libGL.so
ln -s /usr/lib/mesa/libEGL.so.1.0.0 ${pkgdir}/usr/lib/libEGL.so.1.0.0
ln -s libEGL.so.1.0.0 ${pkgdir}/usr/lib/libEGL.so.1
ln -s libEGL.so.1.0.0 ${pkgdir}/usr/lib/libEGL.so.1
ln -s libEGL.so.1.0.0 ${pkgdir}/usr/lib/libEGL.so
ln -s /usr/lib/mesa/libGLESv1_CM.so.1.1.0 ${pkgdir}/usr/lib/libGLESv1_CM.so.1.1.0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment