# New ports collection makefile for:	screenshooter plugin for xfce4
# Date created:				29 April 2006
# Whom:					Martin Wilke (miwi@FreeBSD.org)
#
# $FreeBSD: ports/x11/xfce4-screenshooter-plugin/Makefile,v 1.30 2011/10/26 20:27:23 rene Exp $
#

PORTNAME=	xfce4-screenshooter-plugin
PORTVERSION=	1.8.0
CATEGORIES=	x11 xfce
MASTER_SITES=	${MASTER_SITE_XFCE}
MASTER_SITE_SUBDIR=/src/apps/xfce4-screenshooter/${PORTVERSION:R}
DIST_SUBDIR=	xfce4
DISTNAME=	xfce4-screenshooter-${PORTVERSION}

MAINTAINER=	xfce@FreeBSD.org
COMMENT=	Desktop Screenshot plugin for Xfce

LIB_DEPENDS=	soup-2.4.1:${PORTSDIR}/devel/libsoup

OPTIONS=	NLS "Enable Native Language Support" on

USE_BZIP2=	yes
GNU_CONFIGURE=	yes
USE_GMAKE=	yes
INSTALLS_ICONS=	yes
USE_GNOME=	glib20 gtk20 intltool intlhack pkgconfig
USE_XFCE=	configenv panel libutil libgui
MAN1=		xfce4-screenshooter.1

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_NLS)
USE_GETTEXT=	yes
PLIST_SUB+=	NLS=""
.else
CONFIGURE_ARGS+=	--disable-nls
PLIST_SUB+=	NLS="@comment "
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|%%PORTNAME%%|${PORTNAME}|g' ${WRKSRC}/Makefile.in

.include <bsd.port.post.mk>
