2019-06-27 09:19:50 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2020-02-25 20:02:34 +00:00
|
|
|
# Install python-mako which is solely needed for mesa
|
|
|
|
# and thus contained in this build.
|
|
|
|
{
|
|
|
|
cd mako
|
|
|
|
|
|
|
|
python3 setup.py build
|
|
|
|
python3 setup.py install \
|
|
|
|
--prefix=/usr \
|
|
|
|
--root="$PWD/dist"
|
|
|
|
|
|
|
|
# Use a glob to avoid having to figure out the Python
|
|
|
|
# version for the path below.
|
|
|
|
cd dist/usr/lib/python*/site-packages
|
|
|
|
|
|
|
|
# Set the PYTHONPATH so python knows where to find mako.
|
|
|
|
# The one liner simply appends the existing path and
|
|
|
|
# handles the case where an unset PYTHONPATH breaks
|
|
|
|
# python as it will only contain our new addition.
|
|
|
|
PYTHONPATH=$PWD:$(python -c "import sys; print(':'.join(sys.path))")
|
|
|
|
|
|
|
|
cd -; cd ..
|
|
|
|
}
|
|
|
|
export PYTHONPATH
|
2019-08-03 16:36:34 +00:00
|
|
|
|
2021-07-10 20:31:20 +00:00
|
|
|
# To prevent the need for users to fork the mesa package to add
|
|
|
|
# libglvnd support, the below code checks for its availability
|
|
|
|
# and enables it if present. ie: install glvnd, rebuild mesa.
|
2022-03-28 09:35:47 +00:00
|
|
|
pkg-config --exists libglvnd || glvnd_enabled=false
|
2021-07-10 20:31:20 +00:00
|
|
|
|
2019-06-27 18:36:01 +00:00
|
|
|
meson \
|
2019-06-27 09:19:50 +00:00
|
|
|
--prefix=/usr \
|
2019-06-27 09:25:10 +00:00
|
|
|
--sysconfdir=/etc \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--localstatedir=/var \
|
2019-06-27 18:36:01 +00:00
|
|
|
--buildtype=release \
|
2021-07-28 05:10:01 +00:00
|
|
|
-Dglx-read-only-text=true \
|
2021-07-08 06:50:41 +00:00
|
|
|
-Dplatforms=wayland \
|
|
|
|
-Dglx=disabled \
|
2021-07-24 04:27:37 +00:00
|
|
|
-Degl=enabled \
|
|
|
|
-Dvalgrind=false \
|
2022-09-21 04:16:21 +00:00
|
|
|
-Dzstd=disabled \
|
2022-03-28 09:35:47 +00:00
|
|
|
-Dglvnd="${glvnd_enabled:-true}" \
|
2022-09-21 04:16:21 +00:00
|
|
|
-Dvulkan-drivers='' \
|
2019-06-27 18:36:01 +00:00
|
|
|
. output
|
|
|
|
|
|
|
|
ninja -C output
|
2019-10-07 21:16:49 +00:00
|
|
|
ninja -C output install
|