freebsd-ports/graphics/gphoto2/Makefile
Ade Lovett f18cbf2fa6 gettext upgrade uber-patch (stage 3)
- switch devel/gettext (0.11.1) on, installing full package
- flip devel/gettext-old (0.10.35) to installing only static binaries
  with a "-old" suffix -- gettext-old will have its deorbit burn
  sequence initiated just after 4.6-RELEASE
- fix up ports for the new world order

Reviewed by:	portmgr
2002-04-12 17:10:20 +00:00

44 lines
1.1 KiB
Makefile

# New ports collection makefile for: gphoto
# Date created: 26 May 1999
# Whom: Anders Nordby <anders@fix.no>
#
# $FreeBSD$
#
PORTNAME= gphoto2
PORTVERSION= 2.0
PORTREVISION= 3
CATEGORIES= graphics
MASTER_SITES= http://www.gphoto.net/dist/
MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= intl.2:${PORTSDIR}/devel/gettext \
usb-0.1.5:${PORTSDIR}/devel/libusb \
aa.1:${PORTSDIR}/graphics/aalib \
jpeg.9:${PORTSDIR}/graphics/jpeg \
exif.5:${PORTSDIR}/graphics/libexif
BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkgconfig
RUN_DEPENDS= pkg-config:${PORTSDIR}/devel/pkgconfig
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --without-cdk --without-fig2dev \
--with-doc-dir=${DOCSDIR}
INSTALLS_SHLIB= yes
MAN1= gphoto2.1
INSTALL_CMD= /usr/bin/install -c -o ${BINOWN} -g ${BINGRP}
post-patch:
.for file in configure libgphoto2_port/configure
@${PERL} -pi -e 's|-g -Wall||g' ${WRKSRC}/${file}
.endfor
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${PERL} -pi -e \
's|\@INSTALL\@|${INSTALL_CMD}|g ; \
s|AUTHORS COPYING README|AUTHORS README|g'
.include <bsd.port.mk>