# New ports collection makefile for:	exempi
# Date created:		2008-02-26
# Whom:			Michael Johnson <ahze@FreeBSD.org>
#
# $FreeBSD: ports/textproc/exempi/Makefile,v 1.12 2011/09/23 22:25:41 amdmi3 Exp $
#   $MCom: ports/textproc/exempi/Makefile,v 1.1 2008/02/26 18:50:26 ahze Exp $
#

PORTNAME=	exempi
PORTVERSION=	2.1.1
CATEGORIES=	textproc
MASTER_SITES=	http://libopenraw.freedesktop.org/download/

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	A port of Adobe XMP SDK to work on UNIX

LIB_DEPENDS=	expat.6:${PORTSDIR}/textproc/expat2

USE_AUTOTOOLS=	libtool
USE_GNOME=	ltverhack gnomehack
CONFIGURE_ARGS=	--enable-unittest=no
CONFIGURE_ENV=	LIBS="-liconv"
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
USE_ICONV=	yes
USE_LDCONFIG=	yes

post-patch:
	@${REINPLACE_CMD} -e 's|$${libdir}/pkgconfig|${PREFIX}/libdata/pkgconfig|' \
		${WRKSRC}/configure

.include <bsd.port.mk>
