# $OpenBSD: Makefile,v 1.26 2011/11/04 09:05:54 jasper Exp $

COMMENT=	library functions to access Microsoft Word/Excel files

DISTNAME=	wv2-0.2.3
REVISION=	6
SHARED_LIBS +=	wv2                  3.0      # .1.8
CATEGORIES=	converters
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=wvware/}
EXTRACT_SUFX=	.tar.bz2

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

# GPL
PERMIT_PACKAGE_CDROM=	Yes
PERMIT_PACKAGE_FTP=	Yes
PERMIT_DISTFILES_CDROM=	Yes
PERMIT_DISTFILES_FTP=	Yes

WANTLIB += gobject-2.0 gio-2.0 gmodule-2.0 pcre m z
WANTLIB += glib-2.0 xml2 gsf-1 bz2 ffi gthread-2.0 stdc++

MODULES=	devel/gettext

LIB_DEPENDS+=	devel/glib2 \
		textproc/libxml \
		devel/libgsf \
		archivers/bzip2

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

.include <bsd.port.mk>
