Lines 3-9
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= pdo_cassandra |
4 |
PORTNAME= pdo_cassandra |
5 |
PORTVERSION= 0.2.1 |
5 |
PORTVERSION= 0.2.1 |
6 |
PORTREVISION= 1 |
6 |
PORTREVISION= 2 |
7 |
CATEGORIES= databases |
7 |
CATEGORIES= databases |
8 |
MASTER_SITES= https://github.com/${GITHUB_USER}/php-${PORTNAME}/tarball/${GITREVISION}/ |
8 |
MASTER_SITES= https://github.com/${GITHUB_USER}/php-${PORTNAME}/tarball/${GITREVISION}/ |
9 |
PKGNAMEPREFIX= php5- |
9 |
PKGNAMEPREFIX= php5- |
Lines 12-19
Link Here
|
12 |
MAINTAINER= gasol.wu@gmail.com |
12 |
MAINTAINER= gasol.wu@gmail.com |
13 |
COMMENT= PDO driver for Apache Cassandra |
13 |
COMMENT= PDO driver for Apache Cassandra |
14 |
|
14 |
|
15 |
LIB_DEPENDS= boost_iostreams:${PORTSDIR}/devel/boost-libs \ |
15 |
LICENSE= AL2 |
16 |
thrift:${PORTSDIR}/devel/thrift |
16 |
|
|
|
17 |
LIB_DEPENDS= boost_iostreams:${PORTSDIR}/devel/boost-libs |
17 |
|
18 |
|
18 |
GITREVISION= 7debd5b |
19 |
GITREVISION= 7debd5b |
19 |
GITTAG= 0.8-support |
20 |
GITTAG= 0.8-support |
Lines 27-40
Link Here
|
27 |
USE_PHPEXT= yes |
28 |
USE_PHPEXT= yes |
28 |
DEFAULT_PHP_VER=5 |
29 |
DEFAULT_PHP_VER=5 |
29 |
IGNORE_WITH_PHP=52 |
30 |
IGNORE_WITH_PHP=52 |
30 |
THRIFT_CMD= ${LOCALBASE}/bin/thrift |
|
|
31 |
|
31 |
|
32 |
NO_STAGE= yes |
32 |
.include <bsd.port.pre.mk> |
|
|
33 |
.include "${PORTSDIR}/devel/thrift/bsd.thrift.mk" |
34 |
THRIFT_MAJOR_VER!= ${ECHO} '${THRIFT_PORTVERSION}' | ${CUT} -d . -f 1 |
35 |
THRIFT_MINOR_VER!= ${ECHO} "${THRIFT_PORTVERSION}" | ${CUT} -d . -f 2 |
36 |
THRIFT_PATCH_VER!= ${ECHO} "${THRIFT_PORTVERSION}" | ${CUT} -d . -f 3 |
37 |
|
38 |
.if ${THRIFT_MAJOR_VER} >= 0 || ${THRIFT_MINOR_VER} >= 9 || ${THRIFT_PATCH_VER} >= 1 |
39 |
LIB_DEPENDS+= thrift:${PORTSDIR}/devel/thrift-cpp |
40 |
BUILD_DEPENDS+= ${LOCALBASE}/bin/thrift:${PORTSDIR}/devel/thrift |
41 |
.else |
42 |
LIB_DEPENDS+= thrift:${PORTSDIR}/devel/thrift |
43 |
.endif |
44 |
|
33 |
post-configure: |
45 |
post-configure: |
34 |
thrift_version=`${THRIFT_CMD} -version | ${AWK} '{print $$3}'`; \ |
46 |
.if ${THRIFT_PORTVERSION} == "0.8.0" |
35 |
if [ "$$thrift_version" = "0.8.0" ]; then \ |
47 |
${REINPLACE_CMD} 's/\([^:]\)apache::thrift/\1 ::apache::thrift/g' ${WRKSRC}/gen-cpp/Cassandra.h |
36 |
${REINPLACE_CMD} 's/\([^:]\)apache::thrift/\1 ::apache::thrift/g' ${WRKSRC}/gen-cpp/Cassandra.h; \ |
48 |
${REINPLACE_CMD} 's/\([^:]\)apache::thrift/\1 ::apache::thrift/g' ${WRKSRC}/gen-cpp/Cassandra.cpp |
37 |
${REINPLACE_CMD} 's/\([^:]\)apache::thrift/\1 ::apache::thrift/g' ${WRKSRC}/gen-cpp/Cassandra.cpp; \ |
49 |
.endif |
38 |
fi |
|
|
39 |
|
50 |
|
40 |
.include <bsd.port.mk> |
51 |
.include <bsd.port.post.mk> |