freebsd-ports/sysutils/xfce4-settings/Makefile
Alex Kozlov e159824929 - Convert USE_GETTEXT to USES (part 3)
Approved by:	portmgr (bapt)
2013-04-24 18:10:30 +00:00

95 lines
2.5 KiB
Makefile

# Created by: Oliver Lehmann <oliver@FreeBSD.org>
# $FreeBSD$
PORTNAME= xfce4-settings
PORTVERSION= 4.10.0
PORTREVISION= 5
CATEGORIES= sysutils xfce
MASTER_SITES= ${MASTER_SITE_XFCE}
DIST_SUBDIR= xfce4
MAINTAINER= xfce@FreeBSD.org
COMMENT= Xfce 4 settings application
LIB_DEPENDS= dbus-glib-1:${PORTSDIR}/devel/dbus-glib
USE_AUTOTOOLS= libtool
GNU_CONFIGURE= yes
INSTALLS_ICONS= yes
USE_BZIP2= yes
USE_GMAKE= yes
USE_GNOME= gnomehack glib20 gtk20 desktopfileutils intltool intlhack
USE_XFCE= configenv garcon libexo libmenu libutil xfconf
USE_XORG= inputproto x11 xi
USEs= pkgconfig
CONFIGURE_ARGS= --enable-pluggable-dialogs \
--enable-gio-unix
OPTIONS_DEFINE= XKLAVIER XCURSOR XRANDR NOTIFY NLS SOUND
OPTIONS_DEFAULT= XKLAVIER XCURSOR XRANDR NOTIFY NLS
SOUND_DESC= Enable sound control
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MXKLAVIER}
LIB_DEPENDS+= xklavier:${PORTSDIR}/x11/libxklavier
CONFIGURE_ARGS+=--enable-libxklavier
.else
CONFIGURE_ARGS+=--disable-libxklavier
.endif
.if ${PORT_OPTIONS:MXCURSOR}
USE_XORG+= xcursor
CONFIGURE_ARGS+=--enable-xcursor
.else
CONFIGURE_ARGS+=--disable-xcursor
.endif
.if ${PORT_OPTIONS:MXRANDR}
USE_XORG+= xrandr
CONFIGURE_ARGS+=--enable-xrandr
PLIST_SUB+= XRANDR=""
.else
CONFIGURE_ARGS+=--disable-xrandr
PLIST_SUB+= XRANDR="@comment "
.endif
.if ${PORT_OPTIONS:MNOTIFY}
LIB_DEPENDS+= notify:${PORTSDIR}/devel/libnotify
CONFIGURE_ARGS+=--enable-libnotify
.else
CONFIGURE_ARGS+=--disable-libnotify
.endif
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
CONFIGURE_ARGS+=--enable-nls
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.if ${PORT_OPTIONS:MSOUND}
LIB_DEPENDS+= canberra:${PORTSDIR}/audio/libcanberra
CONFIGURE_ARGS+=--enable-sound-settings
.else
CONFIGURE_ARGS+=--disable-sound-settings
.endif
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
@${REINPLACE_CMD} -e 's|IconThemeName" type="empty|IconThemeName" type="string" value="Tango|; \
s|"ThemeName" type="empty|"ThemeName" type="string" value="Xfce|' \
${WRKSRC}/xfsettingsd/xsettings.xml
@${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' \
${WRKSRC}/dialogs/keyboard-settings/xfce-keyboard-settings.c
post-install:
@-update-desktop-database
.include <bsd.port.mk>