Changes: http://www.boost.org/users/history/version_1_63_0.html PR: 215598 Exp-run by: antoine Approved by: office (bapt) MFH: 2017Q1
49 lines
1.3 KiB
Makefile
49 lines
1.3 KiB
Makefile
# Created by: Gasol Wu <gasol.wu@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pdo_cassandra
|
|
PORTVERSION= 0.2.1
|
|
PORTREVISION= 8
|
|
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
|
|
|
|
.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>
|