aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/gnome-settings-daemon/Makefile
blob: 5335333e733a510af8d138191a073e365ccdf96a (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
# Created by: Koop Mast <kwm@FreeBSD.org>
# $FreeBSD$

PORTNAME=   gnome-settings-daemon
PORTVERSION=    3.18.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 \
        gsettings-desktop-schemas>=0:${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 \
        gsettings-desktop-schemas>=0:${PORTSDIR}/devel/gsettings-desktop-schemas

PORTSCOUT=  limitw:1,even

USE_XORG=   xxf86misc
USE_GNOME=  gnomedesktop3 intltool libxslt
USES=       gettext gmake gnome libtool pathfix pkgconfig tar:xz
GNU_CONFIGURE=  yes
INSTALLS_ICONS= yes
CONFIGURE_ARGS= --disable-gudev \
        --with-nssdb=${LOCALBASE}/share/certs/ca-root-nss.crt \
        --disable-wayland \
        --disable-rfkill \
        --disable-network-manager

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip

OPTIONS_SUB=    yes
OPTIONS_DEFINE= CUPS SMARTCARD
OPTIONS_DEFAULT=CUPS SMARTCARD
SMARTCARD_DESC= Smartcard support
CUPS_CONFIGURE_ENABLE=  cups
CUPS_LIB_DEPENDS=   libcups.so:${PORTSDIR}/print/cups-client
SMARTCARD_CONFIGURE_ENABLE= smartcard-support
SMARTCARD_LIB_DEPENDS=  libnss3.so:${PORTSDIR}/security/nss

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.power.gschema.xml.override \
        org.gnome.settings-daemon.plugins.print-notifications.gschema.xml \
        org.gnome.settings-daemon.plugins.sharing.gschema.xml \
        org.gnome.settings-daemon.plugins.xrandr.gschema.xml \
        org.gnome.settings-daemon.plugins.xsettings.gschema.xml

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}/org.gnome.settings-daemon.plugins.power.gschema.xml.override \
        ${STAGEDIR}${PREFIX}/share/glib-2.0/schemas/

.include <bsd.port.mk>