summaryrefslogtreecommitdiffstats
path: root/sysutils/gnome-settings-daemon/Makefile
blob: 4600536e19089dfb5d2bcfe7b02b1421937fb9be (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
89
90
91
92
93
94
# Created by: Koop Mast <kwm@FreeBSD.org>
# $FreeBSD$
#   $MCom: ports-experimental/trunk/sysutils/gnome-settings-daemon/Makefile 19545 2014-04-16 12:23:11Z gusi $

PORTNAME=   gnome-settings-daemon
PORTVERSION=    3.12.2
CATEGORIES= sysutils gnome
MASTER_SITES=   GNOME
DIST_SUBDIR=    gnome3

MAINTAINER= gnome@FreeBSD.org
COMMENT=    GNOME 3 settings daemon

BUILD_DEPENDS=  gnome-session>=0:${PORTSDIR}/x11/gnome-session \
        geoclue>=0:${PORTSDIR}/net/geoclue \
        docbook-xsl>=0:${PORTSDIR}/textproc/docbook-xsl \
        ${LOCALBASE}/libdata/pkgconfig/gsettings-desktop-schemas.pc:${PORTSDIR}/devel/gsettings-desktop-schemas
LIB_DEPENDS=    libcanberra-gtk3.so:${PORTSDIR}/audio/libcanberra-gtk3 \
        libpolkit-gobject-1.so:${PORTSDIR}/sysutils/polkit \
        libibus-1.0.so:${PORTSDIR}/textproc/ibus \
        libdbus-1.so:${PORTSDIR}/devel/dbus \
        libcolord.so:${PORTSDIR}/graphics/colord \
        liblcms2.so:${PORTSDIR}/graphics/lcms2 \
        libpulse.so:${PORTSDIR}/audio/pulseaudio \
        libgdbm.so:${PORTSDIR}/databases/gdbm \
        libnotify.so:${PORTSDIR}/devel/libnotify \
        libgeocode-glib.so:${PORTSDIR}/net/geocode-glib \
        libgweather-3.so:${PORTSDIR}/net/libgweather
RUN_DEPENDS=    gnome-session>=0:${PORTSDIR}/x11/gnome-session \
        geoclue>=0:${PORTSDIR}/net/geoclue \
        ${LOCALBASE}/libdata/pkgconfig/gsettings-desktop-schemas.pc:${PORTSDIR}/devel/gsettings-desktop-schemas

USE_XORG=   xxf86misc
USE_GNOME=  gnomehier gnomedesktop3 gnomeprefix intlhack
USES=       gettext gmake libtool:keepla pathfix pkgconfig tar:xz
GNU_CONFIGURE=  yes
INSTALLS_ICONS= yes
CONFIGURE_ARGS= --disable-gudev \
        --disable-systemd \
        --disable-rfkill \
        --disable-packagekit
#       --disable-ibus \
#--with-pnpids=${LOCALBASE}/share/libgnome-desktop-3.0/pnp.ids
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip

OPTIONS_DEFINE= CUPS SMARTCARD
OPTIONS_DEFAULT=CUPS SMARTCARD
SMARTCARD_DESC= Smartcard support

GLIB_SCHEMAS=   org.gnome.settings-daemon.enums.xml \
        org.gnome.settings-daemon.peripherals.gschema.xml \
        org.gnome.settings-daemon.plugins.color.gschema.xml \
        org.gnome.settings-daemon.plugins.datetime.gschema.xml \
        org.gnome.settings-daemon.plugins.gschema.xml \
        org.gnome.settings-daemon.plugins.housekeeping.gschema.xml \
        org.gnome.settings-daemon.plugins.keyboard.gschema.xml \
        org.gnome.settings-daemon.plugins.media-keys.gschema.xml \
        org.gnome.settings-daemon.plugins.power.gschema.xml \
        org.gnome.settings-daemon.plugins.print-notifications.gschema.xml \
        org.gnome.settings-daemon.plugins.xrandr.gschema.xml \
        org.gnome.settings-daemon.plugins.xsettings.gschema.xml
# work around missing cursor with xorg-server 1.12.
GLIB_SCHEMAS+=  cursor-plugin.gschema.override

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MCUPS}
LIB_DEPENDS+=   libcups.so:${PORTSDIR}/print/cups-client
PLIST_SUB+= CUPS=""
.else
PLIST_SUB+= CUPS="@comment "
CONFIGURE_ARGS+=--disable-cups
.endif

.if ${PORT_OPTIONS:MSMARTCARD}
LIB_DEPENDS+=   libnss3.so:${PORTSDIR}/security/nss
CONFIGURE_ARGS+=--enable-smartcard-support
PLIST_SUB+= SMARTCARD=""
.else
CONFIGURE_ARGS+=--disable-smartcard-support
PLIST_SUB+= SMARTCARD="@comment "
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|/etc/gnome|${PREFIX}/etc/gnome|g' \
        ${WRKSRC}/data/org.gnome.settings-daemon.plugins.xrandr.gschema.xml.in.in

post-install:
    ${INSTALL_DATA} ${FILESDIR}/cursor-plugin.gschema.override \
        ${STAGEDIR}${PREFIX}/share/glib-2.0/schemas

.include <bsd.port.mk>