updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / osmesa / PKGBUILD
blobb13f6fdd6bd56b1a1c2b6263c854a3558760a388
1 # Maintainer: Jonathan Liu <net147@gmail.com>
2 pkgname='osmesa'
3 pkgver=7.11.2
4 pkgrel=1
5 pkgdesc="Mesa 3D off-screen rendering library"
6 arch=('i686' 'x86_64')
7 url="http://mesa3d.sourceforge.net"
8 license=('custom')
9 depends=("mesa")
10 makedepends=('imake' 'libxml2' 'python2')
11 options=('!makeflags')
12 source=("ftp://ftp.freedesktop.org/pub/mesa/${pkgver}/MesaLib-${pkgver}.tar.bz2"
13         "LICENSE")
14 md5sums=('0837c52698fe3252369c3fdb5195afcc'
15          '5c65a0fe315dd347e09b1f2826a1df5a')
17 build() {
18   cd "${srcdir}/Mesa-${pkgver}"
19   find . -name '*.py' -exec sed -i -r "s|#\s*!\s*(/usr)?/bin/(env\s*)?python\s*$|#!/usr/bin/env python2|" {} +
20   sed -i -e "s|PYTHON2 = python|PYTHON2 = python2|" configs/{default,autoconf.in}
21   sed -i -e "s|python|python2|" src/gallium/{auxiliary,drivers/llvmpipe}/{Makefile,SConscript}
22   sed -i -e "s|python|python2|" src/mesa/drivers/dri/common/xmlpool/Makefile
23   ./configure --prefix=/usr --disable-egl --disable-gallium-llvm --disable-glu --disable-glw --disable-glut --with-driver=osmesa --with-dri-drivers="" --with-gallium-drivers=""
24   make
27 package() {
28   cd "${srcdir}/Mesa-${pkgver}"
29   make DESTDIR="${pkgdir}" install
30   rm -fr "${pkgdir}"/usr/include &>/dev/null
31   install -D -m755 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
34 # vim:set ts=2 sw=2 et: