# Created by: Anders Nordby <anders@fix.no>
# $FreeBSD: branches/RELENG_9_2_0/graphics/gphoto2/Makefile 322615 2013-07-10 05:21:51Z danfe $

PORTNAME=	gphoto2
PORTVERSION=	2.4.14
CATEGORIES=	graphics
MASTER_SITES=	SF/gphoto/gphoto/${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Command-line frontend to libgphoto2

LICENSE=	GPLv2

LIB_DEPENDS=	popt:${PORTSDIR}/devel/popt \
		gphoto2:${PORTSDIR}/graphics/libgphoto2

USES=		gmake pkgconfig
USE_BZIP2=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--without-cdk

MAN1=		${PORTNAME}.1

OPTIONS_DEFINE=	AALIB DOCS NLS
OPTIONS_DEFAULT=	AALIB
OPTIONS_SUB=	yes

AALIB_DESC=	Text mode capture preview support

AALIB_LIB_DEPENDS=	aa:${PORTSDIR}/graphics/aalib
AALIB_CONFIGURE_OFF=	--without-aalib

NLS_USES=	gettext
NLS_CONFIGURE_OFF=	--disable-nls

.include <bsd.port.options.mk>

post-install:
.if ${PORT_OPTIONS:MDOCS}
	${INSTALL_DATA} ${WRKSRC}/NEWS ${DOCSDIR}
.endif

.include <bsd.port.mk>
