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

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

PORTNAME=		dbus-1-tqt
COMMENT=		D-Bus bindings for the Trinity Qt interface
TDE_PREVERSION=		~pre7+bb5a36fe
MASTER_SITE_SUBDIR=	d/${PORTNAME}
DISTSRC=		${PORTNAME}-trinity-${TDE_VERSION}${TDE_PREVERSION}
PORTREVISION=		0
CATEGORIES=		net
DIST_SUBDIR=		TDE/dependencies
PREFIX=			${LOCALBASE}


BUILD_DEPENDS+=	tmoc:${PORTSDIR}/x11/trinity/dependencies/tqtinterface

LIB_DEPENDS+=	libtqt.so:${PORTSDIR}/x11/trinity/dependencies/tqtinterface \
		libdbus-1.so:${PORTSDIR}/devel/dbus \

# Build
post-patch: tde-pathfix

do-configure: tde-cmake-prepare
	${TDE_CMAKE_CONFIGURE} \
		-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
		-DPKGCONFIG_INSTALL_DIR="${PREFIX}/libdata/pkgconfig"

do-build: tde-cmake-build

do-install: tde-cmake-install

.include <bsd.port.mk>