blob: 72cbbd2cf0a83985775eb9d71b3bc3f10740a207 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# New ports collection makefile for: php5-pdo_cassandra
# Date created: 2011-08-03
# Whom: Gasol Wu <gasol.wu@gmail.com>
#
# $FreeBSD$
#
PORTNAME= pdo_cassandra
PORTVERSION= 0.2.1
PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= https://github.com/${GITHUB_USER}/php-${PORTNAME}/tarball/${GITREVISION}/
PKGNAMEPREFIX= php5-
DISTNAME= ${GITHUB_USER}-php-${PORTNAME}-${GITTAG}-14-g${GITREVISION}
MAINTAINER= gasol.wu@gmail.com
COMMENT= PDO driver for Apache Cassandra
LIB_DEPENDS= boost_iostreams:${PORTSDIR}/devel/boost-libs \
thrift:${PORTSDIR}/devel/thrift
GITREVISION= 7debd5b
GITTAG= 0.8-support
GITHUB_USER= mkoppanen
FETCH_ARGS= -pRr
WRKSRC= ${WRKDIR}/${GITHUB_USER}-php-${PORTNAME}-${GITREVISION}
USE_PHP_BUILD= yes
USE_PHP= pdo
USE_PHPEXT= yes
DEFAULT_PHP_VER=5
IGNORE_WITH_PHP=4 52
THRIFT_CMD= ${LOCALBASE}/bin/thrift
post-configure:
thrift_version=`${THRIFT_CMD} -version | ${AWK} '{print $$3}'`; \
if [ "$$thrift_version" = "0.8.0" ]; then \
${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.cpp; \
fi
.include <bsd.port.mk>
|