pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/MesaLib MesaLib: add a flag to buildlink3 to ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1162893af895
branches:  trunk
changeset: 400559:1162893af895
user:      nia <nia%pkgsrc.org@localhost>
date:      Fri Aug 30 16:00:47 2019 +0000

description:
MesaLib: add a flag to buildlink3 to detect OSMesa support, similar to EGL

diffstat:

 graphics/MesaLib/buildlink3.mk |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 3fa0286a7f99 -r 1162893af895 graphics/MesaLib/buildlink3.mk
--- a/graphics/MesaLib/buildlink3.mk    Fri Aug 30 15:46:47 2019 +0000
+++ b/graphics/MesaLib/buildlink3.mk    Fri Aug 30 16:00:47 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.59 2019/08/30 13:00:56 nia Exp $
+# $NetBSD: buildlink3.mk,v 1.60 2019/08/30 16:00:47 nia Exp $
 
 BUILDLINK_TREE+=       MesaLib
 
@@ -25,6 +25,13 @@
 MESALIB_SUPPORTS_EGL=  no
 .endif
 
+.if    ${X11_TYPE} == "modular" || \
+       ${X11_TYPE} == "native"  && exists(${X11BASE}/lib/libOSMesa.so)
+MESALIB_SUPPORTS_OS=   yes
+.else
+MESALIB_SUPPORTS_OS=   no
+.endif
+
 .include "../../mk/pkg-build-options.mk"
 
 .if !empty(PKG_BUILD_OPTIONS.MesaLib:Mwayland)



Home | Main Index | Thread Index | Old Index