summaryrefslogtreecommitdiff
path: root/sysutils/system-tools-backends/Makefile
blob: 00dbeeef04456059178902ae6b73b2d905b69270 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# $NetBSD: Makefile,v 1.28 2021/05/24 19:54:20 wiz Exp $
#

DISTNAME=		system-tools-backends-2.6.1
PKGREVISION=		20
CATEGORIES=		sysutils
MASTER_SITES=		https://system-tools-backends.freedesktop.org/downloads/2.6/

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		https://system-tools-backends.freedesktop.org/
COMMENT=		DBus interface for system configuration

PKG_OPTIONS_VAR=	PKG_OPTIONS.system-tools-backends
PKG_SUPPORTED_OPTIONS+=	hal
PKG_SUGGESTED_OPTIONS+=	hal
PLIST_VARS+=		hal

.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mhal)
.include "../../security/policykit/buildlink3.mk"
.include "../../sysutils/hal/buildlink3.mk"
PLIST.hal=		yes
.endif

EGDIR=		${PREFIX}/share/examples/system-tools-backends
CONF_FILES+=	${EGDIR}/system-tools-backends.conf ${PKG_SYSCONFDIR}/dbus-1/system.d/system-tools-backends.conf

GNU_CONFIGURE=		YES
USE_PKGLOCALEDIR=	YES
USE_TOOLS+=		gmake intltool msgfmt perl pkg-config
USE_LIBTOOL=		YES

STB_GROUP?=		stb-admin
PKG_GROUPS=		${STB_GROUP}
PKG_GROUPS_VARS+=	STB_GROUP

CONFIGURE_ARGS+=	--with-stb-group=${STB_GROUP}
CONFIGURE_ARGS+=	--localstatedir=/var
CONFIGURE_ARGS+=	--with-dbus-sys=${EGDIR}

DEPENDS+=	p5-XML-Twig>=3.32:../../textproc/p5-XML-Twig
DEPENDS+=	p5-Net-DBus>=0.33.6:../../net/p5-Net-DBus
DEPENDS+=	p5-libwww>=5.820:../../www/p5-libwww
DEPENDS+=	p5-URI>=1.37:../../www/p5-URI

REPLACE_PERL+=	SystemToolsBackends.pl.in
REPLACE_PERL+=	Utils/*.pm

SUBST_CLASSES+=			gettext-package
SUBST_STAGE.gettext-package=	post-configure
SUBST_FILES.gettext-package=	po/Makefile
SUBST_SED.gettext-package=	-e 's|@GETTEXT_PACKAGE@|system-tools-backends|g'

.include "../../devel/glib2/buildlink3.mk"
.include "../../lang/perl5/buildlink3.mk"
.include "../../sysutils/dbus/buildlink3.mk"
.include "../../sysutils/dbus-glib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"