Module Name: pkgsrc-wip
Committed By: kikadf <kikadf.01%gmail.com@localhost>
Pushed By: kikadf
Date: Sun Jan 25 13:05:18 2026 +0100
Changeset: cde2551da02ef0be512ff4faf1c57f8289c3d539
Modified Files:
dunst/Makefile
Added Files:
dunst/options.mk
Log Message:
dunst: add wayland support
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=cde2551da02ef0be512ff4faf1c57f8289c3d539
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
dunst/Makefile | 5 +++--
dunst/options.mk | 20 ++++++++++++++++++++
2 files changed, 23 insertions(+), 2 deletions(-)
diffs:
diff --git a/dunst/Makefile b/dunst/Makefile
index a1fa7e8453..4af6c13269 100644
--- a/dunst/Makefile
+++ b/dunst/Makefile
@@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.51 2026/01/07 08:49:28 wiz Exp $
DISTNAME= dunst-1.13.0
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_GITHUB:=dunst-project/}
GITHUB_TAG= v${PKGVERSION_NOREV}
@@ -20,7 +20,8 @@ USE_TOOLS+= bash:test gmake pod2man pkg-config
TEST_TARGET= test
MAKE_FLAGS+= SYSTEMD=0
-MAKE_FLAGS+= WAYLAND=0
+
+.include "options.mk"
REPLACE_SH+= contrib/progress-notify.sh
REPLACE_BASH+= contrib/dunst_xr_theme_changer.sh
diff --git a/dunst/options.mk b/dunst/options.mk
new file mode 100644
index 0000000000..1d49f2615f
--- /dev/null
+++ b/dunst/options.mk
@@ -0,0 +1,20 @@
+# $NetBSD: $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.dunst
+PKG_SUPPORTED_OPTIONS= wayland
+
+.include "../../devel/wayland/platform.mk"
+
+.if ${PLATFORM_SUPPORTS_WAYLAND} == "yes"
+PKG_SUGGESTED_OPTIONS+= wayland
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mwayland)
+.include "../../wip/input-headers/buildlink3.mk"
+.include "../../devel/wayland/buildlink3.mk"
+.include "../../devel/wayland-protocols/buildlink3.mk"
+.else
+MAKE_FLAGS+= WAYLAND=0
+.endif