diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2013-11-15 17:55:27 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2013-11-15 17:55:27 +0000 |
commit | df0499802aa8c55c8a3d6c536a74dd5d8132cc28 (patch) | |
tree | b82661543a7408d02d911eeebc128db1617ccf93 /databases/php5-pdo_cassandra/files | |
parent | - Support STAGEDIR (diff) |
- Fix build with thrift-0.9.1
- Add LICENSE
- Support STAGEDIR
- Use single space after WWW:
PR: ports/183982
Submitted by: Gasol Wu <gasol.wu@gmail.com> (maintainer)
Notes
Notes:
svn path=/head/; revision=333899
Diffstat (limited to 'databases/php5-pdo_cassandra/files')
-rw-r--r-- | databases/php5-pdo_cassandra/files/patch-config.m4 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/databases/php5-pdo_cassandra/files/patch-config.m4 b/databases/php5-pdo_cassandra/files/patch-config.m4 new file mode 100644 index 000000000000..0e2fb8f3ef4a --- /dev/null +++ b/databases/php5-pdo_cassandra/files/patch-config.m4 @@ -0,0 +1,22 @@ +--- ./config.m4.orig 2011-12-30 17:41:22.000000000 +0800 ++++ ./config.m4 2013-11-14 21:46:12.000000000 +0800 +@@ -38,8 +38,18 @@ + PHP_THRIFT_VERSION=`${PKG_CONFIG} thrift --modversion` + + AC_MSG_RESULT([found version ${PHP_THRIFT_VERSION}]) ++ ac_IFS=$IFS ++ IFS="." ++ set $PHP_THRIFT_VERSION ++ IFS=$ac_IFS ++ dnl workaround for changes of THRIFT-1968 ++ THRIFT_VERSION=`expr [$]1 \* 10000 + [$]2 \* 100 + [$]3` ++ if test "$THRIFT_VERSION" -ge "901"; then ++ PHP_THRIFT_INCS="-I`${PKG_CONFIG} thrift --variable=includedir`/thrift" ++ else ++ PHP_THRIFT_INCS=`${PKG_CONFIG} thrift --cflags` ++ fi + PHP_THRIFT_LIBS=`${PKG_CONFIG} thrift --libs` +- PHP_THRIFT_INCS=`${PKG_CONFIG} thrift --cflags` + + PHP_EVAL_LIBLINE(${PHP_THRIFT_LIBS}, PDO_CASSANDRA_SHARED_LIBADD) + PHP_EVAL_INCLINE(${PHP_THRIFT_INCS}) |