# -*-mode: makefile-*-
# Created by: slavek.banko@axis.cz
# $FreeBSD$
#

.include <../../trinity.port.mk>

PORTNAME=		kbookreader-trinity
COMMENT=		eBook reader for Trinity
TDE_PREVERSION=		
MASTER_SITE_SUBDIR=	k/${PORTNAME}
PORTREVISION=		0
CATEGORIES=		x11
DIST_SUBDIR=		TDE/applications


BUILD_DEPENDS+=	${TDE_PREFIX}/lib/libtdecore.so:${PORTSDIR}/x11/trinity/tdelibs

LIB_DEPENDS+=	libtqt.so:${PORTSDIR}/x11/trinity/dependencies/tqtinterface

# 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>