aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/gphoto2/Makefile
blob: 4ee53c54e42e68d5bb7516d2234c930ae5a609c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# New ports collection makefile for:    gphoto
# Date created:     26 May 1999
# Whom:         Anders Nordby <anders@fix.no>
#
# $FreeBSD$
#

PORTNAME=   gphoto2
PORTVERSION=    2.0
CATEGORIES= graphics
MASTER_SITES=   http://www.gphoto.net/dist/

MAINTAINER= ports@FreeBSD.org

LIB_DEPENDS=    giconv.2:${PORTSDIR}/converters/libiconv \
        intl.1:${PORTSDIR}/devel/gettext \
        usb-0.1.5:${PORTSDIR}/devel/libusb \
        aa.1:${PORTSDIR}/graphics/aalib \
        jpeg.9:${PORTSDIR}/graphics/jpeg
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-exif --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|<iconv.h>|<giconv.h>|g ; \
         s|-liconv|-lgiconv|g ; \
         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>