# New ports collection Makefile for:	decibel
# Date created:				2008-02-10
# Whom:					arved
#
# $FreeBSD: ports/net-im/decibel/Makefile,v 1.9 2009/03/24 19:13:24 makc Exp $

PORTNAME=	decibel
PORTVERSION=	0.5.0
PORTREVISION=	6
CATEGORIES=	net-im
MASTER_SITES=	http://decibel.kde.org/fileadmin/downloads/decibel/releases/

MAINTAINER=	kde@FreeBSD.org
COMMENT=	Realtime communications framework

LIB_DEPENDS=	QtTapioca.0:${PORTSDIR}/net-im/tapioca-qt

USE_QT_VER=	4
QT_COMPONENTS=	corelib qmake xml dbus moc_build uic_build rcc_build qtestlib
USE_LDCONFIG=	yes
USE_CMAKE=	yes

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}/build
CMAKE_SOURCE_PATH=	.. 

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

post-patch:
	${REINPLACE_CMD} -e \
		"s,$${LIB_INSTALL_DIR}/pkgconfig,data/pkgconfig,g"\
		${WRKSRC}/../src/client/Decibel/CMakeLists.txt

.include <bsd.port.mk>
