pkgsrc-Bugs archive

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

Re: pkg/58339: cad/kicad fails without wayland being installed



Here's another patch to get rid of more patch fuzz due to more changes that were committed.

Can this patch be committed?

Index: cad/kicad/options.mk
===================================================================
RCS file: /cvsroot/pkgsrc/cad/kicad/options.mk,v
retrieving revision 1.3
diff -u -r1.3 options.mk
--- cad/kicad/options.mk	20 Nov 2024 01:29:49 -0000	1.3
+++ cad/kicad/options.mk	3 Dec 2024 08:27:40 -0000
@@ -1,7 +1,7 @@
 # $NetBSD: options.mk,v 1.3 2024/11/20 01:29:49 mef Exp $
 
 PKG_OPTIONS_VAR=	PKG_OPTIONS.kicad
-PKG_SUPPORTED_OPTIONS=	ng-spice
+PKG_SUPPORTED_OPTIONS=	ng-spice wayland
 PKG_SUGGESTED_OPTIONS=	ng-spice
 
 .include "../../mk/bsd.options.mk"
@@ -12,3 +12,16 @@
 .else
 CMAKE_CONFIGURE_ARGS+=		-DKICAD_SPICE=OFF
 .endif
+
+.if !empty(PKG_OPTIONS:Mwayland)
+.  include "../../devel/wayland/buildlink3.mk"
+CMAKE_CONFIGURE_ARGS+=   -DKICAD_WAYLAND=ON
+   # This conditional matches the conditional in Makefile
+   # so that it's effectively a test for whether
+   # KICAD_USE_EGL is enabled
+.  if empty(MESALIB_SUPPORTS_EGL:Myes)
+PKG_FAIL_REASON+= "Kicad requires the KICAD_USE_EGL CMake option when using the KICAD_WAYLAND CMake option. See the cmake_dependent_option() for KICAD_WAYLAND in CMakeLists.txt"
+.  endif
+.else
+CMAKE_CONFIGURE_ARGS+=   -DKICAD_WAYLAND=OFF
+.endif




Home | Main Index | Thread Index | Old Index