# Created by: Joey Mingrone <joey@mingrone.org>
# $FreeBSD: branches/RELEASE_8_4_0/deskutils/parcellite/Makefile 315616 2013-03-30 14:09:04Z miwi $

PORTNAME=	parcellite
PORTVERSION=	1.0.1
PORTREVISION=	1
PORTEPOCH=	1
CATEGORIES=	deskutils
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER=	jrm@ftfl.ca
COMMENT=	A lightweight GTK+ clipboard manager

GNU_CONFIGURE=	yes
USE_GMAKE=	yes
USE_GNOME=	gtk20

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT=	yes
PLIST_SUB+=	NLS=""
.else
CONFIGURE_ARGS+=	--disable-nls
PLIST_SUB+=	NLS="@comment "
.endif

MAN1=	parcellite.1

post-patch:
	@${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g'\
		${WRKSRC}/src/keybinder.h

.include <bsd.port.mk>
