# Created by: arved
# $FreeBSD: tags/RELEASE_11_0_0/textproc/soprano/Makefile 412349 2016-04-01 14:25:16Z mat $

PORTNAME=	soprano
PORTVERSION=	2.9.4
PORTREVISION=	1
CATEGORIES=	textproc
MASTER_SITES=	SF/${PORTNAME}/Soprano/${PORTVERSION}

MAINTAINER=	kde@FreeBSD.org
COMMENT=	Qt/C++ RDF framework

LIB_DEPENDS=	libraptor2.so:textproc/raptor2 \
		librdf.so:textproc/redland \
		libiodbc.so:databases/libiodbc

USE_QT4=	corelib dbus network qtestlib_build xml \
		qmake_build moc_build uic_build rcc_build
USES=		cmake:outsource pkgconfig tar:bzip2
CMAKE_ARGS+=	-DSOPRANO_DISABLE_CLUCENE_INDEX=yes \
		-DSOPRANO_DISABLE_SESAME2_BACKEND=yes
USE_LDCONFIG=	yes

post-patch:
	@${REINPLACE_CMD} -e 's,$${LIB_SUFFIX}/pkgconfig,data/pkgconfig,' \
		${WRKSRC}/CMakeLists.txt
	@${REINPLACE_CMD} -e 's,soprano/cmake,cmake/Modules,' \
		${WRKSRC}/cmake/modules/CMakeLists.txt

.include <bsd.port.mk>
