ports/databases/php5-pdo_cassandra/Makefile
Gerald Pfeifer 04d6f52202 Bump PORTREVISIONs for ports depending on the canonical version of GCC and
lang/gcc which have moved from GCC 4.9.4 to GCC 5.4 (at least under some
circumstances such as versions of FreeBSD or platforms).

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using using Mk/bsd.octave.mk which in turn has USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c++11-lib, c++14-lang,
   c++11-lang, c++0x, c11, or gcc-c++11-lib.

PR:		216707
2017-04-01 15:23:30 +00:00

49 lines
1.3 KiB
Makefile

# Created by: Gasol Wu <gasol.wu@gmail.com>
# $FreeBSD$
PORTNAME= pdo_cassandra
PORTVERSION= 0.2.1
PORTREVISION= 9
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 php:ext pkgconfig
USE_CXXSTD= c++11
USE_PHP= pdo:build
IGNORE_WITH_PHP= 70 71
.include <bsd.port.pre.mk>
.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 <bsd.port.post.mk>