2009-03-02 17:31:59 +01:00
|
|
|
# New ports collection makefile for: xfce4-settings
|
|
|
|
# Date created: 2 October 2008
|
|
|
|
# Whom: Oliver Lehmann <oliver@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= xfce4-settings
|
2011-10-28 17:27:25 +02:00
|
|
|
PORTVERSION= 4.8.3
|
2009-03-02 17:31:59 +01:00
|
|
|
CATEGORIES= sysutils xfce
|
2010-05-31 17:27:35 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_XFCE}
|
2011-03-03 11:12:30 +01:00
|
|
|
MASTER_SITE_SUBDIR= src/xfce/${PORTNAME}/${PORTVERSION:R}
|
2009-03-02 17:31:59 +01:00
|
|
|
DIST_SUBDIR= xfce4
|
|
|
|
|
2011-10-23 13:56:51 +02:00
|
|
|
MAINTAINER= xfce@FreeBSD.org
|
2011-10-26 22:27:27 +02:00
|
|
|
COMMENT= Xfce 4 settings application
|
2009-03-02 17:31:59 +01:00
|
|
|
|
2011-03-03 11:12:30 +01:00
|
|
|
LIB_DEPENDS= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib
|
2009-03-02 17:31:59 +01:00
|
|
|
|
2010-05-31 17:27:35 +02:00
|
|
|
OPTIONS= XKLAVIER "Keyboard layout settings" off \
|
|
|
|
XCURSOR "Enable cursor themes support" on \
|
|
|
|
XRANDR "Enable Xrandr support" on \
|
|
|
|
NOTIFY "Enable notification support" on \
|
2011-10-28 17:27:25 +02:00
|
|
|
NLS "Enable Native Language Support" on \
|
|
|
|
SOUND "Enable sound control" off
|
2009-12-02 17:32:36 +01:00
|
|
|
|
2011-06-07 10:50:16 +02:00
|
|
|
CONFIGURE_ENV+= ac_cv_prog_AWK="${AWK}"
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
2009-03-02 17:31:59 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
INSTALLS_ICONS= yes
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GMAKE= yes
|
2011-03-03 11:12:30 +01:00
|
|
|
USE_GNOME= gnomehack glib20 gtk20 desktopfileutils intltool intlhack \
|
|
|
|
pkgconfig
|
|
|
|
USE_XFCE= configenv libexo libmenu libutil xfconf
|
2011-06-07 10:50:16 +02:00
|
|
|
USE_XORG= inputproto x11 xi
|
2009-03-02 17:31:59 +01:00
|
|
|
|
2009-12-02 17:32:36 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_XKLAVIER)
|
|
|
|
LIB_DEPENDS+= xklavier.12:${PORTSDIR}/x11/libxklavier
|
|
|
|
CONFIGURE_ARGS+=--enable-libxklavier
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-libxklavier
|
|
|
|
.endif
|
|
|
|
|
2010-05-31 17:27:35 +02:00
|
|
|
.if defined(WITH_XCURSOR)
|
|
|
|
USE_XORG+= xcursor
|
|
|
|
CONFIGURE_ARGS+=--enable-xcursor
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-xcursor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_XRANDR)
|
|
|
|
USE_XORG+= xrandr
|
|
|
|
CONFIGURE_ARGS+=--enable-xrandr
|
|
|
|
PLIST_SUB+= XRANDR=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-xrandr
|
|
|
|
PLIST_SUB+= XRANDR="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_NOTIFY)
|
2011-08-23 20:39:19 +02:00
|
|
|
LIB_DEPENDS+= notify.4:${PORTSDIR}/devel/libnotify
|
2010-05-31 17:27:35 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-libnotify
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-libnotify
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_NLS)
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
CONFIGURE_ARGS+=--enable-nls
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2011-10-28 17:27:25 +02:00
|
|
|
.if defined(WITH_SOUND)
|
|
|
|
LIB_DEPENDS+= canberra.0:${PORTSDIR}/audio/libcanberra
|
|
|
|
CONFIGURE_ARGS+=--enable-sound-settings
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-sound-settings
|
|
|
|
.endif
|
|
|
|
|
2009-03-02 17:31:59 +01:00
|
|
|
post-patch:
|
|
|
|
# until xfce4-icon-theme is back we rely on Tango
|
|
|
|
@${REINPLACE_CMD} -e 's|Rodent|Tango|g' \
|
|
|
|
${WRKSRC}/dialogs/appearance-settings/main.c \
|
|
|
|
${WRKSRC}/xfsettingsd/xsettings.xml
|
2010-05-17 17:53:14 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|xkl_config_registry_load (settings->priv->xkl_registry)|xkl_config_registry_load (settings->priv->xkl_registry, FALSE)|g; \
|
|
|
|
s|xkl_engine_stop_listen (settings->priv->xkl_engine)|xkl_engine_stop_listen (settings->priv->xkl_engine, FALSE)|g' \
|
2009-12-02 17:32:36 +01:00
|
|
|
${WRKSRC}/dialogs/keyboard-settings/xfce-keyboard-settings.c
|
|
|
|
|
2010-05-31 17:27:35 +02:00
|
|
|
post-install:
|
|
|
|
@-update-desktop-database
|
|
|
|
|
2009-12-02 17:32:36 +01:00
|
|
|
.include <bsd.port.post.mk>
|