# $OpenBSD: Makefile,v 1.29 2006/02/14 23:35:15 espie Exp $

COMMENT=		"office suite for KDE"

CATEGORIES=		x11 x11/kde productivity
VMEM_WARNING=		Yes
MASTER_SITES?=		${MASTER_SITE_KDE:S@$@stable/koffice-1.4.2/src/@}

DISTNAME=	koffice-1.4.2
PKGNAME=	${DISTNAME}p2
SHARED_LIBS=	karbonbase		3.0 \
		karboncommon		1.0 \
		kchartcommon		3.0 \
		kdchart			1.0 \
		kexicore		1.0 \
		kexidatatable		1.0 \
		kexidb			1.0 \
		kexidbparser		1.0 \
		kexiextendedwidgets	1.0 \
		kexiformutils		1.0 \
		kexiguiutils		1.0 \
		keximain		1.0 \
		keximigrate		1.0 \
		kexipropertyeditor	1.0 \
		kexirelationsview	1.0 \
		kexisql2		3.0 \
		kexisql3		4.0 \
		kformdesigner		1.0 \
		kformulalib		4.0 \
		kiviocommon		1.0 \
		kochart			2.0 \
		kofficecore		3.0 \
		kofficeui		3.0 \
		kopainter		2.0 \
		koscript		3.0 \
		kotext			3.0 \
		kowmf			2.0 \
		kritacommon		2.0 \
		kspreadcommon		1.0 \
		kstore			3.0 \
		kugarlib		2.0 \
		kwmailmerge_interface	5.0 \
		kwmf			3.0 \
		kwordexportfilters	2.0

FLAVORS=debug
FAKE_FLAGS=	${MAKE_FLAGS} TAR=tar DESTDIR=${WRKINST}

SEPARATE_BUILD=	flavored

MODKDE_VERSION=	3.4
AUTOCONF?=	/bin/sh ${WRKDIST}/admin/cvs.sh configure
AUTOCONF_VERSION=2.59

LIB_DEPENDS=	kdecore.4,DCOP,artskde,kdefx,kdeprint,kdesu,kdeui,khtml,kio,kparts,kspell,kabc,kjs,kresources,ktexteditor,kutils,kwalletclient,vcard,kspell2,knewstuff,kmdi::x11/kde/libs3 \
		python2.3.0.0:python-2.3.*:lang/python/2.3 \
		art_lgpl_2.5::graphics/libart \
		wv2::converters/wv2 \
		Magick::graphics/ImageMagick \
		jbig::graphics/jbigkit \
		mysqlclient::databases/mysql


WANTLIB=	ICE SM X11 Xext Xrender artsflow artsflow_idl audiofile bz2 c \
		esd freetype glib-2.0.0.0 gmodule-2.0.0.0 gobject-2.0.0.0 \
		gsf-1 gthread-2.0.0.0 iconv intl jasper jpeg kmedia2_idl lcms \
		m mad mcop ogg ossaudio pcre pcreposix png pthread qtmcop \
		soundserver_idl stdc++ tiff util vorbis vorbisenc vorbisfile \
		xml2 xslt z Xt termcap Xi fontconfig crypto readline ssl

CONFIGURE_ARGS+= --with-pgsqlincdir=${LOCALBASE}/include/postgresql
LIB_DEPENDS+=	pqxx::databases/libpqxx \
		pq::databases/postgresql

USE_LIBTOOL=Yes
LIBTOOL_FLAGS=--tag=disable-static
.include <bsd.port.mk>
