freebsd-ports/graphics/libgphoto2/Makefile
Pav Lucistnik fc0bca12d6 - Update to 2.1.99
Even if this is a development release, authors prefer it over 2.1.6

PR:		ports/94429
Submitted by:	Pedro F. Giffuni <giffunip@asme.org>
2006-03-29 06:55:17 +00:00

66 lines
1.6 KiB
Makefile

# New ports collection makefile for: libgphoto2
# Date created: 26 May 1999
# Whom: Anders Nordby <anders@fix.no>
#
# $FreeBSD$
#
PORTNAME= libgphoto2
PORTVERSION= 2.1.99
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= gphoto
MAINTAINER= ports@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
USE_GETOPT_LONG= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
LIBTOOLFILES= configure libgphoto2_port/configure
#CONFIGURE_ENV+= LIBUSB_CFLAGS="${LIBUSB_CFLAGS}" LIBUSB_LIBS="${LIBUSB_LIBS}"
INSTALLS_SHLIB= yes
PLIST_SUB= VERSION="${PORTVERSION}"
MAN3= libgphoto2.3 libgphoto2_port.3
#LIBUSB_CFLAGS= -I${LOCALBASE}/include
#LIBUSB_LIBS= -L${LOCALBASE}/lib
.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 ||g' ${WRKSRC}/${file}
.endfor
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|po packaging doc|po doc|g ; \
s|: install-docDATA|:|g'
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 <bsd.port.mk>