pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/sysutils/xfile
Module Name: pkgsrc
Committed By: vins
Date: Thu May 1 07:34:21 UTC 2025
Added Files:
pkgsrc/sysutils/xfile: options.mk
Log Message:
xfile: add options.mk (missing in previous commit)
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/xfile/options.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/sysutils/xfile/options.mk
diff -u /dev/null pkgsrc/sysutils/xfile/options.mk:1.1
--- /dev/null Thu May 1 07:34:21 2025
+++ pkgsrc/sysutils/xfile/options.mk Thu May 1 07:34:20 2025
@@ -0,0 +1,39 @@
+# $NetBSD: options.mk,v 1.1 2025/05/01 07:34:20 vins Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.xfile
+
+PKG_SUPPORTED_OPTIONS= dbus
+
+PLIST_VARS+= dbus
+
+.include "../../mk/bsd.options.mk"
+
+##
+## D-Bus
+## Allows xfile to act as xdg/freedesktop default file manager and to be launched over dbus.
+## Such interface is used by some GTK programs, notably firefox and gimp.
+##
+.if !empty(PKG_OPTIONS:Mdbus)
+. include "../../sysutils/dbus/buildlink3.mk"
+
+DISTFILES+= xfile-xdgsvc-src.tar.xz
+
+SUBST_CLASSES+= prefix
+SUBST_STAGE.prefix= pre-configure
+SUBST_MESSAGE.prefix= Setting XDG service prefix.
+SUBST_FILES.prefix= src/xfile.service
+SUBST_SED.prefix+= -e "s:/usr/bin:${PREFIX}/bin:g"
+
+MAKE_ENV+= DBUS=1
+PLIST.dbus= yes
+
+.PHONY: xdgsvc-src
+
+xdgsvc-src:
+. for f in xfile-xdg.c xfile.service
+ ${RUN}${MV} ${WRKDIR}/xfile-xdgsvc/${f} ${WRKSRC}/src
+. endfor
+
+post-extract: xdgsvc-src
+
+.endif
Home |
Main Index |
Thread Index |
Old Index