Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Nov 2016 10:33:32 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r427138 - head/converters/pecl-igbinary
Message-ID:  <201611261033.uAQAXWI7044932@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sat Nov 26 10:33:32 2016
New Revision: 427138
URL: https://svnweb.freebsd.org/changeset/ports/427138

Log:
  - Fix installation of igbinary.h and php_igbinary.h
  - Bump PORTREVISION for package change

Modified:
  head/converters/pecl-igbinary/Makefile

Modified: head/converters/pecl-igbinary/Makefile
==============================================================================
--- head/converters/pecl-igbinary/Makefile	Sat Nov 26 10:24:06 2016	(r427137)
+++ head/converters/pecl-igbinary/Makefile	Sat Nov 26 10:33:32 2016	(r427138)
@@ -3,6 +3,7 @@
 
 PORTNAME=	igbinary
 PORTVERSION=	2.0.0
+PORTREVISION=	1
 CATEGORIES=	converters
 MASTER_SITES=	http://pecl.php.net/get/ \
 		LOCAL/sunpoet
@@ -17,4 +18,15 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 
 USES=		php:ext tar:tgz
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+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 <bsd.port.post.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611261033.uAQAXWI7044932>