mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-24 01:42:15 +08:00
Updates for lib32-mesa
This commit is contained in:
parent
5da5f780cc
commit
a0e5f23b1e
@ -1,22 +1,186 @@
|
||||
# $Id: PKGBUILD 19246 2010-06-21 20:19:40Z ibiru $
|
||||
# Maintainer: Ionut Biru <ibiru@archlinux.org>
|
||||
# Contributor: Pierre Schmitz <pierre@archlinux.de>
|
||||
# Contributor: Mikko Seppälä <t-r-a-y@mbnet.fi>
|
||||
_pkgsourcename=mesa
|
||||
pkgname=lib32-$_pkgsourcename
|
||||
#
|
||||
# Lib32 Packages for Chakra, part of chakra-project.org
|
||||
#
|
||||
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
||||
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
||||
|
||||
# include global config
|
||||
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
||||
|
||||
pkgbase=lib32-mesa
|
||||
pkgname=('lib32-mesa' 'lib32-libgl' 'lib32-ati-dri' 'lib32-intel-dri' 'lib32-unichrome-dri' 'lib32-mach64-dri' 'lib32-mga-dri' 'lib32-r128-dri' 'lib32-savage-dri' 'lib32-sis-dri' 'lib32-tdfx-dri' 'lib32-nouveau-dri')
|
||||
pkgver=7.9
|
||||
pkgrel=1
|
||||
pkgdesc="Mesa OpenGL library"
|
||||
arch=('x86_64')
|
||||
pkgrel=2
|
||||
arch=(x86_64)
|
||||
makedepends=('glproto>=1.4.12' 'pkgconfig' 'lib32-libdrm>=2.4.22' 'lib32-libxxf86vm>=1.1.0' 'lib32-libxdamage>=1.1.3' 'lib32-expat>=2.0.1' 'lib32-libx11>=1.3.5' 'lib32-libxt>=1.0.8'
|
||||
'lib32-gcc-libs>=4.5' 'dri2proto=2.3' 'lib32-talloc' 'python2' 'libxml2' 'gcc-multilib')
|
||||
url="http://mesa3d.sourceforge.net"
|
||||
license=('LGPL')
|
||||
groups=('lib32')
|
||||
depends=('lib32-libgl' 'lib32-gcc' 'lib32-libxt')
|
||||
source=(http://chakra-project.org/repo/platform-testing/i686/$_pkgsourcename-$pkgver-$pkgrel-i686.pkg.tar.xz)
|
||||
license=('custom')
|
||||
source=(ftp://ftp.freedesktop.org/pub/mesa/${pkgver}/MesaLib-${pkgver}.tar.bz2
|
||||
ftp://ftp.freedesktop.org/pub/mesa/demos/8.0.1/mesa-demos-8.0.1.tar.bz2)
|
||||
md5sums=('82c740c49d572baa6da2b1a1eee90bca'
|
||||
'320c2a4b6edc6faba35d9cb1e2a30bf4')
|
||||
|
||||
build() {
|
||||
cd "$srcdir"
|
||||
mkdir -p "$pkgdir/opt/lib32/usr/lib"
|
||||
cp -dp usr/lib/*.so* "$pkgdir/opt/lib32/usr/lib"
|
||||
export CC="gcc -m32"
|
||||
export CXX="g++ -m32"
|
||||
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
||||
|
||||
# python2 build fixes
|
||||
#sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
|
||||
# -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" $(find $srcdir -name '*.py')
|
||||
#sed -i -e "s|PYTHON2 = python|PYTHON2 = python2|" "${srcdir}/Mesa-${pkgver}"/configs/{default,autoconf.in}
|
||||
#sed -i -e "s|python|python2|" "${srcdir}/Mesa-${pkgver}"/src/gallium/auxiliary/Makefile
|
||||
|
||||
cd "${srcdir}/Mesa-${pkgver}"
|
||||
./configure --prefix=/usr \
|
||||
--with-dri-driverdir=/usr/lib32/xorg/modules/dri \
|
||||
--disable-egl \
|
||||
--enable-glx-tls \
|
||||
--with-driver=dri \
|
||||
--enable-xcb \
|
||||
--with-state-trackers=dri,glx \
|
||||
--enable-gallium-nouveau \
|
||||
--enable-gallium-radeon \
|
||||
--disable-glut \
|
||||
--enable-32-bit \
|
||||
--libdir=/usr/lib32
|
||||
make
|
||||
}
|
||||
|
||||
package_lib32-libgl() {
|
||||
depends=('lib32-libdrm>=2.4.22' 'lib32-libxxf86vm>=1.1.0' 'lib32-libxdamage>=1.1.3' 'lib32-expat>=2.0.1' "libgl")
|
||||
pkgdesc="Mesa 3-D graphics library and DRI software rasterizer (32-bit)"
|
||||
|
||||
cd "${srcdir}/Mesa-${pkgver}"
|
||||
install -m755 -d "${pkgdir}/usr/lib32"
|
||||
install -m755 -d "${pkgdir}/usr/lib32/xorg/modules/extensions"
|
||||
|
||||
bin/minstall lib32/libGL.so* "${pkgdir}/usr/lib32/"
|
||||
|
||||
cd src/mesa/drivers/dri
|
||||
make -C 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/$pkgname"
|
||||
}
|
||||
|
||||
package_lib32-mesa() {
|
||||
depends=('lib32-libgl' 'lib32-libx11>=1.3.5' 'lib32-libxt>=1.0.8' 'lib32-gcc-libs>=4.5' 'dri2proto=2.3' 'lib32-libdrm>=2.4.22' 'glproto>=1.4.12' "mesa")
|
||||
pkgdesc="Mesa 3-D graphics libraries and include files (32-bit)"
|
||||
|
||||
cd "${srcdir}/Mesa-${pkgver}"
|
||||
make DESTDIR="${pkgdir}" install
|
||||
|
||||
install -m755 -d "${pkgdir}/usr/bin"
|
||||
|
||||
cd "${srcdir}/mesa-demos-8.0.1/src/xdemos"
|
||||
$CC glxinfo.c -I${pkgdir}/usr/include -L${pkgdir}/usr/lib32 -L/usr/lib32 -lX11 -lGL -o "${pkgdir}/usr/bin/glxinfo32"
|
||||
|
||||
rm -f "${pkgdir}/usr/lib32/libGL.so"*
|
||||
rm -rf "${pkgdir}/usr/lib32/xorg"
|
||||
rm -rf "${pkgdir}"/usr/{include,share}
|
||||
|
||||
install -m755 -d "${pkgdir}/usr/share/licenses/mesa"
|
||||
ln -s mesa "$pkgdir/usr/share/licenses/mesa/$pkgname"
|
||||
}
|
||||
|
||||
package_lib32-ati-dri() {
|
||||
depends=("lib32-libgl=${pkgver}")
|
||||
pkgdesc="Mesa DRI drivers for AMD/ATI Radeon (32-bit)"
|
||||
conflicts=('xf86-video-ati<6.9.0-6')
|
||||
|
||||
cd "${srcdir}/Mesa-${pkgver}/src/mesa/drivers/dri"
|
||||
make -C radeon DESTDIR="${pkgdir}" install
|
||||
make -C r200 DESTDIR="${pkgdir}" install
|
||||
# classic mesa driver for R300 r300_dri.so
|
||||
# make -C r300 DESTDIR="${pkgdir}" install <------- depricated
|
||||
# gallium3D driver for R300 r300_dri.so
|
||||
make -C ${srcdir}/Mesa-${pkgver}/src/gallium/targets/dri-r300 DESTDIR="${pkgdir}" install
|
||||
make -C r600 DESTDIR="${pkgdir}" install
|
||||
}
|
||||
|
||||
package_lib32-intel-dri() {
|
||||
depends=("lib32-libgl=${pkgver}")
|
||||
pkgdesc="Mesa DRI drivers for Intel (32-bit)"
|
||||
|
||||
cd "${srcdir}/Mesa-${pkgver}/src/mesa/drivers/dri"
|
||||
make -C i810 DESTDIR="${pkgdir}" install
|
||||
make -C i915 DESTDIR="${pkgdir}" install
|
||||
make -C i965 DESTDIR="${pkgdir}" install
|
||||
}
|
||||
|
||||
package_lib32-unichrome-dri() {
|
||||
depends=("lib32-libgl=${pkgver}")
|
||||
pkgdesc="Mesa DRI drivers for S3 Graphics/VIA Unichrome (32-bit)"
|
||||
|
||||
cd "${srcdir}/Mesa-${pkgver}/src/mesa/drivers/dri"
|
||||
make -C unichrome DESTDIR="${pkgdir}" install
|
||||
}
|
||||
|
||||
package_lib32-mach64-dri() {
|
||||
depends=("lib32-libgl=${pkgver}")
|
||||
pkgdesc="Mesa DRI drivers for ATI Mach64 (32-bit)"
|
||||
conflicts=('xf86-video-mach64<6.8.2')
|
||||
|
||||
cd "${srcdir}/Mesa-${pkgver}/src/mesa/drivers/dri"
|
||||
make -C mach64 DESTDIR="${pkgdir}" install
|
||||
}
|
||||
|
||||
package_lib32-mga-dri() {
|
||||
depends=("lib32-libgl=${pkgver}")
|
||||
pkgdesc="Mesa DRI drivers for Matrox (32-bit)"
|
||||
conflicts=('xf86-video-mga<1.4.11')
|
||||
|
||||
cd "${srcdir}/Mesa-${pkgver}/src/mesa/drivers/dri"
|
||||
make -C mga DESTDIR="${pkgdir}" install
|
||||
}
|
||||
|
||||
package_lib32-r128-dri() {
|
||||
depends=("lib32-libgl=${pkgver}")
|
||||
pkgdesc="Mesa DRI drivers for ATI Rage128 (32-bit)"
|
||||
conflicts=('xf86-video-r128<6.8.1')
|
||||
|
||||
cd "${srcdir}/Mesa-${pkgver}/src/mesa/drivers/dri"
|
||||
make -C r128 DESTDIR="${pkgdir}" install
|
||||
}
|
||||
|
||||
package_lib32-savage-dri() {
|
||||
depends=("lib32-libgl=${pkgver}")
|
||||
pkgdesc="Mesa DRI drivers for S3 Sraphics/VIA Savage (32-bit)"
|
||||
conflicts=('xf86-video-savage<2.3.1')
|
||||
|
||||
cd "${srcdir}/Mesa-${pkgver}/src/mesa/drivers/dri"
|
||||
make -C savage DESTDIR="${pkgdir}" install
|
||||
}
|
||||
|
||||
package_lib32-sis-dri() {
|
||||
depends=("lib32-libgl=${pkgver}")
|
||||
pkgdesc="Mesa DRI drivers for SiS (32-bit)"
|
||||
conflicts=('xf86-video-sis<0.10.2')
|
||||
|
||||
cd "${srcdir}/Mesa-${pkgver}/src/mesa/drivers/dri"
|
||||
make -C sis DESTDIR="${pkgdir}" install
|
||||
}
|
||||
|
||||
package_lib32-tdfx-dri() {
|
||||
depends=("lib32-libgl=${pkgver}")
|
||||
pkgdesc="Mesa DRI drivers for 3dfx (32-bit)"
|
||||
conflicts=('xf86-video-tdfx<1.4.3')
|
||||
|
||||
cd "${srcdir}/Mesa-${pkgver}/src/mesa/drivers/dri"
|
||||
make -C tdfx DESTDIR="${pkgdir}" install
|
||||
}
|
||||
|
||||
package_lib32-nouveau-dri() {
|
||||
depends=("lib32-libgl=${pkgver}")
|
||||
pkgdesc="Mesa classic DRI + Gallium3D drivers for Nouveau (32-bit)"
|
||||
|
||||
cd "${srcdir}/Mesa-${pkgver}/src/mesa/drivers/dri"
|
||||
# classic mesa driver for nv10 , nv20 nouveau_vieux_dri.so
|
||||
make -C nouveau DESTDIR="${pkgdir}" install
|
||||
# gallium3D driver for nv30 - nv40 - nv50 nouveau_dri.so
|
||||
make -C ${srcdir}/Mesa-${pkgver}/src/gallium/targets/dri-nouveau DESTDIR="${pkgdir}" install
|
||||
}
|
||||
md5sums=('1e82b976bbf299d6cdff2ca8209fe51f')
|
||||
|
9019
lib32-mesa/nouveau_class.h
Normal file
9019
lib32-mesa/nouveau_class.h
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user