freebsd-ports/databases/php5-pdo_cassandra/Makefile
Mathieu Arnold aef5a66670 Don't use extension.ini any more, and have each extension install in its
file, so the order remains the same.

Every PHP (or Zend) extension now installs its own .ini file in
/usr/local/etc/php.  A PHP extension will be automatically activated
when installed.  The order into which extensions are loaded is
automatically guessed.  In some very rare cases, the guess will be
wrong, and PHP_MOD_PRIO will need to be set.  Refer to the USES=php
section of the Porter's Handbook for more information.

Convert ports touching etc/php/extensions.ini manually, or telling the
OP to do it.

And finally, bump PORTREVISION for all php extensions.

PR:		210697
Submitted by:	mat
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D7022
2016-08-03 12:47:05 +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= 6
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>