aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/cinnamon-control-center/Makefile
blob: 669c2e2f0876eeb4fba1cb33802bc9079ddb0303 (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
# Created by: Gustau Perez i Querol <gustau.perez@gmail.com>
# $FreeBSD$

PORTNAME=   cinnamon-control-center
PORTVERSION=    4.2.2
CATEGORIES= sysutils gnome
DIST_SUBDIR=    gnome

MAINTAINER= gnome@FreeBSD.org
COMMENT=    Control center for Cinnamon

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

BUILD_DEPENDS=  gnome-autogen.sh:devel/gnome-common \
        cinnamon-settings-daemon>=1.0.0:sysutils/cinnamon-settings-daemon \
        iso-codes>0:misc/iso-codes
LIB_DEPENDS=    libcinnamon-desktop.so:x11/cinnamon-desktop \
        libcinnamon-menu-3.so:x11/cinnamon-menus \
        libcolord.so:graphics/colord \
        libcolordprivate.so:graphics/colord \
        libdbus-1.so:devel/dbus \
        libdbus-glib-1.so:devel/dbus-glib \
        libfontconfig.so:x11-fonts/fontconfig \
        libfreetype.so:print/freetype2 \
        libnotify.so:devel/libnotify \
        libpolkit-gobject-1.so:sysutils/polkit \
        libxklavier.so:x11/libxklavier
RUN_DEPENDS=    iso-codes>0:misc/iso-codes \
        cinnamon-settings-daemon>=1.0.0:sysutils/cinnamon-settings-daemon

USES=       autoreconf gettext gmake gnome libtool pathfix pkgconfig xorg

USE_GNOME=  cairo gdkpixbuf2 gtk30 intltool libgnomekbd libxml2

USE_GITHUB= yes
GH_ACCOUNT= linuxmint

USE_XORG=   x11 xfixes sm

INSTALLS_ICONS= yes

USE_LDCONFIG=   yes

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-networkmanager \
        --disable-modemmanager \
        --disable-documentation
CFLAGS+=    -I${LOCALBASE}/include
CPPFLAGS+=  -I${LOCALBASE}/include
INSTALL_TARGET= install-strip

OPTIONS_DEFINE= COLORD CUPS ONLINEACCOUNTS WACOM
OPTIONS_DEFAULT=COLORD CUPS ONLINEACCOUNTS WACOM
OPTIONS_SUB=    yes

ONLINEACCOUNTS_DESC=    GNOME Online Accounts panel support
WACOM_DESC= Wacom management panel support

COLORD_LIB_DEPENDS= libcolord.so:graphics/colord
COLORD_CONFIGURE_ENABLE=    color

CUPS_LIB_DEPENDS=   libcups.so:print/cups
CUPS_CONFIGURE_ENABLE=  cups

ONLINEACCOUNTS_LIB_DEPENDS= libgoa-1.0.so:net/gnome-online-accounts
ONLINEACCOUNTS_CONFIGURE_ENABLE=    onlineaccounts

WACOM_LIB_DEPENDS=  libwacom.so:x11/libwacom
WACOM_USE=      xorg=xi
WACOM_CONFIGURE_ENABLE= wacom

post-patch:
    @${REINPLACE_CMD} -e 's|/usr/share/|${PREFIX}/share/|g' \
        ${WRKSRC}/panels/common/cc-common-language.c

.include <bsd.port.mk>