1 |
# $MidnightBSD$ |
2 |
|
3 |
PORTNAME= Thunar |
4 |
PORTVERSION= 1.6.10 |
5 |
CATEGORIES= x11-fm xfce |
6 |
MASTER_SITES= XFCE/src/xfce/${PORTNAME:tl}/${PORTVERSION:R} |
7 |
DIST_SUBDIR= xfce4 |
8 |
|
9 |
MAINTAINER= ports@MidnightBSD.org |
10 |
COMMENT= XFce file manager |
11 |
|
12 |
LICENSE= gpl2 lgpl |
13 |
LICENSE_COMB= multi |
14 |
LICENSE_FILE= ${WRKSRC}/COPYING ${WRKSRC}/COPYING.LIB |
15 |
|
16 |
LIB_DEPENDS= libtumbler-1.so:${PORTSDIR}/deskutils/xfce4-tumbler \ |
17 |
libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib |
18 |
RUN_DEPENDS= pkexec:${PORTSDIR}/sysutils/polkit |
19 |
|
20 |
GNU_CONFIGURE= yes |
21 |
INSTALLS_ICONS= yes |
22 |
USE_GNOME= gtk20 intltool intlhack gdkpixbuf2 |
23 |
USE_LDCONFIG= yes |
24 |
USE_XFCE= libexo |
25 |
USE_XORG= sm x11 |
26 |
USES= desktop-file-utils gmake pathfix perl5 libtool pkgconfig \ |
27 |
gettext-tools xfce tar:bzip2 |
28 |
INSTALL_TARGET= install-strip |
29 |
|
30 |
OPTIONS_DEFINE= NLS NOTIFY |
31 |
OPTIONS_GROUP= PLUGINS |
32 |
OPTIONS_GROUP_PLUGINS= PLUG_APR PLUG_SBR PLUG_TPA PLUG_UCA PLUG_WALL |
33 |
OPTIONS_DEFAULT= NOTIFY PLUG_APR PLUG_SBR PLUG_UCA PLUG_TPA PLUG_WALL |
34 |
|
35 |
# Override NOTIFY_DESC |
36 |
NOTIFY_DESC= Display notifications |
37 |
PLUG_APR_DESC= Advanced Properties plugin |
38 |
PLUG_SBR_DESC= Simple Builtin Renamers plugin |
39 |
PLUG_TPA_DESC= Trash Panel Applet plugin |
40 |
PLUG_UCA_DESC= User Customizable Actions plugin |
41 |
PLUG_WALL_DESC= Wallpaper plugin |
42 |
|
43 |
NLS_USES= gettext-runtime |
44 |
NLS_CONFIGURE_ENABLE= nls |
45 |
NOTIFY_LIB_DEPENDS= libnotify.so:${PORTSDIR}/devel/libnotify |
46 |
NOTIFY_CONFIGURE_ENABLE= notifications |
47 |
PLUG_APR_LIB_DEPENDS= libexif.so:${PORTSDIR}/graphics/libexif |
48 |
PLUG_APR_CONFIGURE_ENABLE= apr-plugin exif |
49 |
PLUG_SBR_LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre |
50 |
PLUG_SBR_CONFIGURE_ENABLE= sbr-plugin pcre |
51 |
PLUG_TPA_USE= gnome=gvfs xfce=panel |
52 |
PLUG_TPA_CONFIGURE_ENABLE= tpa-plugin |
53 |
PLUG_UCA_CONFIGURE_ENABLE= uca-plugin |
54 |
PLUG_WALL_CONFIGURE_ENABLE= wallpaper-plugin |
55 |
OPTIONS_SUB= yes |
56 |
|
57 |
CONFIGURE_ARGS+=--enable-gio-unix \ |
58 |
--disable-gudev \ |
59 |
--enable-dbus |
60 |
|
61 |
post-patch: |
62 |
${REINPLACE_CMD} -e 's|internet-mail|mail-send|' \ |
63 |
${WRKSRC}/plugins/thunar-sendto-email/thunar-sendto-email.desktop.in.in |
64 |
# Workaround for missing 'inode/directory' content-type icon. |
65 |
# https://bugs.freedesktop.org/show_bug.cgi?id=89150 |
66 |
${FIND} ${WRKSRC} -type f -name '*.c' \ |
67 |
| ${XARGS} ${REINPLACE_CMD} -e 's|inode/directory|folder|' |
68 |
|
69 |
.include <bsd.port.mk> |