# Created by: Joey Mingrone <joey@mingrone.org>
# $FreeBSD: tags/RELEASE_10_2_0/deskutils/parcellite/Makefile 358053 2014-06-16 21:03:57Z nemysis $

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

MAINTAINER=	koalative@gmail.com
COMMENT=	Lightweight GTK+ clipboard manager

LICENSE=	GPLv3

BUILD_DEPENDS=	p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser

USES=		gmake pkgconfig
GNU_CONFIGURE=	yes
USE_GNOME=	gtk20

PORTDOCS=	AUTHORS ChangeLog README

OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB=	yes

NLS_CONFIGURE_ENABLE=	nls
NLS_USES=	gettext

SUB_FILES=	pkg-message

.include <bsd.port.options.mk>

post-patch:
	@${REINPLACE_CMD} -e 's|"/proc/|"/compat/linux/proc/|; \
		s|"/proc"|"/compat/linux/proc"|' \
		${WRKSRC}/src/utils.c
.if ${PORT_OPTIONS:MNLS}
	@${REINPLACE_CMD} -e 's|$$(DATADIRNAME)/locale|share/locale|' \
		${WRKSRC}/po/Makefile.in.in
.endif

post-install:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>
