# New ports collection makefile for:    AbiWord
# Date created:         3 Mar 1999
# Whom:                 Donald Burr <dburr@FreeBSD.org>
#
# $FreeBSD: ports/editors/AbiWord/Makefile,v 1.17 2001/03/06 09:45:09 keith Exp $
#

# Note: this port cannot be built when the textproc/mswordview port is
# already installed, due to header file conflicts and the very broken
# AbiWord build system.

PORTNAME=	AbiWord
PORTVERSION=	0.7.13
CATEGORIES=	editors
MASTER_SITES=	http://www.abisource.com/downloads/Version-${PORTVERSION}/lf/
DISTNAME=	abi-${PORTVERSION}
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} expat-${PORTVERSION}.tar.gz \
		unixfonts-${PORTVERSION}.tar.gz wv-${PORTVERSION}.tar.gz \
		abidistfiles-${PORTVERSION}.tar.gz \
		psiconv-${PORTVERSION}.tar.gz libiconv-${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
#		iconv.2:${PORTSDIR}/converters/iconv
RUN_DEPENDS=	ispell:${PORTSDIR}/textproc/ispell

DIST_SUBDIR=	AbiWord

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

.include <bsd.port.pre.mk>

post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
