pkgsrc-Changes archive

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

CVS commit: pkgsrc/games/wesnoth



Module Name:    pkgsrc
Committed By:   leot
Date:           Tue Sep  2 09:33:32 UTC 2025

Modified Files:
        pkgsrc/games/wesnoth: Makefile
Added Files:
        pkgsrc/games/wesnoth: options.mk

Log Message:
wesnoth: Add dbus option

Permit to build wesnoth without dbus.

Defaults to still build with dbus so no PKGREVISION bump needed.


To generate a diff of this commit:
cvs rdiff -u -r1.231 -r1.232 pkgsrc/games/wesnoth/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/games/wesnoth/options.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/games/wesnoth/Makefile
diff -u pkgsrc/games/wesnoth/Makefile:1.231 pkgsrc/games/wesnoth/Makefile:1.232
--- pkgsrc/games/wesnoth/Makefile:1.231 Tue Jun 10 15:00:10 2025
+++ pkgsrc/games/wesnoth/Makefile       Tue Sep  2 09:33:32 2025
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.231 2025/06/10 15:00:10 adam Exp $
+# $NetBSD: Makefile,v 1.232 2025/09/02 09:33:32 leot Exp $
 
 DISTNAME=      wesnoth-1.18.5
 CATEGORIES=    games
@@ -56,6 +56,8 @@ PLIST.icons=          yes
 
 LDFLAGS.SunOS+=                -lsocket
 
+.include "options.mk"
+
 .include "../../audio/SDL2_mixer/buildlink3.mk"
 .include "../../audio/libvorbis/buildlink3.mk"
 .include "../../converters/fribidi/buildlink3.mk"
@@ -75,7 +77,6 @@ BUILDLINK_API_DEPENDS.pango+= pango>=1.1
 .include "../../lang/python/application.mk"
 .include "../../net/SDL2_net/buildlink3.mk"
 .include "../../security/openssl/buildlink3.mk"
-.include "../../sysutils/dbus/buildlink3.mk"
 .include "../../sysutils/desktop-file-utils/desktopdb.mk"
 .include "../../textproc/icu/buildlink3.mk"
 .include "../../www/curl/buildlink3.mk"

Added files:

Index: pkgsrc/games/wesnoth/options.mk
diff -u /dev/null pkgsrc/games/wesnoth/options.mk:1.1
--- /dev/null   Tue Sep  2 09:33:32 2025
+++ pkgsrc/games/wesnoth/options.mk     Tue Sep  2 09:33:32 2025
@@ -0,0 +1,14 @@
+# $NetBSD: options.mk,v 1.1 2025/09/02 09:33:32 leot Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.wesnoth
+PKG_SUPPORTED_OPTIONS= dbus
+PKG_SUGGESTED_OPTIONS= dbus
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mdbus)
+CMAKE_CONFIGURE_ARGS+= -DENABLE_NOTIFICATIONS=ON
+.  include "../../sysutils/dbus/buildlink3.mk"
+.else
+CMAKE_CONFIGURE_ARGS+= -DENABLE_NOTIFICATIONS=OFF
+.endif



Home | Main Index | Thread Index | Old Index