aboutsummaryrefslogtreecommitdiff
path: root/xorg/mesa/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-05-25 16:59:56 +0300
committerCem Keylan <cem@ckyln.com>2020-05-25 16:59:56 +0300
commit106440c9ed54d39b05f6d2741324dd4f5ff95acc (patch)
treebb6eb5c6904e7f7deca9764a1639ce1eb1356a7f /xorg/mesa/build
parent8efde306bcbbf5398ba5c4b19db44ef744e8853a (diff)
downloadrepository-106440c9ed54d39b05f6d2741324dd4f5ff95acc.tar.gz
mesa: build python-mako inside mesa
Diffstat (limited to 'xorg/mesa/build')
-rwxr-xr-xxorg/mesa/build18
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"