# New ports collection makefile for:	katoob
# Date created:				13th September 2003
# Whom:					Pav Lucistnik <pav@oook.cz>
#
# $FreeBSD: ports/arabic/katoob/Makefile,v 1.20 2007/10/24 23:34:42 marcus Exp $
#

PORTNAME=	katoob
PORTVERSION=	0.3.5
PORTREVISION=	10
CATEGORIES=	arabic
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	arabeyes

MAINTAINER=	sbahra@gwu.edu
COMMENT=	Light-weight, bidirectional editor for arabic texts

MAN1=		katoob.1

USE_GMAKE=	yes
USE_XLIB=	yes
USE_GNOME=	gnomeprefix gnomehack gtk20
WANT_GNOME=	yes
USE_AUTOTOOLS=	libtool:15
USE_GETOPT_LONG=yes
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 700042
BROKEN=		Broken with gcc 4.2
.endif

.if ${HAVE_GNOME:Mgtksourceview}!="" || defined(WITH_HIGHLIGHTING)
CONFIGURE_ARGS+=	"--enable-highlight"
USE_GNOME+=		gtksourceview
.endif

.if defined(WITH_SPELLCHECKER) || exists(${LOCALBASE}/lib/libaspell.so.16)
CONFIGURE_ARGS+=	"--enable-spell"
LIB_DEPENDS+=		aspell.16:${PORTSDIR}/textproc/aspell
.endif

.include <bsd.port.post.mk>
