# New ports collection makefile for: gnomesword
# Date created:   April 27, 2007
# Whom:           Thomas Abthorpe <thomas@goodking.ca>
#
# $FreeBSD: ports/misc/gnomesword/Makefile,v 1.32 2007/10/24 23:36:07 marcus Exp $
#

PORTNAME=	gnomesword
PORTVERSION=	2.2.3
PORTREVISION=	2
CATEGORIES=	misc gnome
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	tabthorpe@FreeBSD.org
COMMENT=	A bible interface utilizing the sword framework

RUN_DEPENDS=	${LOCALBASE}/lib/gnome-spell/libgnome-spell-component-0.3.so:${PORTSDIR}/textproc/gnome-spell \
		${LOCALBASE}/lib/libsword.so:${PORTSDIR}/misc/sword
BUILD_DEPENDS=	${RUN_DEPENDS}

USE_GETTEXT=	yes
USE_X_PREFIX=	yes
INSTALLS_OMF=	yes
USE_GNOME=	gnomehack gnomeprefix gnometarget gal2 gtkhtml3 intlhack gnomedocutils
USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib"

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
.for file in AUTHORS ChangeLog INSTALL NEWS README TODO
	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>
