From add871cd18926a98a6828e4a10ba8a7ba04f9476 Mon Sep 17 00:00:00 2001 From: sibel Date: Tue, 28 Dec 2010 16:05:08 +0000 Subject: mesa3d#7.9-2, maj port --- xorg/mesa3d/Pkgfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'xorg/mesa3d/Pkgfile') diff --git a/xorg/mesa3d/Pkgfile b/xorg/mesa3d/Pkgfile index 6da1cadb5..9f142503b 100755 --- a/xorg/mesa3d/Pkgfile +++ b/xorg/mesa3d/Pkgfile @@ -6,16 +6,22 @@ name=mesa3d version=7.9 -release=1 +release=2 source=(ftp://ftp.freedesktop.org/pub/mesa/$version/MesaLib-$version.tar.bz2) build() { cd Mesa-$version + sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ + -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" $(find $SRC -name '*.py') + + sed -i -e "s|PYTHON2 = python|PYTHON2 = python2|" $SRC/Mesa-$version/configs/{default,autoconf.in} + + sed -i -e "s|python|python2|" $SRC/Mesa-$version/src/gallium/auxiliary/Makefile + ./configure --prefix=/usr \ --with-driver=dri \ --with-dri-driverdir=/usr/lib/dri - make make DESTDIR=$PKG install -- cgit v1.2.3-70-g09d2