# $OpenBSD: Makefile,v 1.6 2004/11/21 22:53:59 espie Exp $

COMMENT=	"library providing routines to access Microsoft Word/Excel files"

DISTNAME=	wv2-0.2.1
CATEGORIES=	converters
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=wvware/}
EXTRACT_SUFX=	.tar.bz2

HOMEPAGE=	http://wvware.sourceforge.net/

MAINTAINER=	Brad Smith <brad@openbsd.org>

# GPL
PERMIT_PACKAGE_CDROM=	Yes
PERMIT_PACKAGE_FTP=	Yes
PERMIT_DISTFILES_CDROM=	Yes
PERMIT_DISTFILES_FTP=	Yes
WANTLIB=		gobject-2.0.0.0 m z

MODULES=	devel/gettext

BUILD_DEPENDS+=	:pkgconfig-*:devel/pkgconfig
LIB_DEPENDS+=	glib-2.0.0.0,glib-2.0.0.0::devel/glib2 \
		xml2::textproc/libxml \
		gsf-1::devel/libgsf,no_gnome

USE_GMAKE= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
CONFIGURE_ARGS+= --disable-debug \
		 --enable-static \
		 --with-libiconv="${LOCALBASE}"

NO_REGRESS=	Yes

.include <bsd.port.mk>
