From 106440c9ed54d39b05f6d2741324dd4f5ff95acc Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Mon, 25 May 2020 16:59:56 +0300 Subject: mesa: build python-mako inside mesa --- xorg/mesa/build | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'xorg/mesa/build') 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" -- cgit v1.2.3