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
> On Dec 3, 2024, at 3:45 AM, Rob Whitlock via gnats <gnats-admin%NetBSD.org@localhost> wrote:
>
> The following reply was made to PR pkg/58339; it has been noted by GNATS.
>
> From: Rob Whitlock <rwhitlock22%gmail.com@localhost>
> To: gnats-bugs%netbsd.org@localhost,
> "John D. Baker via gnats" <gnats-admin%NetBSD.org@localhost>
> Cc: pkg-manager%netbsd.org@localhost,
> pkgsrc-bugs%netbsd.org@localhost
> Subject: Re: pkg/58339: cad/kicad fails without wayland being installed
> Date: Tue, 3 Dec 2024 03:41:38 -0500
>
> Here's another patch to get rid of more patch fuzz due to more changes =
> that were committed.
>
> Can this patch be committed?
Take 2: resending now that my e-mail client is set to send plain text, not rich text (which I had thought it was before):
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