aboutsummaryrefslogtreecommitdiff
path: root/graphics/gphoto2/Makefile
blob: 3e80e2bf03d3e138b247ca815c320aaad7c77d8b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
PORTNAME=	gphoto2
PORTVERSION=	2.5.26
CATEGORIES=	graphics
MASTER_SITES=	SF/gphoto/gphoto/${PORTVERSION}

MAINTAINER=	danfe@FreeBSD.org
COMMENT=	Command-line frontend to libgphoto2
WWW=		http://www.gphoto.org/proj/gphoto2/

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libexif.so:graphics/libexif \
		libgphoto2.so:graphics/libgphoto2 \
		libpopt.so:devel/popt

USES=		gmake jpeg pkgconfig tar:bzip2

GNU_CONFIGURE=	yes
CONFIGURE_ENV=	POPT_CFLAGS="$$(pkg-config --cflags popt)" \
		POPT_LIBS="$$(pkg-config --libs popt)"
CONFIGURE_ARGS=	--without-cdk

OPTIONS_DEFINE=		AALIB DOCS NLS READLINE THREADS
OPTIONS_DEFAULT=	AALIB READLINE THREADS
OPTIONS_SUB=		yes

AALIB_DESC=		Text mode capture preview support
AALIB_LIB_DEPENDS=	libaa.so:graphics/aalib
AALIB_CONFIGURE_WITH=	aalib
NLS_USES=		gettext
NLS_CONFIGURE_ENABLE=	nls
READLINE_USES=		readline
READLINE_CONFIGURE_WITH=	readline
THREADS_CONFIGURE_ENV_OFF=	ac_cv_lib_pthread_pthread_exit=no

post-install-DOCS-on:
	${INSTALL_DATA} ${WRKSRC}/NEWS ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>