pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/MesaLib MesaLib: Fix DRM build on SunOS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1e6ab38a7c18
branches:  trunk
changeset: 403084:1e6ab38a7c18
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Mon Oct 21 12:07:32 2019 +0000

description:
MesaLib: Fix DRM build on SunOS.

diffstat:

 graphics/MesaLib/Makefile                  |   7 +------
 graphics/MesaLib/distinfo                  |   3 ++-
 graphics/MesaLib/patches/patch-meson.build |  15 +++++++++++++++
 3 files changed, 18 insertions(+), 7 deletions(-)

diffs (61 lines):

diff -r 398558e579b2 -r 1e6ab38a7c18 graphics/MesaLib/Makefile
--- a/graphics/MesaLib/Makefile Mon Oct 21 11:47:16 2019 +0000
+++ b/graphics/MesaLib/Makefile Mon Oct 21 12:07:32 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.170 2019/10/19 13:42:34 nia Exp $
+# $NetBSD: Makefile,v 1.171 2019/10/21 12:07:32 jperkin Exp $
 
 DISTNAME=      mesa-19.2.1
 PKGNAME=       ${DISTNAME:S/mesa/MesaLib/}
@@ -50,17 +50,12 @@
 BUILDLINK_API_DEPENDS.libdrm+= libdrm>=2.4.81
 .include "../../x11/libdrm/buildlink3.mk"
 MESA_PLATFORMS+=       drm
-.  if ${OPSYS} != "SunOS"
 MESON_ARGS+=           -Degl=true
 MESON_ARGS+=           -Dgbm=true
 MESON_ARGS+=           -Dgallium-xa=true
 PLIST.egl=             yes
 PLIST.gbm=             yes
 PLIST.xatracker=       yes
-.  else
-MESON_ARGS+=           -Degl=false
-MESON_ARGS+=           -Dgbm=false
-.  endif
 .  include "../../multimedia/libva/available.mk"
 .  if ${VAAPI_AVAILABLE} == "yes"
 MESON_ARGS+=           -Dgallium-va=true
diff -r 398558e579b2 -r 1e6ab38a7c18 graphics/MesaLib/distinfo
--- a/graphics/MesaLib/distinfo Mon Oct 21 11:47:16 2019 +0000
+++ b/graphics/MesaLib/distinfo Mon Oct 21 12:07:32 2019 +0000
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.135 2019/10/19 10:29:57 nia Exp $
+$NetBSD: distinfo,v 1.136 2019/10/21 12:07:32 jperkin Exp $
 
 SHA1 (mesa-19.2.1.tar.xz) = 8ba7cb66799d5372923651f193f84d498b35c9a5
 RMD160 (mesa-19.2.1.tar.xz) = a3f068b71b138aae24cefd5c3cb044a5975b9aa2
 SHA512 (mesa-19.2.1.tar.xz) = decd74976fe866bf67fac4ae55a62d8e33ad24278dd58effe533e7d258b249f0ead848360e7e71444265184c6d9d9b04361caf0c6df99504e33599e7a0cd6c5d
 Size (mesa-19.2.1.tar.xz) = 11468492 bytes
+SHA1 (patch-meson.build) = 9e1ebd7bb6941baedeb79e420f762a0941c68688
 SHA1 (patch-src_amd_common_ac__debug.c) = 8233367c3b5bc344442ea8d19488fdd1e3791ae9
 SHA1 (patch-src_compiler_builtin__type__macros.h) = e4868011711fb89a293580a12eb603b8e7162336
 SHA1 (patch-src_compiler_glsl_glsl__parser__extras.cpp) = ef114d6e288e6d212fce9d1c0606f7d454a171c4
diff -r 398558e579b2 -r 1e6ab38a7c18 graphics/MesaLib/patches/patch-meson.build
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/MesaLib/patches/patch-meson.build        Mon Oct 21 12:07:32 2019 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-meson.build,v 1.3 2019/10/21 12:07:32 jperkin Exp $
+
+Fix DRM build on SunOS.
+
+--- meson.build.orig   2019-10-09 16:51:59.000000000 +0000
++++ meson.build
+@@ -117,7 +117,7 @@ with_any_opengl = with_opengl or with_gl
+ # Only build shared_glapi if at least one OpenGL API is enabled
+ with_shared_glapi = get_option('shared-glapi') and with_any_opengl
+ 
+-system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'gnu/kfreebsd', 'dragonfly', 'linux'].contains(host_machine.system())
++system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'gnu/kfreebsd', 'dragonfly', 'linux', 'sunos'].contains(host_machine.system())
+ 
+ dri_drivers = get_option('dri-drivers')
+ if dri_drivers.contains('auto')



Home | Main Index | Thread Index | Old Index