# Created by: gahr
# $FreeBSD: tags/RELEASE_11_0_0/databases/cassandra-cpp-driver/Makefile 417867 2016-07-01 08:54:34Z gahr $

PORTNAME=	cassandra-cpp-driver
PORTVERSION=	2.4.2
CATEGORIES=	databases

MAINTAINER=	gahr@FreeBSD.org
COMMENT=	DataStax C/C++ Driver for Apache Cassandra

LICENSE=	APACHE20

LIB_DEPENDS=	libuv.so:devel/libuv

BROKEN_powerpc64=	Does not build

USE_GITHUB=	nodefault
GH_ACCOUNT=	datastax
GH_PROJECT=	cpp-driver

USES=		cmake:outsource pkgconfig pathfix
CMAKE_ARGS=	-DCMAKE_INSTALL_LIBDIR:STRING=lib \
		-DCASS_BUILD_STATIC:BOOL=ON

USE_LDCONFIG=	yes
USE_OPENSSL=	yes

PLIST_FILES=	include/cassandra.h \
		lib/libcassandra.so \
		lib/libcassandra.so.2 \
		lib/libcassandra.so.${PORTVERSION} \
		lib/libcassandra_static.a \
		libdata/pkgconfig/cassandra.pc \
		libdata/pkgconfig/cassandra_static.pc

.include <bsd.port.mk>
