PORTNAME=	wv2
PORTVERSION=	0.4.2
PORTREVISION=	11
CATEGORIES=	textproc
MASTER_SITES=	SF/wvware/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Library providing routines to access Microsoft Word files
WWW=		https://wvware.sourceforge.net/

LICENSE=	LGPL20
LICENSE_FILE=	${WRKSRC}/COPYING.LIB

DEPRECATED=	No consumers in Ports, does not build with CMake 4
EXPIRATION_DATE=2026-12-31

USES=		cmake gnome iconv libtool pkgconfig tar:bzip2
USE_CXXSTD=	c++14
USE_GNOME=	libgsf
USE_LDCONFIG=	yes

GNU_CONFIGURE=	yes

post-patch:
	@${REINPLACE_CMD} -e 's|glib/giochannel.h|glib.h|g' \
		${WRKSRC}/src/olestream.h

.include <bsd.port.mk>
