summaryrefslogtreecommitdiff
path: root/x11-fm/thunar/Makefile
blob: 91174ba745f84493273a26b5963eda4072b772b7 (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
# Created by: Oliver Lehmann <oliver@FreeBSD.org>
# $FreeBSD$

PORTNAME=	Thunar
PORTVERSION=	1.6.10
PORTREVISION=	1
CATEGORIES=	x11-fm xfce
MASTER_SITES=	XFCE/src/xfce/${PORTNAME:tl}/${PORTVERSION:R}
DIST_SUBDIR=	xfce4

MAINTAINER=	xfce@FreeBSD.org
COMMENT=	Xfce file manager

LICENSE=	GPLv2 LGPL20
LICENSE_COMB=	multi
LICENSE_FILE=	${WRKSRC}/COPYING ${WRKSRC}/COPYING.LIB

LIB_DEPENDS=	libtumbler-1.so:${PORTSDIR}/deskutils/xfce4-tumbler \
	libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib
RUN_DEPENDS=	pkexec:${PORTSDIR}/sysutils/polkit

GNU_CONFIGURE=	yes
INSTALLS_ICONS=	yes
USE_GNOME=	gtk20 intltool intlhack gdkpixbuf2
USE_LDCONFIG=	yes
USE_XFCE=	libexo
USE_XORG=	sm x11
USES=		desktop-file-utils gmake pathfix perl5 libtool pkgconfig \
	gettext-tools xfce tar:bzip2
INSTALL_TARGET=	install-strip

OPTIONS_DEFINE=	NLS NOTIFY
OPTIONS_GROUP=	PLUGINS
OPTIONS_GROUP_PLUGINS=	PLUG_APR PLUG_SBR PLUG_TPA PLUG_UCA PLUG_WALL
OPTIONS_DEFAULT=	NOTIFY PLUG_APR PLUG_SBR PLUG_UCA PLUG_TPA PLUG_WALL

# Override NOTIFY_DESC
NOTIFY_DESC=	Display notifications
PLUG_APR_DESC=	Advanced Properties plugin
PLUG_SBR_DESC=	Simple Builtin Renamers plugin
PLUG_TPA_DESC=	Trash Panel Applet plugin
PLUG_UCA_DESC=	User Customizable Actions plugin
PLUG_WALL_DESC=	Wallpaper plugin

NLS_USES=	gettext-runtime
NLS_CONFIGURE_ENABLE=	nls
NOTIFY_LIB_DEPENDS=	libnotify.so:${PORTSDIR}/devel/libnotify
NOTIFY_CONFIGURE_ENABLE=	notifications
PLUG_APR_LIB_DEPENDS=	libexif.so:${PORTSDIR}/graphics/libexif
PLUG_APR_CONFIGURE_ENABLE=	apr-plugin exif
PLUG_SBR_LIB_DEPENDS=	libpcre.so:${PORTSDIR}/devel/pcre
PLUG_SBR_CONFIGURE_ENABLE=	sbr-plugin pcre
PLUG_TPA_USE=	gnome=gvfs xfce=panel
PLUG_TPA_CONFIGURE_ENABLE=	tpa-plugin
PLUG_UCA_CONFIGURE_ENABLE=	uca-plugin
PLUG_WALL_CONFIGURE_ENABLE=	wallpaper-plugin
OPTIONS_SUB=	yes

CONFIGURE_ARGS+=--enable-gio-unix \
		--disable-gudev \
		--enable-dbus

post-patch:
	${REINPLACE_CMD} -e 's|internet-mail|mail-send|' \
		${WRKSRC}/plugins/thunar-sendto-email/thunar-sendto-email.desktop.in.in
# Workaround for missing 'inode/directory' content-type icon.
# https://bugs.freedesktop.org/show_bug.cgi?id=89150
	${FIND} ${WRKSRC} -type f -name '*.c' \
		| ${XARGS} ${REINPLACE_CMD} -e 's|inode/directory|folder|'

.include <bsd.port.mk>