Commit e5e8991f authored by PureTryOut's avatar PureTryOut Committed by Oliver Smith

temp/mesa: fix install prefix, enable release optimizations (!431)

The description below is a quote from Brian Masney in #296.

The pmOS mesa packages need to have -Db_ndebug=true passed to the meson
build so that debug assertions and extra validations are disabled to
improve overall system performance. See [1] for more details. Fedora
also recently made this change: [2]

This change, along with using the master branch of mesa, gets the
Freedreno driver working properly with X11 on the Nexus 5 and presumably
other A3XX-based systems.

--buildtype=release should also be passed to meson for extra
optimizations. See the thread [3] for more details.


[ci:skip-build]: already built successfully in CI
parent f4b12735
Pipeline #65756844 passed with stages
in 2 minutes and 7 seconds
......@@ -2,7 +2,7 @@
pkgdesc="[${_pkgver}] Mesa DRI OpenGL library"
arch="armhf armv7 aarch64"
......@@ -91,8 +91,6 @@ builddir="$srcdir/mesa-$pkgname-$_pkgver"
build() {
cd "$builddir"
mkdir "$builddir"/build
meson -Ddri-search-path="$_dri_driverdir" \
......@@ -109,13 +107,14 @@ build() {
-Dosmesa=gallium \
-Dgbm=true \
-Dglx-tls=false \
-Dprefix="$pkgdir"/usr "$builddir"/build
-Db_ndebug=true \
-Dprefix=/usr "$builddir"/build \
ninja -C "$builddir"/build
package() {
cd "$builddir"
ninja -C "$builddir"/build install
DESTDIR="$pkgdir" ninja -C "$builddir"/build install
egl() {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment