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

PORTNAME=   cinnamon-control-center
PORTVERSION=    2.2.3
CATEGORIES= sysutils gnome
MASTER_SITES=   http://github.com/linuxmint/${PORTNAME}/archive/${PORTVERSION}.tar.gz?dummy=/
DIST_SUBDIR=    gnome3

MAINTAINER= gustau.perez@gmail.com
COMMENT=    Control center for Cinnamon

BUILD_DEPENDS=  ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss \
        cinnamon-settings-daemon>=0:${PORTSDIR}/sysutils/cinnamon-settings-daemon \
        gnome-autogen.sh:${PORTSDIR}/devel/gnome-common
LIB_DEPENDS=    libstartup-notification-1.so:${PORTSDIR}/x11/startup-notification \
        libupower-glib.so:${PORTSDIR}/sysutils/upower \
        libcheese.so:${PORTSDIR}/multimedia/cheese \
        libcaribou.so:${PORTSDIR}/accessibility/caribou \
        libgtop-2.0.so:${PORTSDIR}/devel/libgtop \
        libmuffin.so:${PORTSDIR}/x11-wm/muffin \
        libtelepathy-glib.so:${PORTSDIR}/net-im/telepathy-glib \
        libtelepathy-logger.so:${PORTSDIR}/net-im/telepathy-logger \
        libgnomekbdui.so:${PORTSDIR}/x11/libgnomekbd \
        libfolks.so:${PORTSDIR}/net-im/folks \
        libpulse.so:${PORTSDIR}/audio/pulseaudio \
        libcroco-0.6.so:${PORTSDIR}/textproc/libcroco \
        libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib \
        libclutter-glx-1.0.so:${PORTSDIR}/graphics/clutter \
        libclutter-gst-2.0.so:${PORTSDIR}/multimedia/clutter-gst \
        libcinnamon-menu-3.so:${PORTSDIR}/x11/cinnamon-menus \
        libgjs.so:${PORTSDIR}/lang/gjs
RUN_DEPENDS=    ${LOCALBASE}/libdata/pkgconfig/dbus-python.pc:${PORTSDIR}/devel/py-dbus \
        cinnamon-settings-daemon>=0:${PORTSDIR}/sysutils/cinnamon-settings-daemon \
        ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss \
        py*-lxml>=0:${PORTSDIR}/devel/py-lxml

USES=       gettext gmake pathfix pkgconfig
USE_GNOME=  evolutiondataserver3 gconf2 gnomeprefix \
        gtk30 intlhack libgnomekbd
USE_XORG=   x11 xfixes sm
USE_PYTHON= yes
INSTALLS_ICONS= yes
USE_AUTOTOOLS=  libtool autoconf automake
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS+=--enable-compile-warnings=no
CFLAGS+=    -I${LOCALBASE}/include
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

OPTIONS_DEFINE= CUPS
OPTIONS_DEFAULT=CUPS

.include <bsd.port.options.mk>

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

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

pre-configure:
    cd ${WRKSRC} && NOCONFIGURE=yes ${SH} ./autogen.sh

post-install:
    @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/cinnamon-control-center-1/panels/lib*.so
    @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcinnamon-control-center.so.1

.include <bsd.port.mk>