# -*-mode: makefile-*-
# Created by: slavek.banko@axis.cz
# $FreeBSD$
#
# TDE port map: applications/utilities/qalculate-tde

PORTSDIR?=/usr/ports
.include <${PORTSDIR}/Mk/bsd.trinity.mk>

PORTNAME=		qalculate-trinity
COMMENT=		Powerful and easy to use desktop calculator - TDE version
TDE_PREVERSION=		
DISTSRC=		qalculate-tde-trinity-${TDE_VERSION}${TDE_PREVERSION}
MASTER_SITE_SUBDIR=	q/${PORTNAME}
PORTREVISION=		0
CATEGORIES=		math x11
DIST_SUBDIR=		TDE/applications/utilities


BUILD_DEPENDS+=	${TDE_PREFIX}/lib/libtdecore.so:x11/tdelibs-trinity \
		${LOCALBASE}/share/cmake/Modules/TDEMacros.cmake:devel/tde-cmake \

LIB_DEPENDS+=	libtqt.so:x11-toolkits/libtqtinterface

LIB_DEPENDS+=	libqalculate.so:math/libqalculate


# Build
post-patch: tde-pathfix

do-configure: tde-cmake-prepare
	${TDE_CMAKE_CONFIGURE} \
	-DBUILD_ALL="ON" \
	-DWITH_ALL_OPTIONS="ON"

do-build: tde-cmake-build

do-install: tde-cmake-install

.include <bsd.port.mk>