# $FreeBSD: branches/RELEASE_8_4_0/print/libmspub/Makefile 314640 2013-03-19 13:04:30Z eadler $

PORTNAME=	libmspub
PORTVERSION=	0.0.5
CATEGORIES=	print graphics devel
MASTER_SITES=	http://dev-www.libreoffice.org/src/

MAINTAINER=	office@FreeBSD.org
COMMENT=	Library and tools for parsing Microsoft Publisher file format

LICENSE=	LGPL21 MPL GPLv2
LICENSE_COMB=	dual

BUILD_DEPENDS=	${LOCALBASE}/include/boost/ptr_container/ptr_map.hpp:${PORTSDIR}/devel/boost-libs
LIB_DEPENDS=	icui18n:${PORTSDIR}/devel/icu \
		wpg-0.2:${PORTSDIR}/graphics/libwpg \
		wpd-0.9:${PORTSDIR}/textproc/libwpd

GNU_CONFIGURE=	yes
USES=	pathfix
USE_LDCONFIG=	yes
USE_PKGCONFIG=	build
USE_XZ=		yes

CONFIGURE_ARGS=	--disable-werror --without-docs
CONFIGURE_ENV=	ZLIB_CFLAGS="-I/usr/include" ZLIB_LIBS="-lz"
CPPFLAGS+=	-I${LOCALBASE}/include

.include <bsd.port.mk>
