Fri Apr 17 21:07:00 2020 UTC ()
mate-power-manager: fix sandboxed builds

Polkit is now required directly for its ITS data during the build phase
only, in order to generate the file "org.mate.power.policy". (While
here, itstool is already pulled in through the meta-package.)


(gutteridge)
diff -r1.22 -r1.23 pkgsrc/sysutils/mate-power-manager/Makefile

cvs diff -r1.22 -r1.23 pkgsrc/sysutils/mate-power-manager/Makefile (expand / switch to unified diff)

--- pkgsrc/sysutils/mate-power-manager/Makefile 2020/04/05 16:05:43 1.22
+++ pkgsrc/sysutils/mate-power-manager/Makefile 2020/04/17 21:07:00 1.23
@@ -1,24 +1,27 @@ @@ -1,24 +1,27 @@
1# $NetBSD: Makefile,v 1.22 2020/04/05 16:05:43 bsiegert Exp $ 1# $NetBSD: Makefile,v 1.23 2020/04/17 21:07:00 gutteridge Exp $
2 2
3.include "../../meta-pkgs/mate/Makefile.common" 3.include "../../meta-pkgs/mate/Makefile.common"
4 4
5DISTNAME= mate-power-manager-${VERSION:R}.0 5DISTNAME= mate-power-manager-${VERSION:R}.0
6CATEGORIES= sysutils 6CATEGORIES= sysutils
7 7
8COMMENT= Power manager for MATE 8COMMENT= Power manager for MATE
9 9
10TOOL_DEPENDS+= itstool-[0-9]*:../../textproc/itstool 
11TOOL_DEPENDS+= libxml2-[0-9]*:../../textproc/libxml2 # for xmllint 10TOOL_DEPENDS+= libxml2-[0-9]*:../../textproc/libxml2 # for xmllint
 11# This looks unorthodox, but polkit is required directly for its ITS
 12# data during the build phase only, in order to generate the file
 13# "org.mate.power.policy".
 14TOOL_DEPENDS+= polkit-[0-9]*:../../security/polkit
12 15
13CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} 16CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
14INSTALL_MAKE_FLAGS+= sysconfdir=${PREFIX}/share/examples/${PKGBASE} 17INSTALL_MAKE_FLAGS+= sysconfdir=${PREFIX}/share/examples/${PKGBASE}
15 18
16MAKE_DIRS+= ${PKG_SYSCONFDIR}/xdg/autostart 19MAKE_DIRS+= ${PKG_SYSCONFDIR}/xdg/autostart
17CONF_FILES+= ${PREFIX}/share/examples/mate-power-manager/xdg/autostart/mate-power-manager.desktop \ 20CONF_FILES+= ${PREFIX}/share/examples/mate-power-manager/xdg/autostart/mate-power-manager.desktop \
18 ${PKG_SYSCONFDIR}/xdg/autostart/mate-power-manager.desktop 21 ${PKG_SYSCONFDIR}/xdg/autostart/mate-power-manager.desktop
19 22
20.include "options.mk" 23.include "options.mk"
21 24
22.include "../../devel/glib2/schemas.mk" 25.include "../../devel/glib2/schemas.mk"
23.include "../../sysutils/desktop-file-utils/desktopdb.mk" 26.include "../../sysutils/desktop-file-utils/desktopdb.mk"
24.include "../../sysutils/upower/buildlink3.mk" 27.include "../../sysutils/upower/buildlink3.mk"