# $OpenBSD: Makefile,v 1.6 2006/08/03 20:04:51 espie Exp $

CATEGORIES=	math x11/kde
COMMENT=	'data viewing/plotting tool'

DISTNAME=	kst-1.2.1
PKGNAME=	$(DISTNAME)
SHARED_ONLY=	Yes
SHARED_LIBS=	kst		3.0 \
		kstapp		3.0 \
		kstguiapp	3.0 \
		kstmath		3.0 \
		kstwidgets	3.0 \
		kstextdate	3.0

MASTER_SITES=	${MASTER_SITE_KDE:=stable/apps/KDE3.x/scientific/}
HOMEPAGE=	http://kst.kde.org/

PERMIT_PACKAGE_CDROM=Yes
PERMIT_PACKAGE_FTP=Yes
PERMIT_DISTFILES_CDROM=Yes
PERMIT_DISTFILES_FTP=Yes

MODULES=		x11/kde
MODKDE_VERSION=		3.5.3
CONFIGURE_STYLE=	autoconf
AUTOCONF_VERSION=	2.59
CONFIGURE_ARGS=		${MODKDE_CONFIGURE_ARGS} \
			--disable-libsuffix \
			--disable-final
CONFIGURE_ENV=		${MODKDE_CONFIGURE_ENV}
CONFIG_GUESS_DIRS=	${MODKDE_CONFIG_GUESS_DIR}
MAKE_FLAGS=		${MODKDE_MAKE_FLAGS}
USE_LIBTOOL=		Yes
USE_GMAKE=		Yes
LIBTOOL_FLAGS =		--tag=disable-static

LIB_DEPENDS+=	kdecore.>=6,kwalletclient,DCOP,kutils,kparts,kdeui,kdesu,kmdi,kio,kdefx,kdeprint,khtml,kjs::x11/kde/libs3 \
		gsl.>=7,gslcblas:gsl->=1.6:devel/gsl \
		netcdf,netcdf_c++::math/netcdf \
		cfitsio::math/cfitsio

WANTLIB=	c m util stdc++ pthread z X11 ICE Xrender SM Xext \
		png jpeg art_lgpl_2 idn iconv pcre pcreposix \
		ncurses readline qui

.include <bsd.port.mk>
