# New ports collection makefile for: libgphoto2 # Date created: 26 May 1999 # Whom: Anders Nordby # # $FreeBSD$ # PORTNAME= libgphoto2 PORTVERSION= 2.3.1 CATEGORIES= graphics MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= gphoto MAINTAINER= pav@FreeBSD.org COMMENT= A universal digital camera picture control tool LIB_DEPENDS= usb:${PORTSDIR}/devel/libusb \ exif:${PORTSDIR}/graphics/libexif USE_BZIP2= yes USE_GNOME= gnometarget pkgconfig ltverhack USE_GETOPT_LONG= yes USE_GMAKE= yes USE_AUTOTOOLS= libtool:15 CONFIGURE_ARGS= --mandir=${PREFIX}/man LIBTOOLFILES= configure libgphoto2_port/configure USE_LDCONFIG= yes PLIST_SUB= VERSION="${PORTVERSION}" VERSION_PORT=0.7.1 MAN3= libgphoto2.3 libgphoto2_port.3 .if defined(WITHOUT_NLS) CONFIGURE_ARGS+= --disable-nls PLIST_SUB+= NLS="@comment " .else USE_GETTEXT= yes PLIST_SUB+= NLS="" .endif post-patch: .for file in configure libgphoto2_port/configure @${REINPLACE_CMD} -e \ 's|{libdir}/pkgconfig|{prefix}/libdata/pkgconfig|g ; \ s|-g -O2||g' ${WRKSRC}/${file} .endfor @${REINPLACE_CMD} -e 's|linux-hotplug ||' ${WRKSRC}/packaging/Makefile.in @${REINPLACE_CMD} -e 's|$$(CPPFLAGS) $$(AM_CPPFLAGS)|$$(AM_CPPFLAGS) $$(CPPFLAGS)|' \ ${WRKSRC}/camlibs/directory/Makefile.in ${WRKSRC}/camlibs/sierra/Makefile.in post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} .for file in AUTHORS NEWS README ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} .endfor @${MKDIR} ${PREFIX}/share/doc/libgphoto2_port .for file in AUTHORS NEWS README ${INSTALL_DATA} ${WRKSRC}/libgphoto2_port/${file} \ ${PREFIX}/share/doc/libgphoto2_port .endfor .endif .include