# $MidnightBSD: mports/print/libotf/Makefile,v 1.1 2011/09/15 04:10:30 laffer1 Exp $
# $FreeBSD: ports/print/libotf/Makefile,v 1.22 2011/02/11 12:21:08 sylvio Exp $

PORTNAME=	libotf
PORTVERSION=	0.9.12
CATEGORIES=	print devel
MASTER_SITES=	http://www.m17n.org/libotf/ \
		http://anthesphoria.net/FreeBSD/ports/distfiles/

MAINTAINER=	nikola.lecic@anthesphoria.net
COMMENT=	Library for handling OpenType fonts
LICENSE=	lgpl2.1

LIB_DEPENDS=	freetype.9:${PORTSDIR}/print/freetype2

USE_XORG=	x11 xt xaw xmu
USE_GNOME=	pkgconfig
GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes
CONFIGURE_ENV+=	CPPFLAGS="-I${LOCALBASE}/include"

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

.include <bsd.port.mk>
