pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/58981: cad/kicad: use wayland/platform.mk
>Number: 58981
>Category: pkg
>Synopsis: cad/kicad: use wayland/platform.mk
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jan 10 17:50:00 +0000 2025
>Originator: Robert Whitlock
>Release: pkgsrc current, Jan 4, 2025
>Organization:
>Environment:
NetBSD/amd64 current 10.99.12, Nov 9, 2024
>Description:
Examination of other packages that have a wayland option (like gtk3) show that wayland is in PKG_SUGGESTED_OPTIONS only if wayland/platform.mk says to do so. This patch adapts cad/kicad to follow that practice, so that the wayland option is not suggested to be used on platforms that don't support wayland.
>How-To-Repeat:
be on a platform that doesn't support wayland
cd cad/kicad
make show-options
see that wayland is suggested
>Fix:
Use wayland/platform.mk in cad/kicad/options.mk.
Index: options.mk
===================================================================
RCS file: /cvsroot/pkgsrc/cad/kicad/options.mk,v
retrieving revision 1.5
diff -u -r1.5 options.mk
--- options.mk 16 Dec 2024 07:44:51 -0000 1.5
+++ options.mk 10 Jan 2025 17:37:06 -0000
@@ -2,7 +2,12 @@
PKG_OPTIONS_VAR= PKG_OPTIONS.kicad
PKG_SUPPORTED_OPTIONS= ng-spice wayland
-PKG_SUGGESTED_OPTIONS= ng-spice wayland
+PKG_SUGGESTED_OPTIONS= ng-spice
+
+.include "../../devel/wayland/platform.mk"
+.if ${PLATFORM_SUPPORTS_WAYLAND} == "yes"
+PKG_SUGGESTED_OPTIONS+= wayland
+.endif
.include "../../mk/bsd.options.mk"
Home |
Main Index |
Thread Index |
Old Index