Import security/py-yara version 3.4.0
[dports.git] / databases / php5-pdo_cassandra / Makefile
1 # Created by: Gasol Wu <gasol.wu@gmail.com>
2 # $FreeBSD$
3
4 PORTNAME=       pdo_cassandra
5 PORTVERSION=    0.2.1
6 PORTREVISION=   4
7 CATEGORIES=     databases
8 PKGNAMEPREFIX=  php5-
9
10 MAINTAINER=     gasol.wu@gmail.com
11 COMMENT=        PDO driver for Apache Cassandra
12
13 LICENSE=        APACHE20
14
15 LIB_DEPENDS=    libboost_iostreams.so:${PORTSDIR}/devel/boost-libs
16
17 USE_GITHUB=     yes
18 GH_ACCOUNT=     mkoppanen
19 GH_PROJECT=     php-${PORTNAME}
20 GH_TAGNAME=     7debd5b
21
22 USES=           pkgconfig
23 USE_PHP_BUILD=  yes
24 USE_PHP=        pdo
25 USE_PHPEXT=     yes
26 DEFAULT_PHP_VER=5
27 IGNORE_WITH_PHP=52
28 USE_GCC=        yes
29
30 .include <bsd.port.pre.mk>
31 .include "${PORTSDIR}/devel/thrift/bsd.thrift.mk"
32
33 THRIFT_MAJOR_VER=       ${THRIFT_PORTVERSION:R:R}
34 THRIFT_MINOR_VER=       ${THRIFT_PORTVERSION:R:E}
35 THRIFT_PATCH_VER=       ${THRIFT_PORTVERSION:E}
36
37 .if ${THRIFT_MAJOR_VER} >= 0 || ${THRIFT_MINOR_VER} >= 9 || ${THRIFT_PATCH_VER} >= 1
38 LIB_DEPENDS+=   libthrift.so:${PORTSDIR}/devel/thrift-cpp
39 BUILD_DEPENDS+= ${LOCALBASE}/bin/thrift:${PORTSDIR}/devel/thrift
40 .else
41 LIB_DEPENDS+=   libthrift.so:${PORTSDIR}/devel/thrift
42 .endif
43
44 post-configure:
45 .if ${THRIFT_PORTVERSION} == "0.8.0"
46         ${REINPLACE_CMD} 's/\([^:]\)apache::thrift/\1 ::apache::thrift/g' ${WRKSRC}/gen-cpp/Cassandra.h
47         ${REINPLACE_CMD} 's/\([^:]\)apache::thrift/\1 ::apache::thrift/g' ${WRKSRC}/gen-cpp/Cassandra.cpp
48 .endif
49
50 .include <bsd.port.post.mk>