# Created by: Gasol Wu # $FreeBSD$ PORTNAME= pdo_cassandra PORTVERSION= 0.2.1 PORTREVISION= 5 CATEGORIES= databases PKGNAMEPREFIX= php5- MAINTAINER= gasol.wu@gmail.com COMMENT= PDO driver for Apache Cassandra LICENSE= APACHE20 BROKEN_powerpc64= Does not build LIB_DEPENDS= libboost_iostreams.so:devel/boost-libs USE_GITHUB= yes GH_ACCOUNT= mkoppanen GH_PROJECT= php-${PORTNAME} GH_TAGNAME= 7debd5b USES= compiler:c++11-lib pkgconfig USE_CXXSTD= c++11 USE_PHP_BUILD= yes USE_PHP= pdo USE_PHPEXT= yes IGNORE_WITH_PHP= 70 .include .include "${PORTSDIR}/devel/thrift/bsd.thrift.mk" THRIFT_MAJOR_VER= ${THRIFT_PORTVERSION:R:R} THRIFT_MINOR_VER= ${THRIFT_PORTVERSION:R:E} THRIFT_PATCH_VER= ${THRIFT_PORTVERSION:E} .if ${THRIFT_MAJOR_VER} >= 0 || ${THRIFT_MINOR_VER} >= 9 || ${THRIFT_PATCH_VER} >= 1 LIB_DEPENDS+= libthrift.so:devel/thrift-cpp BUILD_DEPENDS+= ${LOCALBASE}/bin/thrift:devel/thrift .else LIB_DEPENDS+= libthrift.so:devel/thrift .endif post-configure: ${REINPLACE_CMD} 's/\([^:]\)apache::thrift/\1 ::apache::thrift/g' ${WRKSRC}/gen-cpp/Cassandra.cpp ${REINPLACE_CMD} 's/\([^:]\)apache::thrift/\1 ::apache::thrift/g' ${WRKSRC}/gen-cpp/Cassandra.h ${REINPLACE_CMD} 's/\([^:]\)apache::thrift/\1 ::apache::thrift/g' ${WRKSRC}/gen-cpp/cassandra_types.cpp .include