tech-pkg archive

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

Re: x11/qt5-qtbase dependency on libdrm on Linux?



Am Mon, 24 May 2021 16:32:32 +0000
schrieb nia <nia%NetBSD.org@localhost>: 

> Again, there is no reason for this to be Linux-specific, and
> making it so is harmful to other platforms and our general
> goal of portability.
> 
> graphics/MesaLib/features.mk contains a MESALIB_SUPPORTS_DRI
> macro that can be used to check if you're on a platform where
> libdrm is likely to work.

There's this other block already for GL/MesaLib stuff. It's inside
!Darwin already. Does this patch make more sense?

cvs diff: Diffing .
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/x11/qt5-qtbase/Makefile,v
retrieving revision 1.108
diff -u -r1.108 Makefile
--- Makefile	21 Apr 2021 13:25:33 -0000	1.108
+++ Makefile	24 May 2021 18:27:06 -0000
@@ -249,6 +249,10 @@
 .  if !empty(MESALIB_SUPPORTS_EGL:Myes)
 PLIST.egl=	yes
 .  endif
+.  if !(empty(MESALIB_SUPPORTS_DRI:Myes)
+CONFIGURE_ARGS+=       -kms
+.include "../../x11/libdrm/buildlink3.mk"
+.  endif
 BUILDLINK_API_DEPENDS.libxcb+=	libxcb>=1.11
 .include "../../x11/libxcb/buildlink3.mk"
 .include "../../x11/xcb-util/buildlink3.mk"


Alrighty then,

Thomas

-- 
Dr. Thomas Orgis
HPC @ Universität Hamburg


Home | Main Index | Thread Index | Old Index