aboutsummaryrefslogtreecommitdiff
path: root/sysutils/mate-control-center/Makefile
blob: 44de56a04b4c85d471aeb5e2cb3439b81f9fc969 (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
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD$

PORTNAME=	mate-control-center
PORTVERSION=	1.6.1
PORTREVISION=	3
CATEGORIES=	sysutils mate
MASTER_SITES=	MATE
DIST_SUBDIR=	mate

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	Control center for MATE project

LIB_DEPENDS=	libcanberra-gtk.so:${PORTSDIR}/audio/libcanberra \
		libdbus-1.so:${PORTSDIR}/devel/dbus \
		libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib \
		libunique-1.0.so:${PORTSDIR}/x11-toolkits/unique \
		libxklavier.so:${PORTSDIR}/x11/libxklavier \
		libpolkit-gobject-1.so:${PORTSDIR}/sysutils/polkit

PORTSCOUT=	limitw:1,even

USES=		desktop-file-utils gettext gmake pathfix pkgconfig \
		shared-mime-info tar:xz
USE_MATE=	desktop docutils libmatekbd marco menus settingsdaemon
USE_XORG=	x11 xcursor xext xxf86misc xft xi xrandr xscrnsaver
USE_GNOME=	dconf glib20 gnomehier gtk20 intlhack libxml2 librsvg2 \
		ltverhack pango
INSTALLS_OMF=	yes
USE_LDCONFIG=	yes
USE_AUTOTOOLS=	libtool
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--enable-appindicator=no
INSTALLS_ICONS=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

GLIB_SCHEMAS=	org.mate.control-center.gschema.xml \
		org.mate.control-center.keybinding.gschema.xml

FIX_FILES=	capplets/accessibility/at-properties \
		capplets/display \
		capplets/keyboard capplets/windows

post-patch:
	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
	    	${WRKSRC}/capplets/common/mate-theme-info.c
	@${REINPLACE_CMD} -e 's|/usr/sbin|${PREFIX}/sbin|g' \
		${WRKSRC}/capplets/display/org.mate.randr.policy.in
.for dir in ${FIX_FILES}
	@${REINPLACE_CMD} -e 's|Desktop_in_files = |Desktop_in_files = mate-|g' \
		${WRKSRC}/${dir}/Makefile.in
.endfor
	@${MV} ${WRKSRC}/capplets/accessibility/at-properties/at-properties.desktop.in.in \
		${WRKSRC}/capplets/accessibility/at-properties/mate-at-properties.desktop.in.in
	@${MV} ${WRKSRC}/capplets/display/display-properties.desktop.in.in \
		${WRKSRC}/capplets/display/mate-display-properties.desktop.in.in
	@${MV} ${WRKSRC}/capplets/keyboard/keyboard.desktop.in.in \
		${WRKSRC}/capplets/keyboard/mate-keyboard.desktop.in.in
	@${MV} ${WRKSRC}/capplets/windows/window-properties.desktop.in.in \
		${WRKSRC}/capplets/windows/mate-window-properties.desktop.in.in

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmate-window-settings.so.1
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/window-manager-settings/libmarco.so
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libslab.so.0

.include <bsd.port.mk>