# New ports collection makefile for:    AbiWord
# Date created:         3 Mar 1999
# Whom:                 Donald Burr <dburr@FreeBSD.org>
#
# $FreeBSD: ports/editors/AbiWord/Makefile,v 1.14 2000/10/05 06:36:08 reg Exp $
#

PORTNAME=	AbiWord
PORTVERSION=	0.7.10
CATEGORIES=	editors
MASTER_SITES=	http://download.abisource.com/releases/${PORTVERSION}/src/lf/
DISTNAME=	abi-${PORTVERSION}
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} expat-${PORTVERSION}.tar.gz \
		unixfonts-${PORTVERSION}.tar.gz wv-${PORTVERSION}.tar.gz \
		libiconv-${PORTVERSION}.tar.gz abidistfiles-${PORTVERSION}.tar.gz

MAINTAINER=	wolman@cs.washington.edu

# unzip is needed during the installation process
BUILD_DEPENDS=	unzip:${PORTSDIR}/archivers/unzip
LIB_DEPENDS=	png.4:${PORTSDIR}/graphics/png
RUN_DEPENDS=	ispell:${PORTSDIR}/textproc/ispell

DIST_SUBDIR=	AbiWord

WRKSRC=		${WRKDIR}/abi-${PORTVERSION}/src
USE_XLIB=	yes
USE_GMAKE=	yes
USE_GTK=	yes
MAKE_ENV=	prefix="${PREFIX}"

.include <bsd.port.pre.mk>

# start by deleting some junk files that should never have been placed
# in the tar file
pre-build:
	cd ${WRKSRC} && ${RM} -f ../user/wp/help/en-US/images/?line.jpg
	cd ${WRKSRC} && ${RM} -f ../user/wp/help/en-US/images/?space.jpg

do-configure:
	@(cd ${WRKDIR}/wv && ./configure)

.include <bsd.port.post.mk>
