Backport https://cgit.freedesktop.org/upower/patch/?id=932a6a39e35754be571e1274aec4730fd42dba13 from https://bugs.freedesktop.org/show_bug.cgi?id=95350 First part of a larger fix for xfsettingsd crashes when systemwide dbus isn't running. ok/testing edd@
47 lines
1.0 KiB
Makefile
47 lines
1.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.53 2016/09/01 10:11:47 landry Exp $
|
|
|
|
ONLY_FOR_ARCHS =${APM_ARCHS}
|
|
|
|
COMMENT = userland power management interface
|
|
|
|
DISTNAME = upower-0.99.4
|
|
REVISION = 1
|
|
EXTRACT_SUFX = .tar.xz
|
|
CATEGORIES = sysutils
|
|
SHARED_LIBS += upower-glib 2.1 # 3.1
|
|
|
|
HOMEPAGE = http://upower.freedesktop.org/
|
|
MASTER_SITES = ${HOMEPAGE}/releases/
|
|
|
|
MAINTAINER = Landry Breuil <landry@openbsd.org>
|
|
|
|
# GPLv2+
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
WANTLIB += c gio-2.0 glib-2.0 gobject-2.0 m pthread
|
|
|
|
CONFIGURE_STYLE = gnu
|
|
CONFIGURE_ARGS += --enable-introspection \
|
|
--enable-man-pages \
|
|
--with-historydir=/var/db/upower \
|
|
--with-backend=openbsd \
|
|
--without-idevice
|
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
FAKE_FLAGS = sysconfdir=${PREFIX}/share/examples/upower
|
|
|
|
USE_GMAKE = Yes
|
|
|
|
MODULES = textproc/intltool
|
|
|
|
LIB_DEPENDS = devel/glib2
|
|
BUILD_DEPENDS = devel/gobject-introspection \
|
|
textproc/docbook-xsl
|
|
|
|
# /usr/local/share/dbus-1/system-services/
|
|
RUN_DEPENDS += x11/dbus,-suid
|
|
|
|
.include <bsd.port.mk>
|