aboutsummaryrefslogtreecommitdiff
path: root/xorg
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
parent8efde306bcbbf5398ba5c4b19db44ef744e8853a (diff)
downloadrepository-106440c9ed54d39b05f6d2741324dd4f5ff95acc.tar.gz
mesa: build python-mako inside mesa
Diffstat (limited to 'xorg')
-rwxr-xr-xxorg/mesa/build18
-rw-r--r--xorg/mesa/checksums1
-rw-r--r--xorg/mesa/depends1
-rw-r--r--xorg/mesa/sources1
4 files changed, 20 insertions, 1 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"
diff --git a/xorg/mesa/checksums b/xorg/mesa/checksums
index 2d1da075..99db8e14 100644
--- a/xorg/mesa/checksums
+++ b/xorg/mesa/checksums
@@ -1 +1,2 @@
fe6e258fe772c3cd2ac01741bf7408058c3ac02d66acff9a6e669bd72e3ea178 mesa-20.0.7.tar.xz
+2984a6733e1d472796ceef37ad48c26f4a984bb18119bb2dbc37a44d8f6e75a4 Mako-1.1.1.tar.gz
diff --git a/xorg/mesa/depends b/xorg/mesa/depends
index 1a65438f..07eef570 100644
--- a/xorg/mesa/depends
+++ b/xorg/mesa/depends
@@ -14,6 +14,5 @@ libxshmfence
llvm
meson make
python make
-python-mako make
xorgproto
zlib
diff --git a/xorg/mesa/sources b/xorg/mesa/sources
index 49c7199c..cbf207a0 100644
--- a/xorg/mesa/sources
+++ b/xorg/mesa/sources
@@ -1 +1,2 @@
https://mesa.freedesktop.org/archive/mesa-20.0.7.tar.xz
+https://files.pythonhosted.org/packages/source/M/Mako/Mako-1.1.1.tar.gz mako