# Created by: Pav Lucistnik <pav@FreeBSD.org>
# $FreeBSD: branches/RELEASE_8_4_0/graphics/exif/Makefile 314141 2013-03-14 08:17:39Z pclin $

PORTNAME=	exif
PORTVERSION=	0.6.20
PORTREVISION=	1
CATEGORIES=	graphics
MASTER_SITES=	SF/lib${PORTNAME}/${PORTNAME}/${PORTVERSION}

MAINTAINER=	pav@FreeBSD.org
COMMENT=	Command line utility to read and manipulate EXIF data

LIB_DEPENDS=	exif.12:${PORTSDIR}/graphics/libexif \
		popt.0:${PORTSDIR}/devel/popt

USE_GMAKE=	yes
USE_PKGCONFIG=	yes
GNU_CONFIGURE=	yes
MAKE_JOBS_SAFE=	yes
CONFIGURE_ENV+=		POPT_CFLAGS=-I${LOCALBASE}/include POPT_LIBS="-L${LOCALBASE}/lib -lpopt"

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

MAN1=		exif.1

.include <bsd.port.mk>
