summaryrefslogtreecommitdiffstats
path: root/graphics/gphoto2/Makefile
blob: 334508703fc60ffe51e5290c793cf988d2b44f9b (plain)
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
41
# Created by: Anders Nordby <anders@fix.no>
# $FreeBSD$

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

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

LICENSE=	GPLv2

LIB_DEPENDS=	libpopt.so:${PORTSDIR}/devel/popt \
		libgphoto2.so:${PORTSDIR}/graphics/libgphoto2

USES=		gmake pkgconfig tar:bzip2
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	POPT_CFLAGS="$$(pkg-config --cflags popt)" \
		POPT_LIBS="$$(pkg-config --libs popt)" \
		ac_cv_lib_pthread_pthread_exit=no
CONFIGURE_ARGS=	--without-cdk

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

AALIB_DESC=		Text mode capture preview support
AALIB_LIB_DEPENDS=	libaa.so:${PORTSDIR}/graphics/aalib
AALIB_CONFIGURE_WITH=	aalib
NLS_USES=		gettext
NLS_CONFIGURE_ENABLE=	nls
NLS_CPPFLAGS=		-I${LOCALBASE}/include
NLS_LIBS=		-L${LOCALBASE}/lib -lintl
READLINE_USES=		readline
READLINE_CONFIGURE_WITH=	readline

post-install:
	(cd ${WRKSRC} && ${INSTALL_DATA} NEWS ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>
OpenPOWER on IntegriCloud