diff options
Diffstat (limited to 'xorg/mesa/build')
-rwxr-xr-x | xorg/mesa/build | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/xorg/mesa/build b/xorg/mesa/build index 6f94463d..b1169a2c 100755 --- a/xorg/mesa/build +++ b/xorg/mesa/build @@ -1,5 +1,23 @@ #!/bin/sh -e +# Temporarily install python-mako to build mesa +( + cd mako + + python3 setup.py build + python3 setup.py install \ + --prefix=/usr \ + --root="$PWD/dist" + +) + +read -r _ pyver <<-EOF +$(python3 --version) +EOF + +PYTHONPATH="$PWD/mako/dist/usr/lib/python${pyver%.*}/site-packages:$(python -c "import sys; print(':'.join(sys.path))")" + +export PYTHONPATH export DESTDIR="$1" export CFLAGS="-DGLX_X86_READONLY_TEXT $CFLAGS" |