2013-03-14 09:17:39 +01:00
|
|
|
# Created by: Anders Nordby <anders@fix.no>
|
2003-01-03 21:27:22 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= libgphoto2
|
2017-06-01 18:05:18 +02:00
|
|
|
PORTVERSION= 2.5.13
|
2003-01-03 21:27:22 +01:00
|
|
|
CATEGORIES= graphics
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF/gphoto/libgphoto/${PORTVERSION}
|
2003-01-03 21:27:22 +01:00
|
|
|
|
2016-05-09 22:46:48 +02:00
|
|
|
MAINTAINER= woodsb02@FreeBSD.org
|
2013-07-10 03:19:12 +02:00
|
|
|
COMMENT= Universal digital camera control library
|
2003-01-03 21:27:22 +01:00
|
|
|
|
2013-07-10 03:57:14 +02:00
|
|
|
LICENSE= LGPL21
|
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
LIB_DEPENDS= libltdl.so:devel/libltdl
|
2014-09-17 09:38:15 +02:00
|
|
|
|
2014-09-05 18:36:28 +02:00
|
|
|
USES= gmake iconv libtool pkgconfig tar:bzip2
|
|
|
|
USE_CSTD= gnu89
|
2014-05-03 09:34:48 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2013-07-10 03:19:12 +02:00
|
|
|
CONFIGURE_ENV= LTDLINCL="-I${LOCALBASE}/include" \
|
2014-01-17 17:55:22 +01:00
|
|
|
LIBLTDL="-L${LOCALBASE}/lib -lltdl" \
|
|
|
|
PATH="${PATH:C,${HOME}/bin,,}" \
|
|
|
|
ac_cv_path_DOT=false \
|
|
|
|
ac_cv_path_DOXYGEN=false \
|
|
|
|
udevscriptdir=${WRKDIR}
|
2014-05-20 04:53:31 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
2014-01-17 17:55:22 +01:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2013-07-10 03:19:12 +02:00
|
|
|
|
2015-01-23 10:34:36 +01:00
|
|
|
PLIST_SUB= VERSION="${PORTVERSION}" VERSION_PORT=0.12.0
|
2014-01-17 17:55:22 +01:00
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS GD JPEG LIBEXIF NLS XML
|
|
|
|
OPTIONS_DEFAULT= GD JPEG LIBEXIF XML
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
GD_LIB_DEPENDS= libgd.so:graphics/gd
|
2015-12-22 06:18:04 +01:00
|
|
|
GD_CONFIGURE_OFF= --with-gdlib=no
|
2015-06-22 20:33:20 +02:00
|
|
|
JPEG_USES= jpeg
|
2014-01-17 17:55:22 +01:00
|
|
|
JPEG_CONFIGURE_WITH= jpeg
|
2016-04-01 16:00:51 +02:00
|
|
|
LIBEXIF_LIB_DEPENDS= libexif.so:graphics/libexif
|
2014-01-17 17:55:22 +01:00
|
|
|
LIBEXIF_CONFIGURE_OFF= --with-libexif=no
|
|
|
|
NLS_USES= gettext
|
|
|
|
NLS_CONFIGURE_ENABLE= nls
|
|
|
|
XML_USE= GNOME=libxml2
|
2015-12-22 06:18:04 +01:00
|
|
|
XML_CONFIGURE_OFF= --with-libxml-2.0=no
|
2003-01-03 21:27:22 +01:00
|
|
|
|
|
|
|
post-patch:
|
2014-01-17 17:55:22 +01:00
|
|
|
.for i in configure libgphoto2_port/configure
|
2003-01-03 21:27:22 +01:00
|
|
|
@${REINPLACE_CMD} -e \
|
2015-07-28 22:12:45 +02:00
|
|
|
'/FLAGS/s|-g|| ; \
|
|
|
|
/grep -i linux/s|; fi ; then|; else false; fi ; then| ; \
|
|
|
|
/pkgconfig/s|$${libdir}|$${prefix}/libdata|' \
|
2014-01-17 17:55:22 +01:00
|
|
|
${WRKSRC}/${i}
|
2003-01-03 21:27:22 +01:00
|
|
|
.endfor
|
2013-07-10 03:19:12 +02:00
|
|
|
@${REINPLACE_CMD} -e \
|
2014-01-17 17:55:22 +01:00
|
|
|
'/^doc_DATA/s|COPYING||' \
|
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
'/^SUBDIRS/s|linux-hotplug||' \
|
|
|
|
${WRKSRC}/packaging/Makefile.in
|
2003-01-03 21:27:22 +01:00
|
|
|
|
2014-02-05 22:22:12 +01:00
|
|
|
.include <bsd.port.mk>
|