# Created by: Janos Mohacsi <janos.mohacsi@bsd.hu>
# $FreeBSD: graphics/gpicview/Makefile 327733 2013-09-20 18:35:44Z bapt $

PORTNAME=	gpicview
PORTVERSION=	0.2.3
CATEGORIES=	graphics
MASTER_SITES=	SF/lxde/GPicView%20%28image%20Viewer%29/GpicView%20${PORTVERSION}/

MAINTAINER=	jmohacsi@bsd.hu
COMMENT=	Simple and Fast Image Viewer for X

LICENSE=	GPLv2

USES=		desktop-file-utils gmake pkgconfig
USE_GNOME=	gtk20
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	CPPFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib"

PORTDOCS=	AUTHORS

OPTIONS_DEFINE=	DOCS NLS
OPTIONS_SUB=	yes

NLS_USES=	gettext

NO_STAGE=	yes
.include <bsd.port.options.mk>

post-patch:
.if ! ${PORT_OPTIONS:MNLS}
	@${REINPLACE_CMD} -e 's|src po|src|' \
		${WRKSRC}/Makefile.in
.endif

post-install:
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif

.include <bsd.port.mk>
