1999-06-06 13:22:13 -04:00
|
|
|
# New ports collection makefile for: gphoto
|
|
|
|
# Date created: 26 May 1999
|
|
|
|
# Whom: Anders Nordby <anders@fix.no>
|
|
|
|
#
|
1999-08-25 02:16:32 -04:00
|
|
|
# $FreeBSD$
|
1999-06-06 13:22:13 -04:00
|
|
|
#
|
|
|
|
|
2002-03-07 19:37:10 -05:00
|
|
|
PORTNAME= gphoto2
|
|
|
|
PORTVERSION= 2.0
|
2002-05-13 22:31:03 -04:00
|
|
|
PORTREVISION= 4
|
1999-06-06 13:22:13 -04:00
|
|
|
CATEGORIES= graphics
|
2002-05-13 22:31:03 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
|
|
|
http://www.gphoto.net/dist/
|
|
|
|
MASTER_SITE_SUBDIR= gphoto
|
2001-12-24 05:37:45 -05:00
|
|
|
|
2000-04-17 15:13:00 -04:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
1999-06-06 13:22:13 -04:00
|
|
|
|
2002-05-13 22:31:03 -04:00
|
|
|
BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkgconfig
|
2002-04-12 13:10:20 -04:00
|
|
|
LIB_DEPENDS= intl.2:${PORTSDIR}/devel/gettext \
|
2002-03-07 19:37:10 -05:00
|
|
|
usb-0.1.5:${PORTSDIR}/devel/libusb \
|
|
|
|
aa.1:${PORTSDIR}/graphics/aalib \
|
2002-03-30 17:59:16 -05:00
|
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg \
|
|
|
|
exif.5:${PORTSDIR}/graphics/libexif
|
2002-03-07 19:37:10 -05:00
|
|
|
RUN_DEPENDS= pkg-config:${PORTSDIR}/devel/pkgconfig
|
1999-06-06 13:22:13 -04:00
|
|
|
|
2002-05-13 22:31:03 -04:00
|
|
|
USE_GLIB= yes
|
2002-03-07 19:37:10 -05:00
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2000-04-29 17:12:12 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2002-03-07 19:37:10 -05:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2002-05-13 22:31:03 -04:00
|
|
|
CONFIGURE_ARGS= --without-cdk --without-fig2dev
|
2000-12-02 11:09:43 -05:00
|
|
|
INSTALLS_SHLIB= yes
|
1999-06-06 13:22:13 -04:00
|
|
|
|
2002-03-07 19:37:10 -05:00
|
|
|
MAN1= gphoto2.1
|
1999-06-06 13:22:13 -04:00
|
|
|
|
2002-03-07 19:37:10 -05:00
|
|
|
INSTALL_CMD= /usr/bin/install -c -o ${BINOWN} -g ${BINGRP}
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
.for file in configure libgphoto2_port/configure
|
2002-03-18 06:50:38 -05:00
|
|
|
@${PERL} -pi -e 's|-g -Wall||g' ${WRKSRC}/${file}
|
2000-04-29 17:12:12 -04:00
|
|
|
.endfor
|
2002-03-30 17:59:16 -05:00
|
|
|
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${PERL} -pi -e \
|
2002-03-07 19:37:10 -05:00
|
|
|
's|\@INSTALL\@|${INSTALL_CMD}|g ; \
|
2002-05-13 22:31:03 -04:00
|
|
|
s| install-docDATA||g ; \
|
|
|
|
s| install-figureDATA||g ; \
|
|
|
|
s|`glib-config|`\$$\(GLIB_CONFIG\)|g ; \
|
|
|
|
s|\$$\(libdir\)/pkgconfig|\$$\(prefix\)/libdata/pkgconfig|g'
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for file in AUTHORS NEWS README doc/FAQ doc/gphoto2-cli.txt doc/gphoto2.txt
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
1999-06-06 13:22:13 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|