commit 106440c9ed54d39b05f6d2741324dd4f5ff95acc parent 8efde306bcbbf5398ba5c4b19db44ef744e8853a Author: Cem Keylan <cem@ckyln.com> Date: Mon, 25 May 2020 16:59:56 +0300 mesa: build python-mako inside mesa Diffstat:
M | xorg/mesa/build | | | 18 | ++++++++++++++++++ |
M | xorg/mesa/checksums | | | 1 | + |
M | xorg/mesa/depends | | | 1 | - |
M | xorg/mesa/sources | | | 1 | + |
4 files changed, 20 insertions(+), 1 deletion(-)
diff --git 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 @@ -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 @@ -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 @@ -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