2007-01-22 16:52:06 +00:00
|
|
|
# New ports collection makefile for: thunar
|
|
|
|
# Date created: 19.04.2006
|
|
|
|
# Whom: Oliver Lehmann <oliver@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= Thunar
|
2010-05-31 15:27:35 +00:00
|
|
|
PORTVERSION= 1.0.2
|
2007-01-22 16:52:06 +00:00
|
|
|
CATEGORIES= x11-fm xfce
|
2007-10-25 22:53:28 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_XFCE}
|
2007-01-22 16:52:06 +00:00
|
|
|
DIST_SUBDIR= xfce4
|
|
|
|
|
|
|
|
MAINTAINER= oliver@FreeBSD.org
|
|
|
|
COMMENT= XFce 4 file manager
|
|
|
|
|
2010-03-28 06:47:48 +00:00
|
|
|
LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png
|
2007-01-22 16:52:06 +00:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
INSTALLS_ICONS= yes
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_GNOME= desktopfileutils glib20 gnomehack gtk20 intltool intlhack pkgconfig
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_XFCE= configenv libexo libutil
|
|
|
|
|
2007-01-25 11:05:25 +00:00
|
|
|
OPTIONS= DBUS "Enable D-BUS support" on \
|
|
|
|
JPEG "Enable JPEG support" on \
|
2009-03-02 16:51:57 +00:00
|
|
|
FAM "Enable FAM support" on \
|
|
|
|
HAL "Enable HAL support" on \
|
2007-01-25 11:05:25 +00:00
|
|
|
GCONF "Enable GCONF support" off \
|
|
|
|
STARTUP "Enable startup notification support" on \
|
2009-03-02 16:51:57 +00:00
|
|
|
PLUG_APR "Thunar Advanced Properties plugin" on \
|
2007-01-25 11:05:25 +00:00
|
|
|
PLUG_APR_EXIF "Exif support for the APR plugin" off \
|
2009-03-02 16:51:57 +00:00
|
|
|
PLUG_SBR "Thunar Simple Builtin Renamers plugin" on \
|
2007-01-25 11:05:25 +00:00
|
|
|
PLUG_SBR_PCRE "Regular expression support for the SBR plugin" off \
|
2009-03-02 16:51:57 +00:00
|
|
|
PLUG_TPA "Thunar Trash Panel Applet plugin" on \
|
|
|
|
PLUG_UCA "Thunar User Customizable Actions plugin" on \
|
|
|
|
PLUG_WALL "Thunar Wallpaper plugin" on
|
2007-01-25 11:05:25 +00:00
|
|
|
|
2007-01-22 16:52:06 +00:00
|
|
|
|
|
|
|
MAN1= Thunar.1
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-02-09 19:04:44 +00:00
|
|
|
.if !defined(WITHOUT_DBUS)
|
2007-01-22 16:52:06 +00:00
|
|
|
LIB_DEPENDS+= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib
|
|
|
|
CONFIGURE_ARGS+=--enable-dbus
|
|
|
|
PLIST_SUB+= WITH_DBUS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-dbus
|
|
|
|
PLIST_SUB+= WITH_DBUS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2007-02-09 19:04:44 +00:00
|
|
|
.if !defined(WITHOUT_JPEG)
|
2010-02-05 11:46:55 +00:00
|
|
|
LIB_DEPENDS+= jpeg.11:${PORTSDIR}/graphics/jpeg
|
2007-01-22 16:52:06 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-jpeg
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-jpeg
|
|
|
|
.endif
|
|
|
|
|
2007-02-09 19:04:44 +00:00
|
|
|
.if !defined(WITHOUT_HAL)
|
2007-01-25 11:05:25 +00:00
|
|
|
LIB_DEPENDS+= hal.1:${PORTSDIR}/sysutils/hal
|
|
|
|
.endif
|
|
|
|
|
2007-01-22 16:52:06 +00:00
|
|
|
.if defined(WITH_FAM)
|
|
|
|
USE_FAM= yes
|
|
|
|
WANT_FAM_SYSTEM=gamin
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_GCONF)
|
|
|
|
USE_GNOME+= gconf2
|
|
|
|
CONFIGURE_ARGS+=--enable-gconf
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-gconf
|
|
|
|
.endif
|
|
|
|
|
2007-02-09 19:04:44 +00:00
|
|
|
.if !defined(WITHOUT_PLUG_APR)
|
2007-01-25 11:05:25 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-apr-plugin
|
|
|
|
PLIST_SUB+= PLUGIN_APR=""
|
|
|
|
.if defined(WITH_PLUG_APR_EXIF)
|
2007-05-27 15:25:47 +00:00
|
|
|
LIB_DEPENDS+= exif.12:${PORTSDIR}/graphics/libexif
|
2007-01-22 16:52:06 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-exif
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-exif
|
|
|
|
.endif
|
2007-01-25 11:05:25 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-apr-plugin --disable-exif
|
|
|
|
PLIST_SUB+= PLUGIN_APR="@comment "
|
|
|
|
.endif
|
2007-01-22 16:52:06 +00:00
|
|
|
|
2007-02-09 19:04:44 +00:00
|
|
|
.if !defined(WITHOUT_PLUG_SBR)
|
2007-01-25 11:05:25 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-sbr-plugin
|
|
|
|
PLIST_SUB+= PLUGIN_SBR=""
|
|
|
|
.if defined(WITH_PLUG_SBR_PCRE)
|
2007-01-22 16:52:06 +00:00
|
|
|
LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre
|
|
|
|
CONFIGURE_ARGS+=--enable-pcre
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-pcre
|
|
|
|
.endif
|
2007-01-25 11:05:25 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-sbr-plugin --disable-pcre
|
|
|
|
PLIST_SUB+= PLUGIN_SBR="@comment "
|
|
|
|
.endif
|
|
|
|
|
2007-02-09 19:04:44 +00:00
|
|
|
.if !defined(WITHOUT_PLUG_TPA)
|
2007-01-25 11:05:25 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-tpa-plugin
|
|
|
|
PLIST_SUB+= PLUGIN_TPA=""
|
|
|
|
USE_XFCE+= panel
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-tpa-plugin
|
|
|
|
PLIST_SUB+= PLUGIN_TPA="@comment "
|
|
|
|
.endif
|
|
|
|
|
2007-02-09 19:04:44 +00:00
|
|
|
.if !defined(WITHOUT_PLUG_UCA)
|
2007-01-25 11:05:25 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-uca-plugin
|
|
|
|
PLIST_SUB+= PLUGIN_UCA=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-uca-plugin
|
|
|
|
PLIST_SUB+= PLUGIN_UCA="@comment "
|
|
|
|
.endif
|
2007-01-22 16:52:06 +00:00
|
|
|
|
2009-03-02 16:51:57 +00:00
|
|
|
.if !defined(WITHOUT_PLUG_WALL)
|
|
|
|
CONFIGURE_ARGS+=--enable-wallpaper-plugin
|
|
|
|
PLIST_SUB+= PLUGIN_WALL=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-wallpaper-plugin
|
|
|
|
PLIST_SUB+= PLUGIN_WALL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2007-01-22 16:52:06 +00:00
|
|
|
.if !defined(WITHOUT_STARTUP)
|
|
|
|
LIB_DEPENDS+= startup-notification-1.0:${PORTSDIR}/x11/startup-notification
|
|
|
|
CONFIGURE_ARGS+=--enable-startup-notification
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-startup-notification
|
|
|
|
.endif
|
|
|
|
|
2010-05-31 15:27:35 +00:00
|
|
|
.if (${OSVERSION} < 701000)
|
|
|
|
CFLAGS+= -DHAVE_SYS_MOUNT_H
|
|
|
|
.endif
|
|
|
|
|
2007-01-22 16:52:06 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|docdir = .*|docdir = ${DOCSDIR}|' \
|
|
|
|
${WRKSRC}/docs/Makefile.in
|
2007-02-05 20:11:49 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|echo aout|echo elf|g' ${WRKSRC}/configure
|
2007-01-22 16:52:06 +00:00
|
|
|
.if !defined(WITH_FAM)
|
2007-02-25 12:08:50 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|gamin|no-gamin|g; s|fam|no-fam|g' ${WRKSRC}/configure
|
2007-01-22 16:52:06 +00:00
|
|
|
.endif
|
2007-01-25 11:05:25 +00:00
|
|
|
.if !defined(WITH_HAL)
|
|
|
|
@${REINPLACE_CMD} -e 's|hal-storage|no-hal-storage|g' ${WRKSRC}/configure
|
|
|
|
.endif
|
|
|
|
@${REINPLACE_CMD} -e 's|enable_val|enableval|g' ${WRKSRC}/configure
|
2007-01-22 16:52:06 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@-update-desktop-database
|
2007-01-25 11:05:25 +00:00
|
|
|
|
2007-01-22 16:52:06 +00:00
|
|
|
.include <bsd.port.post.mk>
|