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

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

PORTNAME=		tdevelop-trinity
COMMENT=		Trinity IDE for Unix/X11
TDE_PREVERSION=		
MASTER_SITE_SUBDIR=	t/${PORTNAME}
PORTREVISION=		0
CATEGORIES=		x11 misc
DIST_SUBDIR=		TDE


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

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

LIB_DEPENDS+=\
		libaprutil-1.so:${PORTSDIR}/devel/apr1 \
		libsvn_client-1.so:${PORTSDIR}/devel/subversion \

# Build
post-patch: tde-pathfix

do-configure: tde-cmake-prepare
	${TDE_CMAKE_CONFIGURE} \
	\
	-DBUILD_ALL="ON" \
	-DWITH_BUILDTOOL_ALL="ON" \
	-DWITH_LANGUAGE_ALL="ON" \
	-DWITH_VCS_ALL="ON" \
	-DQTDIR="${LOCALBASE}/share/tqt3"

do-build: tde-cmake-build

do-install: tde-cmake-install

.include <bsd.port.mk>