Prune sysutils/pcpustat
[dports.git] / sysutils / cinnamon-control-center / Makefile
1 # Created by: Gustau Perez i Querol <gustau.perez@gmail.com>
2 # $FreeBSD$
3
4 PORTNAME=       cinnamon-control-center
5 PORTVERSION=    2.4.2
6 PORTREVISION=   2
7 CATEGORIES=     sysutils gnome
8 MASTER_SITES=   https://raw.githubusercontent.com/${GH_ACCOUNT}/${GH_PROJECT}/9363a4a1e121344ae98f22b55fb28623cf0f6038/panels/datetime/data/:tzpng
9 DISTFILES=      ${DISTNAME}${EXTRACT_SUFX}
10 DIST_SUBDIR=    gnome3
11 EXTRACT_ONLY=   ${DISTNAME}${EXTRACT_SUFX}
12
13 MAINTAINER=     gnome@FreeBSD.org
14 COMMENT=        Control center for Cinnamon
15
16 BUILD_DEPENDS=  ca_root_nss>=0:${PORTSDIR}/security/ca_root_nss \
17                 cinnamon-settings-daemon>=0:${PORTSDIR}/sysutils/cinnamon-settings-daemon \
18                 gnome-autogen.sh:${PORTSDIR}/devel/gnome-common
19 LIB_DEPENDS=    libstartup-notification-1.so:${PORTSDIR}/x11/startup-notification \
20                 libupower-glib.so:${PORTSDIR}/sysutils/upower \
21                 libcaribou.so:${PORTSDIR}/accessibility/caribou \
22                 libgtop-2.0.so:${PORTSDIR}/devel/libgtop \
23                 libmuffin.so:${PORTSDIR}/x11-wm/muffin \
24                 libtelepathy-glib.so:${PORTSDIR}/net-im/telepathy-glib \
25                 libtelepathy-logger.so:${PORTSDIR}/net-im/telepathy-logger \
26                 libgnomekbdui.so:${PORTSDIR}/x11/libgnomekbd \
27                 libfolks.so:${PORTSDIR}/net-im/folks \
28                 libpulse.so:${PORTSDIR}/audio/pulseaudio \
29                 libcroco-0.6.so:${PORTSDIR}/textproc/libcroco \
30                 libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib \
31                 libclutter-glx-1.0.so:${PORTSDIR}/graphics/clutter \
32                 libclutter-gst-2.0.so:${PORTSDIR}/multimedia/clutter-gst \
33                 libcinnamon-menu-3.so:${PORTSDIR}/x11/cinnamon-menus \
34                 libgjs.so:${PORTSDIR}/lang/gjs
35 RUN_DEPENDS=    py*-dbus>=0:${PORTSDIR}/devel/py-dbus \
36                 cinnamon-settings-daemon>=0:${PORTSDIR}/sysutils/cinnamon-settings-daemon \
37                 ca_root_nss>=0:${PORTSDIR}/security/ca_root_nss \
38                 py*-lxml>=0:${PORTSDIR}/devel/py-lxml
39
40 USES=           autoreconf gettext gmake libtool pathfix \
41                 python:2 pkgconfig
42 USE_GNOME=      evolutiondataserver3 gconf2 gnomeprefix \
43                 gtk30 intlhack libgnomekbd
44 USE_GITHUB=     yes
45 GH_ACCOUNT=     linuxmint
46 USE_XORG=       x11 xfixes sm
47 INSTALLS_ICONS= yes
48 USE_LDCONFIG=   yes
49 GNU_CONFIGURE=  yes
50 CONFIGURE_ARGS+=--enable-compile-warnings=no
51 CFLAGS+=        -I${LOCALBASE}/include
52 CPPFLAGS+=      -I${LOCALBASE}/include
53 LDFLAGS+=       -L${LOCALBASE}/lib
54 INSTALL_TARGET= install-strip
55
56 OPTIONS_SUB=    yes
57 OPTIONS_DEFINE= CUPS
58 OPTIONS_DEFAULT=CUPS
59 CUPS_CONFIGURE_ENABLE=  cups
60 CUPS_LIB_DEPENDS=       libcups.so:${PORTSDIR}/print/cups-client
61
62 MISSING_PNG=timezone_8.5.png timezone_8.5_dim.png
63 .for i in ${MISSING_PNG}
64 DISTFILES+=${i}:tzpng
65 .endfor
66
67 post-extract:
68 .for i in ${MISSING_PNG}
69         ${CP} ${DISTDIR}/${DIST_SUBDIR}/${i} ${WRKSRC}/panels/datetime/data/.
70 .endfor
71
72 post-patch:
73         @${REINPLACE_CMD} -e 's|find|find ${WRKSRC}/files|g' \
74                 ${WRKSRC}/files/Makefile.in
75         @${REINPLACE_CMD} -e 's|/usr/share/|${PREFIX}/share/|g' \
76                 ${WRKSRC}/panels/common/cc-common-language.c
77
78 .include <bsd.port.mk>