# $MidnightBSD$

PORTNAME=	xfce4-session
PORTVERSION=	4.12.1
PORTREVISION=	1
CATEGORIES=	x11-wm xfce
MASTER_SITES=	XFCE/src/xfce/${PORTNAME}/${PORTVERSION:R}
DIST_SUBDIR=	xfce4

MAINTAINER=	ports@MidnightBSD.org
COMMENT=	Session manager for the Xfce 4 desktop environment

LICENSE=	gpl2

BUILD_DEPENDS=	iceauth:${PORTSDIR}/x11/iceauth
RUN_DEPENDS=	iceauth:${PORTSDIR}/x11/iceauth \
		console-kit-daemon:${PORTSDIR}/sysutils/consolekit2
LIB_DEPENDS=	libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib \
		libupower-glib.so:${PORTSDIR}/sysutils/upower \
		libpolkit-gobject-1.so:${PORTSDIR}/sysutils/polkit

GNU_CONFIGURE=	yes
INSTALLS_ICONS=	yes
USE_GNOME=	gtk20 glib20 intltool intlhack libwnck
USES=		pathfix pkgconfig gmake libtool gettext-tools xfce tar:bzip2
USE_LDCONFIG=	yes
USE_XFCE=	libmenu
USE_XORG=	x11 sm ice

CONFIGURE_ARGS+=--enable-legacy-sm \
		--with-xsession-prefix=${PREFIX}
CONFIGURE_TARGET=	${ARCH}-portbld-freebsd10.4

SUB_FILES=	pkg-message

OPTIONS_DEFINE=	NLS
NLS_USES=	gettext-runtime
NLS_CONFIGURE_ENABLE=	nls
OPTIONS_SUB=	yes

PLIST_SUB=	VERSION="4.6"

.include <bsd.port.mk>
