mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
45 lines
1.4 KiB
Bash
45 lines
1.4 KiB
Bash
# $Id: PKGBUILD 39376 2009-05-15 19:34:15Z jgc $
|
|
# Maintainer: Alexander Baldeck <alexander@archlinux.org>
|
|
# Contributor: Jan de Groot <jgc@archlinux.org>
|
|
|
|
pkgname=mesa
|
|
pkgver=7.4.2
|
|
pkgrel=1
|
|
pkgdesc="Mesa OpenGL library"
|
|
arch=(arm)
|
|
license=('LGPL')
|
|
url="http://mesa3d.sourceforge.net"
|
|
depends=('libgl' 'libx11>=1.2' 'libxt' 'dri2proto>=2.0' 'libdrm>=2.4.9')
|
|
makedepends=('pkgconfig' 'glproto>=1.4.9')
|
|
conflicts=('mesa-apps')
|
|
replaces=('mesa-apps')
|
|
source=(http://downloads.sourceforge.net/mesa3d/MesaLib-${pkgver}.tar.bz2
|
|
http://downloads.sourceforge.net/mesa3d/MesaDemos-${pkgver}.tar.bz2
|
|
ftp://ftp.archlinux.org/other/mesa/gl-manpages-1.0.1.tar.bz2)
|
|
md5sums=('b10a76e32bde4645cfc34ea0416d7d8b'
|
|
'bf559a0485667a3bfa4513a23501579b'
|
|
'6ae05158e678f4594343f32c2ca50515')
|
|
|
|
build() {
|
|
cd "${srcdir}/Mesa-${pkgver}"
|
|
./configure --prefix=/usr \
|
|
--with-dri-driverdir=/usr/lib/xorg/modules/dri \
|
|
--with-dri-drivers=swrast \
|
|
--enable-glx-tls \
|
|
--with-driver=dri \
|
|
--enable-xcb \
|
|
--disable-glut || return 1
|
|
make || return 1
|
|
make DESTDIR="${pkgdir}" install || return 1
|
|
|
|
install -m755 -d "${pkgdir}/usr/bin"
|
|
install -m755 progs/xdemos/glx{gears,info} "${pkgdir}/usr/bin/" || return 1
|
|
|
|
rm -f "${pkgdir}/usr/lib/libGL.so"*
|
|
rm -rf "${pkgdir}/usr/lib/xorg"
|
|
|
|
cd "${srcdir}/gl-manpages-1.0.1"
|
|
./configure --prefix=/usr || return 1
|
|
make || return 1
|
|
make DESTDIR="${pkgdir}" install || return 1
|
|
}
|