aboutsummaryrefslogtreecommitdiff
path: root/sysutils/xfce4-settings/Makefile
blob: 7e53317e4a14778cc07a0d5bd08d77a3d84106de (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
# Created by: Oliver Lehmann <oliver@FreeBSD.org>
# $FreeBSD$

PORTNAME=	xfce4-settings
PORTVERSION=	4.14.3
PORTREVISION=	1
CATEGORIES=	sysutils xfce
MASTER_SITES=	XFCE
DIST_SUBDIR=	xfce4

MAINTAINER=	xfce@FreeBSD.org
COMMENT=	Xfce 4 settings application

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libcolord.so:graphics/colord \
		libfontconfig.so:x11-fonts/fontconfig \
		libxklavier.so:x11/libxklavier

USES=		compiler:c11 gettext-tools gmake gnome libtool pkgconfig \
		tar:bzip2 xfce xorg
USE_GNOME=	cairo glib20 gtk30 intltool
USE_XFCE=	garcon libexo xfconf
USE_XORG=	xorgproto x11 xcursor xi xrandr

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--enable-pluggable-dialogs
INSTALLS_ICONS=	yes

PORTSCOUT=	limitw:1,even

OPTIONS_DEFINE=		NOTIFY NLS UPOWER LIBINPUT
OPTIONS_DEFAULT=	NOTIFY
OPTIONS_SUB=		yes
OPTIONS_DEFAULT_FreeBSD_12=	LIBINPUT
OPTIONS_DEFAULT_FreeBSD_13=	LIBINPUT
OPTIONS_DEFAULT+=	${OPTIONS_DEFAULT_${OPSYS}_${OSREL:R}}

UPOWER_DESC=		Power management tasks
LIBINPUT_DESC=		Libinput support

NLS_CONFIGURE_ENABLE=		nls
NLS_USES=			gettext-runtime

NOTIFY_CONFIGURE_ENABLE=	libnotify
NOTIFY_LIB_DEPENDS=		libnotify.so:devel/libnotify

UPOWER_CONFIGURE_ENABLE=	upower-glib
UPOWER_LIB_DEPENDS=		libupower-glib.so:sysutils/upower

LIBINPUT_BUILD_DEPENDS=	${LOCALBASE}/include/xorg/libinput-properties.h:x11-drivers/xf86-input-libinput
LIBINPUT_CONFIGURE_ENABLE=	xorg-libinput

.if defined(WITH_DEBUG)
CONFIGURE_ARGS+=	--enable-debug=yes
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|Rodent|Adwaita|g' \
		${WRKSRC}/dialogs/appearance-settings/main.c
	@${REINPLACE_CMD} -e 's|IconThemeName" type="empty|IconThemeName" type="string" value="Adwaita|' \
		${WRKSRC}/xfsettingsd/xsettings.xml

.include <bsd.port.mk>