pkgsrc-Changes archive

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

CVS commit: pkgsrc/graphics/MesaLib



Module Name:    pkgsrc
Committed By:   tsutsui
Date:           Wed Aug 19 15:12:51 UTC 2026

Modified Files:
        pkgsrc/graphics/MesaLib: features.mk

Log Message:
graphics/MesaLib: improve native EGL detection on NetBSD

For native X11 on NetBSD, use HAVE_XORG_EGL when it is available
instead of only checking for the EGL header.

On older NetBSD releases without HAVE_XORG_EGL, use HAVE_XORG_GLAMOR
as a fallback, since native libepoxy EGL support was conditional on
GLAMOR there.

This is a proper fix for PR pkg/60295 and makes MESALIB_SUPPORTS_EGL
reflect the actual native EGL support more accurately.

PR pkg/60476


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/graphics/MesaLib/features.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/MesaLib/features.mk
diff -u pkgsrc/graphics/MesaLib/features.mk:1.2 pkgsrc/graphics/MesaLib/features.mk:1.3
--- pkgsrc/graphics/MesaLib/features.mk:1.2     Mon Jul 10 03:16:45 2023
+++ pkgsrc/graphics/MesaLib/features.mk Wed Aug 19 15:12:51 2026
@@ -1,4 +1,4 @@
-# $NetBSD: features.mk,v 1.2 2023/07/10 03:16:45 pho Exp $
+# $NetBSD: features.mk,v 1.3 2026/08/19 15:12:51 tsutsui Exp $
 
 .include "../../mk/bsd.fast.prefs.mk"
 
@@ -28,7 +28,15 @@ MESALIB_SUPPORTS_XA?=                yes
 .    endif
 .  endif
 .else
-.  if exists(${X11BASE}/include/EGL/egl.h)
+.  if ${OPSYS} == "NetBSD"
+.    if defined(HAVE_XORG_EGL)
+MESALIB_SUPPORTS_EGL?=         ${HAVE_XORG_EGL}
+.    else
+# NetBSD 10 and earlier built native libepoxy EGL support
+# conditional on Xorg GLAMOR support.
+MESALIB_SUPPORTS_EGL?=         ${HAVE_XORG_GLAMOR:Uno}
+.    endif
+.  elif exists(${X11BASE}/include/EGL/egl.h)
 MESALIB_SUPPORTS_EGL?=         yes
 .  endif
 .  if exists(${X11BASE}/lib/libOSMesa.so)



Home | Main Index | Thread Index | Old Index