blob: 17d79a40127fe8725dc45a2ece7b91b69798fdc1 (
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
44
45
46
47
48
49
50
51
52
53
|
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD$
# $MCom: ports/trunk/sysutils/gnome-power-manager3/Makefile 17268 2013-04-01 05:13:11Z marcus $
PORTNAME= gnome-power-manager
PORTVERSION= 3.4.0
CATEGORIES= sysutils gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome3
MAINTAINER= gnome@FreeBSD.org
COMMENT= Power management system for the GNOME Desktop
LIB_DEPENDS= upower-glib.1:${PORTSDIR}/sysutils/upower \
CONFLICTS= gnome-power-manager-2.[0-9]*
LATEST_LINK= gnome-power-manager3
USES= gettext pathfix pkgconfig
USE_XZ= yes
USE_GMAKE= yes
INSTALLS_ICONS= yes
USE_GNOME= gnomeprefix intlhack gtk30 gnomedocutils
MAKE_JOBS_UNSAFE=yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-doc-dir=${PREFIX}/share/doc \
--disable-docbook-docs
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
GLIB_SCHEMAS= org.gnome.power-manager.gschema.xml
OPTIONS= MANPAGES "build man pages (pulls in docbook-utils)" off
.include <bsd.port.options.mk>
.if defined(PACKAGE_BUILDING)
WITH_MANPAGES=yes
.endif
.if defined(WITH_MANPAGES)
BUILD_DEPENDS+= docbook2html:${PORTSDIR}/textproc/docbook-utils \
${LOCALBASE}/share/sgml/docbook/4.1/dtd/catalog:${PORTSDIR}/textproc/docbook-410
MAN1= gnome-power-statistics.1
.endif
post-patch:
.if !defined(WITH_MANPAGES)
@${REINPLACE_CMD} -e "s|2MAN_TRUE=$$|2MAN_TRUE='#'|g ; \
s|2MAN_FALSE='#'|2MAN_FALSE=|g" ${WRKSRC}/configure
.endif
.include <bsd.port.mk>
|