lib32-mesa splitted: 'lib32-ati-dri' 'lib32-intel-dri' 'lib32-nouveau-dri' 'lib32-mesa' 'lib32-mesa-libgl'

This commit is contained in:
AlmAck 2014-06-22 23:12:57 +02:00
parent 9eba48ea1c
commit 14cfd350c3

View File

@ -1,14 +1,14 @@
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# contributor: (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
_pkgbasename=mesa
pkgbase=lib32-mesa
pkgname=('lib32-mesa' 'lib32-libgl' 'lib32-libglapi')
pkgname=('lib32-ati-dri' 'lib32-intel-dri' 'lib32-nouveau-dri' 'lib32-mesa' 'lib32-mesa-libgl')
pkgver=10.0.5
pkgrel=2
pkgrel=3
arch=('x86_64')
makedepends=('glproto>=1.4.14' 'lib32-libdrm>=2.4.38' 'lib32-libxxf86vm>=1.1.1' 'lib32-libxdamage>=1.1.3'
'lib32-expat>=2.0.1' 'lib32-libx11>=1.4.3' 'lib32-libxt>=1.1.1' 'lib32-gcc-libs>=4.7' 'lib32-llvm>=3.2' 'lib32-systemd' 'lib32-elfutils'
'dri2proto>=2.6' 'python2' 'libxml2' 'gcc-multilib' 'imake' 'pkg-config')
makedepends=(
'python2' 'lib32-libxml2' 'lib32-expat' 'lib32-libx11' 'glproto' 'lib32-libdrm' 'dri2proto' 'dri3proto' 'lib32-libxxf86vm' 'lib32-libxdamage' 'gcc-multilib' 'lib32-elfutils' 'lib32-llvm' 'lib32-systemd' 'lib32-libvdpau' 'lib32-wayland')
url="http://mesa3d.sourceforge.net"
license=('custom')
options=('!libtool')
@ -53,60 +53,110 @@ build() {
--disable-64-bit
make
# fake installation, needed to be able to split the files
[ -d $srcdir/fakeinstall ] && rm -r $srcdir/fakeinstall
mkdir $srcdir/fakeinstall
make DESTDIR=${srcdir}/fakeinstall install
}
package_lib32-libgl() {
depends=('lib32-libdrm>=2.4.33' 'lib32-libxxf86vm>=1.1.0' 'lib32-libxdamage>=1.1.3' 'lib32-expat>=2.0.1' 'lib32-libglapi' 'lib32-gcc-libs>=4.5' "libgl=${pkgver}")
pkgdesc="Mesa 3-D graphics library and DRI software rasterizer (ELF32)"
replaces=('lib32-unichrome-dri' 'lib32-mach64-dri' 'lib32-mga-dri' 'lib32-r128-dri' 'lib32-savage-dri' 'lib32-sis-dri' 'lib32-tdfx-dri')
package_lib32-ati-dri() {
pkgdesc="Mesa drivers for AMD/ATI Radeon (32-bit)"
depends=('lib32-mesa-libgl' "lib32-mesa=${pkgver}" 'lib32-libtxc_dxtn' 'ati-dri')
cd ${srcdir}/?esa-*
install -m755 -d ${pkgdir}/usr/lib32/vdpau/
mv -v ${srcdir}/fakeinstall/usr/lib32/vdpau/libvdpau_{r600,radeonsi}.* ${pkgdir}/usr/lib32/vdpau/
install -m755 -d "${pkgdir}/usr/lib32"
install -m755 -d "${pkgdir}/usr/lib32/xorg/modules/extensions"
install -m755 -d ${pkgdir}/usr/lib32/xorg/modules/dri
mv -v ${srcdir}/fakeinstall/usr/lib32/xorg/modules/dri/{r200,r300,r600,radeon,radeonsi}_dri.so ${pkgdir}/usr/lib32/xorg/modules/dri/
mv lib32/libGL.so* "${pkgdir}/usr/lib32/"
install -m755 -d ${pkgdir}/usr/lib32/gallium-pipe
mv -v ${srcdir}/fakeinstall/usr/lib32/gallium-pipe/pipe_{r300,r600,radeonsi}* ${pkgdir}/usr/lib32/gallium-pipe/
cd src/mesa/drivers/dri
make -C ${srcdir}/Mesa-${pkgver}/src/gallium/targets/dri-swrast DESTDIR="${pkgdir}" install
ln -s libglx.xorg "${pkgdir}/usr/lib32/xorg/modules/extensions/libglx.so"
rm -rf "${pkgdir}"/usr/{include,share,bin}
install -m755 -d "${pkgdir}/usr/share/licenses/libgl"
ln -s libgl "$pkgdir/usr/share/licenses/libgl/lib32-libgl"
install -m755 -d "${pkgdir}/usr/share/licenses"
ln -s ati-dri "$pkgdir/usr/share/licenses/lib32-ati-dri"
}
package_lib32-libglapi() {
depends=('glibc' "libglapi=${pkgver}")
pkgdesc="free implementation of the GL API -- shared library. The Mesa GL API module is responsible for dispatching all the gl* functions (ELF32)"
package_lib32-intel-dri() {
pkgdesc="Mesa DRI drivers for Intel (32-bit)"
depends=('lib32-mesa-libgl' "lib32-mesa=${pkgver}" 'lib32-libtxc_dxtn' 'intel-dri')
cd ${srcdir}/?esa-*
install -m755 -d "${pkgdir}/usr/lib32"
cp -dp --no-preserve=ownership lib32/libglapi.so* "${pkgdir}/usr/lib32/"
install -m755 -d ${pkgdir}/usr/lib32/xorg/modules/dri
mv -v ${srcdir}/fakeinstall/usr/lib32/xorg/modules/dri/{i915,i965}_dri.so ${pkgdir}/usr/lib32/xorg/modules/dri/
install -m755 -d "${pkgdir}/usr/share/licenses/libglapi"
ln -s libglapi "${pkgdir}/usr/share/licenses/libglapi/lib32-libglapi"
install -m755 -d "${pkgdir}/usr/share/licenses"
ln -s intel-dri "$pkgdir/usr/share/licenses/lib32-intel-dri"
}
package_lib32-nouveau-dri() {
pkgdesc="Mesa drivers for Nouveau (32-bit)"
depends=('lib32-mesa-libgl' "lib32-mesa=${pkgver}" 'lib32-libtxc_dxtn' 'nouveau-dri')
install -m755 -d ${pkgdir}/usr/lib32/vdpau/
mv -v ${srcdir}/fakeinstall/usr/lib32/vdpau/libvdpau_nouveau.* ${pkgdir}/usr/lib32/vdpau/
install -m755 -d ${pkgdir}/usr/lib32/xorg/modules/dri
mv -v ${srcdir}/fakeinstall/usr/lib32/xorg/modules/dri/nouveau_{dri,vieux_dri}.so ${pkgdir}/usr/lib32/xorg/modules/dri/
install -m755 -d ${pkgdir}/usr/lib32/gallium-pipe
mv -v ${srcdir}/fakeinstall/usr/lib32/gallium-pipe/pipe_nouveau* ${pkgdir}/usr/lib32/gallium-pipe/
install -m755 -d "${pkgdir}/usr/share/licenses"
ln -s nouveau-dri "$pkgdir/usr/share/licenses/lib32-nouveau-dri"
}
package_lib32-mesa() {
depends=('lib32-libglapi' 'lib32-libgl' 'lib32-libx11>=1.4.5' 'lib32-libxt>=1.1.1' 'lib32-systemd' 'glu' 'lib32-elfutils' "mesa=${pkgver}")
pkgdesc="Mesa 3-D graphics libraries and include files (ELF32)"
provides=('lib32-libgles' 'lib32-libegl' 'lib32-ati-dri' 'lib32-intel-dri' 'lib32-svga-dri' 'lib32-nouveau-dri')
conflicts=('lib32-libgles' 'lib32-libegl' 'lib32-ati-dri' 'lib32-intel-dri' 'lib32-svga-dri' 'lib32-nouveau-dri' 'lib32-udev')
replaces=('lib32-libgles' 'lib32-libegl' 'lib32-ati-dri' 'lib32-intel-dri' 'lib32-nouveau-dri' 'lib32-svga-dri')
pkgdesc="an open-source implementation of the OpenGL specification (32-bit)"
depends=('lib32-libdrm' 'lib32-libxxf86vm' 'lib32-libxdamage' 'lib32-systemd' 'lib32-elfutils' 'lib32-llvm-libs' 'lib32-libvdpau' 'lib32-wayland' $_pkgbasename=$pkgver)
optdepends=('opengl-man-pages: for the OpenGL API man pages')
provides=('lib32-libglapi' 'lib32-libgles' 'lib32-libegl')
conflicts=('lib32-libglapi' 'lib32-libgles' 'lib32-libegl')
replaces=('lib32-libglapi' 'lib32-libgles' 'lib32-libegl')
cd ${srcdir}/?esa-*
install -m755 -d ${pkgdir}/usr/lib32/{gallium-pipe,gbm}
mv -v ${srcdir}/fakeinstall/usr/lib32/lib{OSMesa,gbm,glapi}.so* ${pkgdir}/usr/lib32/
mv -v ${srcdir}/fakeinstall/usr/lib32/gallium-pipe/pipe_swrast* ${pkgdir}/usr/lib32/gallium-pipe/
mv -v ${srcdir}/fakeinstall/usr/lib32/gbm/gbm_gallium_drm* ${pkgdir}/usr/lib32/gbm/
make DESTDIR="${pkgdir}" install
mv -v ${srcdir}/fakeinstall/usr/lib32/pkgconfig ${pkgdir}/usr/lib32/
install -m755 -d ${pkgdir}/usr/lib32/xorg/modules/dri
mv -v ${srcdir}/fakeinstall/usr/lib32/xorg/modules/dri/swrast_dri* ${pkgdir}/usr/lib32/xorg/modules/dri/
rm -f "${pkgdir}/usr/lib32/libglapi.so"*
rm -f "${pkgdir}/usr/lib32/libGL.so"*
rm -f "${pkgdir}/usr/lib32/libdricore${pkgver}.so"*
rm -f "${pkgdir}/usr/lib32/xorg/modules/dri/swrast_dri.so"*
rm -rf "${pkgdir}/usr/include"
rm -rf "${pkgdir}/usr/etc"
install -m755 -d ${pkgdir}/usr/lib32/mesa
# move libgl/EGL/glesv*.so to not conflict with blobs - may break .pc files ?
mv -v ${srcdir}/fakeinstall/usr/lib32/libGL.so* ${pkgdir}/usr/lib32/mesa/
mv -v ${srcdir}/fakeinstall/usr/lib32/libEGL.so* ${pkgdir}/usr/lib32/mesa/
mv -v ${srcdir}/fakeinstall/usr/lib32/libGLES*.so* ${pkgdir}/usr/lib32/mesa/
install -m755 -d "${pkgdir}/usr/share/licenses/mesa"
ln -s mesa "$pkgdir/usr/share/licenses/mesa/lib32-mesa"
install -m755 -d "${pkgdir}/usr/share/licenses"
ln -s mesa "$pkgdir/usr/share/licenses/lib32-mesa"
}
package_lib32-mesa-libgl() {
pkgdesc="Mesa 3-D graphics library (32-bit)"
depends=("lib32-mesa=${pkgver}")
provides=("lib32-libgl=${pkgver}")
replaces=('lib32-libgl')
install -m755 -d ${pkgdir}/usr/lib32
ln -s /usr/lib32/mesa/libGL.so.1.2.0 ${pkgdir}/usr/lib32/libGL.so.1.2.0
ln -s libGL.so.1.2.0 ${pkgdir}/usr/lib32/libGL.so.1
ln -s libGL.so.1.2.0 ${pkgdir}/usr/lib32/libGL.so
ln -s /usr/lib32/mesa/libEGL.so.1.0.0 ${pkgdir}/usr/lib32/libEGL.so.1.0.0
ln -s libEGL.so.1.0.0 ${pkgdir}/usr/lib32/libEGL.so.1
ln -s libEGL.so.1.0.0 ${pkgdir}/usr/lib32/libEGL.so
ln -s /usr/lib32/mesa/libGLESv1_CM.so.1.1.0 ${pkgdir}/usr/lib32/libGLESv1_CM.so.1.1.0
ln -s libGLESv1_CM.so.1.1.0 ${pkgdir}/usr/lib32/libGLESv1_CM.so.1
ln -s libGLESv1_CM.so.1.1.0 ${pkgdir}/usr/lib32/libGLESv1_CM.so
ln -s /usr/lib32/mesa/libGLESv2.so.2.0.0 ${pkgdir}/usr/lib32/libGLESv2.so.2.0.0
ln -s libGLESv2.so.2.0.0 ${pkgdir}/usr/lib32/libGLESv2.so.2
ln -s libGLESv2.so.2.0.0 ${pkgdir}/usr/lib32/libGLESv2.so
install -m755 -d "${pkgdir}/usr/share/licenses"
ln -s lib32-mesa "${pkgdir}/usr/share/licenses/lib32-mesa-libgl"
}