# Created by: Mike Krutov <neko@takino.org>
# $FreeBSD: branches/RELEASE_8_4_0/x11-toolkits/girara/Makefile 310726 2013-01-20 23:47:18Z madpilot $

PORTNAME=	girara
PORTVERSION=	0.1.5
CATEGORIES=	x11-toolkits graphics
MASTER_SITES=	http://pwmt.org/projects/girara/download/

MAINTAINER=	madpilot@FreeBSD.org
COMMENT=	GTK2 Interface Library for Zathura PDF Viewer

USE_GNOME=	glib20 gtk20
USE_GMAKE=	yes
USE_LDCONFIG=	yes

.include <bsd.port.options.mk>

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

LIBDIR=		${PREFIX}/lib

post-patch:	.SILENT
	${REINPLACE_CMD} -e 's|$${LIBDIR}/pkgconfig|${PREFIX}/libdata/pkgconfig|g'\
		${WRKSRC}/Makefile
.if ! ${PORT_OPTIONS:MNLS}
	${REINPLACE_CMD} -e '/-C po/d'\
		${WRKSRC}/Makefile
.endif

.include <bsd.port.mk>
