aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/exiv2/Makefile
blob: 20ca35e47d515bacbdc657d93e23e46087fb02a6 (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
# Created by: Michael Johnson <ahze@ahze.net>
# $FreeBSD$

PORTNAME=   exiv2
PORTVERSION=    0.24
PORTREVISION=   1
PORTEPOCH=  1
CATEGORIES= graphics
MASTER_SITES=   http://www.exiv2.org/

MAINTAINER= multimedia@FreeBSD.org
COMMENT=    Exif, IPTC, and XMP metadata manipulation library and tools

LICENSE=    GPLv2

LIB_DEPENDS=    libexpat.so:${PORTSDIR}/textproc/expat2

GNU_CONFIGURE=  yes
USES=       gettext gmake iconv libtool:keepla
USE_LDCONFIG=   yes

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

post-patch:
    @${REINPLACE_CMD} -e 's,LDFLAGS -no-undefined -lpsapi",& ;; \
        dragonfly* | freebsd*),' ${WRKSRC}/configure
    @${REINPLACE_CMD} -e \
        's,(libdir)/pkgconfig,(prefix)/libdata/pkgconfig,' \
            ${WRKSRC}/src/Makefile

post-install:
    @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/exiv2 \
        ${STAGEDIR}${PREFIX}/lib/libexiv2.so.13

.include <bsd.port.mk>