# New ports collection Makefile for:	kdeedu
# Date created:				2008-01-31
# Whom:					Martin Wilke <miwi@FreeBSD.org>
#
# $FreeBSD$

PORTNAME=	kdeedu
PORTVERSION=	${KDE4_VERSION}
CATEGORIES=	misc kde
MASTER_SITES=	${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR=	unstable/${PORTVERSION}/src
DIST_SUBDIR=	KDE

MAINTAINER=	kde@FreeBSD.org
COMMENT=	Collection of entertaining, educational programs for KDE

BUILD_DEPENDS=	${LOCALBASE}/include/eigen/util.h:${PORTSDIR}/math/eigen \
		${LOCALBASE}/lib/ocaml/facile/facile.a:${PORTSDIR}/math/facile
LIB_DEPENDS=	usb-0.1:${PORTSDIR}/devel/libusb \
		boost_python:${PORTSDIR}/devel/boost-python \
		nova:${PORTSDIR}/astro/libnova \
		openbabel.3:${PORTSDIR}/science/openbabel \
		cfitsio.0:${PORTSDIR}/astro/cfitsio

USE_OCAML=	yes
USE_BZIP2=	yes
USE_CMAKE=	yes
USE_QT_VER=	4
USE_KDE4=	kdelibs
USE_KDE4_BUILD=	yes
#XXX: QT_COMPONENTS?
QT_COMPONENTS=	qmake gui moc rcc uic svg

post-extract:
	${MKDIR} ${WRKSRC}

post-configure:
	${REINPLACE_CMD} -e "s,-ldl,," ${WRKSRC}/kalzium/src/CMakeFiles/kalzium.dir/build.make
	${REINPLACE_CMD} -e 's,-ldl,,g' ${WRKSRC}/kalzium/src/CMakeFiles/kalzium.dir/link.txt

.include <bsd.port.mk>
