Tweak converters/pecl-igbinary version 2.0.1
[dports.git] / converters / pecl-igbinary / Makefile
1 # Created by: Gea-Suan Lin <gslin@gslin.org>
2 # $FreeBSD$
3
4 PORTNAME=       igbinary
5 PORTVERSION=    2.0.1
6 CATEGORIES=     converters
7
8 MAINTAINER=     sunpoet@FreeBSD.org
9 COMMENT=        Replacement for the standard PHP serializer
10
11 LICENSE=        BSD3CLAUSE
12 LICENSE_FILE=   ${WRKSRC}/COPYING
13
14 USES=           php:pecl
15
16 .include <bsd.port.pre.mk>
17
18 post-patch:
19 .if ${PHP_VER} >= 70
20         ${CP} ${WRKSRC}/src/php7/igbinary.h ${WRKSRC}/igbinary.h
21         ${CP} ${WRKSRC}/src/php7/php_igbinary.h ${WRKSRC}/php_igbinary.h
22 .else
23         ${CP} ${WRKSRC}/src/php5/igbinary.h ${WRKSRC}/igbinary.h
24         ${CP} ${WRKSRC}/src/php5/php_igbinary.h ${WRKSRC}/php_igbinary.h
25 .endif
26
27 .include <bsd.port.post.mk>