aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/upower/Makefile
blob: c6c8109fa44247bc009f51f3e0080b762c97559f (plain) (blame)
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
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD$
#   $MCom: ports/sysutils/upower/Makefile,v 1.19 2010/10/05 08:30:15 kwm Exp $

PORTNAME=   upower
PORTVERSION=    0.9.7
PORTREVISION=   5
CATEGORIES= sysutils
MASTER_SITES=   http://upower.freedesktop.org/releases/

MAINTAINER= gnome@FreeBSD.org
COMMENT=    D-Bus daemon for simplifying power management tasks

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libpolkit-gobject-1.so:${PORTSDIR}/sysutils/polkit \
        libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib

OPTIONS_DEFINE= MANPAGES
OPTIONS_DEFAULT=MANPAGES
OPTIONS_SUB=    yes
MANPAGES_CONFIGURE_ENABLE=  man-pages
MANPAGES_BUILD_DEPENDS= \
    ${LOCALBASE}/share/sgml/docbook/4.1:${PORTSDIR}/textproc/docbook-sgml \
        ${LOCALBASE}/share/xml/docbook/4.1.2:${PORTSDIR}/textproc/docbook-xml \
        xsltproc:${PORTSDIR}/textproc/libxslt \
    ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl

USES=       gettext gmake libtool:keepla pathfix pkgconfig tar:bzip2
USE_GNOME=  intlhack glib20 introspection:build,run
GNU_CONFIGURE=  yes
USE_LDCONFIG=   yes
USE_PYTHON= yes
CONFIGURE_ARGS= --disable-gtk-doc \
        --with-backend=freebsd \
        --localstatedir=/var
CONFIGURE_ENV=  GTKDOC="false"
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip

.include <bsd.port.mk>