aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2021-08-03 09:13:00 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2021-08-04 10:23:10 +0000
commita751a7f865e6616b74206c3f6dad0a3c957edeec (patch)
tree6a7e2f5650d6801847470d040ccd737f3b0b5861
parenta10fc0f8f94de7875cdd7ce09b931ee14f6f004b (diff)
downloadports-a751a7f865e6616b74206c3f6dad0a3c957edeec.tar.gz
ports-a751a7f865e6616b74206c3f6dad0a3c957edeec.zip
graphics/mesa-libs: Add back patch for iris
Due to how the mesa ports are split we need to patch meson files so iris is prefered on compatible intel GPU. PR: 257462
-rw-r--r--graphics/mesa-dri/files/patch-src_loader_meson.build11
-rw-r--r--graphics/mesa-libs/Makefile1
2 files changed, 12 insertions, 0 deletions
diff --git a/graphics/mesa-dri/files/patch-src_loader_meson.build b/graphics/mesa-dri/files/patch-src_loader_meson.build
new file mode 100644
index 000000000000..14ef872d46f4
--- /dev/null
+++ b/graphics/mesa-dri/files/patch-src_loader_meson.build
@@ -0,0 +1,11 @@
+--- src/loader/meson.build.orig 2020-12-03 18:59:28.209491000 +0100
++++ src/loader/meson.build 2020-12-03 18:59:40.685431000 +0100
+@@ -41,7 +41,7 @@
+ '-DDEFAULT_DRIVER_DIR="@0@"'.format(dri_search_path),
+ ]
+
+-if with_gallium_iris and get_option('prefer-iris')
++if get_option('prefer-iris')
+ loader_c_args += ['-DPREFER_IRIS']
+ endif
+
diff --git a/graphics/mesa-libs/Makefile b/graphics/mesa-libs/Makefile
index 7d759b34ca81..265935e99058 100644
--- a/graphics/mesa-libs/Makefile
+++ b/graphics/mesa-libs/Makefile
@@ -2,6 +2,7 @@
PORTNAME= mesa-libs
PORTVERSION= ${MESAVERSION}
+PORTREVISION= 1
CATEGORIES= graphics
COMMENT= OpenGL libraries that support GLX and EGL clients