1 # Maintainer: Jonathan Liu <net147@gmail.com>
5 pkgdesc="Mesa 3D off-screen rendering library"
7 url="http://mesa3d.sourceforge.net"
10 makedepends=('imake' 'libxml2' 'python2')
11 options=('!makeflags')
12 source=("ftp://ftp.freedesktop.org/pub/mesa/${pkgver}/MesaLib-${pkgver}.tar.bz2"
14 md5sums=('0837c52698fe3252369c3fdb5195afcc'
15 '5c65a0fe315dd347e09b1f2826a1df5a')
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=""
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: