2012-12-30 00:14:24 +01:00
|
|
|
# Created by: Anders Nordby <anders@fix.no>
|
1999-08-25 08:16:32 +02:00
|
|
|
# $FreeBSD$
|
1999-06-06 19:22:13 +02:00
|
|
|
|
2002-03-08 01:37:10 +01:00
|
|
|
PORTNAME= gphoto2
|
2012-08-24 11:07:08 +02:00
|
|
|
PORTVERSION= 2.4.14
|
1999-06-06 19:22:13 +02:00
|
|
|
CATEGORIES= graphics
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF/gphoto/gphoto/${PORTVERSION}
|
2001-12-24 11:37:45 +01:00
|
|
|
|
2006-06-19 23:13:03 +02:00
|
|
|
MAINTAINER= pav@FreeBSD.org
|
2003-02-20 19:08:19 +01:00
|
|
|
COMMENT= A command-line frontend to libgphoto2
|
1999-06-06 19:22:13 +02:00
|
|
|
|
2012-12-30 00:14:24 +01:00
|
|
|
LIB_DEPENDS= popt:${PORTSDIR}/devel/popt \
|
|
|
|
gphoto2:${PORTSDIR}/graphics/libgphoto2
|
1999-06-06 19:22:13 +02:00
|
|
|
|
2006-03-29 08:56:19 +02:00
|
|
|
USE_BZIP2= yes
|
2002-03-08 01:37:10 +01:00
|
|
|
USE_GMAKE= yes
|
2012-12-30 00:14:24 +01:00
|
|
|
USE_PKGCONFIG= build
|
2002-03-08 01:37:10 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2007-07-23 11:36:51 +02:00
|
|
|
CONFIGURE_ARGS= --without-cdk
|
2009-04-22 17:02:46 +02:00
|
|
|
MAKE_JOBS_SAFE= yes
|
1999-06-06 19:22:13 +02:00
|
|
|
|
2002-03-08 01:37:10 +01:00
|
|
|
MAN1= gphoto2.1
|
|
|
|
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
2004-12-20 09:47:41 +01:00
|
|
|
|
2012-12-30 00:14:24 +01:00
|
|
|
OPTIONS_DEFINE= AALIB DOCS NLS
|
|
|
|
OPTIONS_DEFAULT= AALIB
|
|
|
|
AALIB_DESC= Command line capture preview (aalib)
|
2009-09-07 11:03:55 +02:00
|
|
|
|
2012-12-30 00:14:24 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2009-09-07 11:03:55 +02:00
|
|
|
|
2012-12-30 00:14:24 +01:00
|
|
|
.if ${PORT_OPTIONS:MAALIB}
|
|
|
|
LIB_DEPENDS+= aa:${PORTSDIR}/graphics/aalib \
|
|
|
|
jpeg:${PORTSDIR}/graphics/jpeg
|
2009-09-07 11:03:55 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-aalib --without-jpeg
|
|
|
|
.endif
|
|
|
|
|
2012-12-30 00:14:24 +01:00
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2004-12-20 09:47:41 +01:00
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= NLS=""
|
2012-12-30 00:14:24 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
2004-12-20 09:47:41 +01:00
|
|
|
.endif
|
|
|
|
|
2002-03-08 01:37:10 +01:00
|
|
|
post-patch:
|
2003-10-28 23:16:05 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREADS_LIBS:S/"//g}|g ; \
|
2003-01-03 21:29:18 +01:00
|
|
|
s|-g -Wall||g' ${WRKSRC}/configure
|
2002-05-14 04:31:03 +02:00
|
|
|
|
|
|
|
post-install:
|
2012-12-30 00:14:24 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2008-06-04 09:45:55 +02:00
|
|
|
.for file in NEWS
|
2003-01-03 21:29:18 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
2002-05-14 04:31:03 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
1999-06-06 19:22:13 +02:00
|
|
|
|
2012-12-30 00:14:24 +01:00
|
|
|
.include <bsd.port.mk>
|