summaryrefslogtreecommitdiffstats
path: root/sysutils/gnome-control-center3/Makefile
blob: cc2ba51bd92b2cf3c94db240148669be70b5f267 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# New ports collection makefile for:    gnomecontrolcenter2
# Date created:             04 May 2002
# Whom:                 Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
#   $MCom: ports/sysutils/gnome-control-center3/Makefile,v 1.38 2012/06/14 09:06:30 kwm Exp $
#

PORTNAME=   gnome-control-center
PORTVERSION=    3.4.2
CATEGORIES= sysutils gnome
MASTER_SITES=   GNOME
DIST_SUBDIR=    gnome3

MAINTAINER= gnome@FreeBSD.org
COMMENT=    Control center for GNOME 3 project

BUILD_DEPENDS=  gnome-settings-daemon>=3.4.0:${PORTSDIR}/sysutils/gnome-settings-daemon3 \
        gsettings-desktop-schemas>=3.2.2:${PORTSDIR}/devel/gsettings-desktop-schemas \
        ${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:${PORTSDIR}/misc/iso-codes
LIB_DEPENDS=    canberra-gtk3.0:${PORTSDIR}/audio/libcanberra-gtk3 \
        xklavier.12:${PORTSDIR}/x11/libxklavier \
        upower-glib.1:${PORTSDIR}/sysutils/upower \
        colord.1:${PORTSDIR}/graphics/colord \
        goa-1.0.0:${PORTSDIR}/net/gnome-online-accounts \
        socialweb.0:${PORTSDIR}/www/libsocialweb \
        gtop-2.0.7:${PORTSDIR}/devel/libgtop \
        dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib \
        polkit-gobject-1.0:${PORTSDIR}/sysutils/polkit
RUN_DEPENDS=    gnome-eject:${PORTSDIR}/sysutils/gnome-mount \
        gnome-settings-daemon>=3.4.0:${PORTSDIR}/sysutils/gnome-settings-daemon3 \
        gsettings-desktop-schemas>=3.2.2:${PORTSDIR}/devel/gsettings-desktop-schemas \
        ${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:${PORTSDIR}/misc/iso-codes \
        glxinfo:${PORTSDIR}/graphics/mesa-demos \
        apg:${PORTSDIR}/security/apg \
        gcm-calibrate:${PORTSDIR}/graphics/gnome-color-manager

CONFLICTS=  gnome-control-center-2.[0-9]* gnome-media-2.[0-9]*

LATEST_LINK=    gnome-control-center3
USE_XZ=     yes
USE_GETTEXT=    yes
USE_GMAKE=  yes
WANT_GNOME= yes
USE_GNOME=  gnomeprefix gnomehack gnomehier intlhack libxml2 gnomemenus3 \
        libgnomekbd3 desktopfileutils gnomedesktop3 gconf2
USE_XORG=   xscrnsaver x11 xxf86misc kbproto xi
GNU_CONFIGURE=  yes
INSTALLS_ICONS= yes
USE_LDCONFIG=   yes
CONFIGURE_ARGS= --with-libsocialweb=yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

.if defined(PACKAGE_BUILDING)
.undef WITHOUT_GNOME
WITH_GNOME= yes
.endif

OPTIONS=    CUPS "Enable cups (printing) support" On \
        CHEESE "Enable cheese webcam support" Off

.include <bsd.port.pre.mk>

.if defined(WITH_CUPS)
LIB_DEPENDS+=   cups.2:${PORTSDIR}/print/cups-client
PLIST_SUB+= CUPS=""
.else
PLIST_SUB+= CUPS="@comment "
CONFIGURE_ARGS+=--disable-cups
.endif

.if ${OSVERSION}>=800000 && (defined(WITH_CHEESE) && (${ARCH}=="i386" || ${ARCH}=="amd64"))
CONFIGURE_ARGS+=--with-cheese
BUILD_DEPENDS+= cheese>=3.0.1:${PORTSDIR}/multimedia/cheese3
LIB_DEPENDS+=   cheese.5:${PORTSDIR}/multimedia/cheese3
.else
CONFIGURE_ARGS+=--without-cheese
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|datetime wacom|datetime|g' \
        ${WRKSRC}/panels/Makefile.in

post-install:
    @-update-desktop-database

.include <bsd.port.post.mk>