# New ports collection makefile for:	silgraphite
# Date created:				30 November 2008
# Whom:					Dennis Herrmann <adox@mcx2.org>
#
# $FreeBSD: ports/graphics/silgraphite/Makefile,v 1.1 2008/12/07 11:02:18 miwi Exp $
#

PORTNAME=	silgraphite
PORTVERSION=	2.3
CATEGORIES=	graphics devel
MASTER_SITES=	SF

MAINTAINER=	adox@mcx2.org
COMMENT=	Font engine for complex non-Roman writing systems

OPTIONS=	FREETYPE "Build with Freetype support" on

USE_GNOME=	pkgconfig
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS=	--without-xft --without-pangographite

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_FREETYPE)
LIB_DEPENDS+=	freetype.9:${PORTSDIR}/print/freetype2
USE_ICONV=	yes
CONFIGURE_ARGS+=	--with-freetype
PLIST_SUB+=	WITH_FREETYPE=""
.else
CONFIGURE_ARGS+=	--without-freetype
PLIST_SUB+=	WITH_FREETYPE="@comment "
.endif

.include <bsd.port.post.mk>
