Index: head/converters/pecl-igbinary/Makefile =================================================================== --- head/converters/pecl-igbinary/Makefile (revision 427137) +++ head/converters/pecl-igbinary/Makefile (revision 427138) @@ -1,20 +1,32 @@ # Created by: Gea-Suan Lin # $FreeBSD$ PORTNAME= igbinary PORTVERSION= 2.0.0 +PORTREVISION= 1 CATEGORIES= converters MASTER_SITES= http://pecl.php.net/get/ \ LOCAL/sunpoet PKGNAMEPREFIX= pecl- DIST_SUBDIR= PECL MAINTAINER= sunpoet@FreeBSD.org COMMENT= Replacement for the standard PHP serializer LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/COPYING USES= php:ext tar:tgz -.include +.include + +post-patch: +.if ${PHP_VER} >= 70 + ${CP} ${WRKSRC}/src/php7/igbinary.h ${WRKSRC}/igbinary.h + ${CP} ${WRKSRC}/src/php7/php_igbinary.h ${WRKSRC}/php_igbinary.h +.else + ${CP} ${WRKSRC}/src/php5/igbinary.h ${WRKSRC}/igbinary.h + ${CP} ${WRKSRC}/src/php5/php_igbinary.h ${WRKSRC}/php_igbinary.h +.endif + +.include