aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/libexif/Makefile
blob: 3429077fac5a5e71c1c62e4c3f95468debc2f479 (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
# New ports collection makefile for:    libexif
# Date created:        Tue Feb 26 19:02:44 MST 2002
# Whom:                Peter Schmiedeskamp
#
# $FreeBSD$
#

PORTNAME=   libexif
PORTVERSION=    0.5.6
CATEGORIES= graphics
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= pschmied@qwest.net
COMMENT=    Library to read digital camera file meta-data 

BUILD_DEPENDS=  pkg-config:${PORTSDIR}/devel/pkgconfig
LIB_DEPENDS=    intl.4:${PORTSDIR}/devel/gettext
RUN_DEPENDS=    pkg-config:${PORTSDIR}/devel/pkgconfig

USE_BZIP2=  yes
USE_REINPLACE=  yes
USE_LIBTOOL=    yes
CONFIGURE_TARGET=   --build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib -lintl"
INSTALLS_SHLIB= yes

post-patch:
    @${REINPLACE_CMD} -e 's|-g -Wall||g' ${WRKSRC}/configure
    @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
        's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g'

.include <bsd.port.mk>