pkgsrc/sysutils/upower/Makefile
jmcneill 522b0e0127 Import upower-0.99.2 as sysutils/upower.
UPower is an abstraction for enumerating power devices, listening to device
events and querying history and statistics. Any application or service on the
system can access the org.freedesktop.UPower service via the system message
bus. Some operations (such as suspending the system) are restricted using
PolicyKit.
2015-02-21 19:44:55 +00:00

31 lines
1,007 B
Makefile

# $NetBSD: Makefile,v 1.1 2015/02/21 19:44:55 jmcneill Exp $
DISTNAME= upower-0.99.2
CATEGORIES= sysutils
MASTER_SITES= http://upower.freedesktop.org/releases/
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://upower.freedesktop.org
COMMENT= Power management system message bus service
LICENSE= gnu-gpl-v2
GNU_CONFIGURE= yes
USE_TOOLS+= gmake pkg-config intltool
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
PKG_SYSCONFSUBDIR= UPower
INSTALL_MAKE_FLAGS+= configdir=${EGDIR} dbusconfdir=${EGDIR}
EGDIR= ${PREFIX}/share/examples/upower
CONF_FILES+= ${EGDIR}/UPower.conf ${PKG_SYSCONFDIR}/UPower.conf
CONF_FILES+= ${EGDIR}/org.freedesktop.UPower.conf \
${PKG_SYSCONFBASE}/dbus-1/system.d/org.freedesktop.UPower.conf
PKGCONFIG_OVERRIDE+= upower-glib.pc.in
.include "../../devel/glib2/buildlink3.mk"
.include "../../sysutils/dbus/buildlink3.mk"
.include "../../sysutils/dbus-glib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"