svn commit: r445930 - head/converters/pecl-igbinary

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Sat Jul 15 19:09:16 UTC 2017


Author: sunpoet
Date: Sat Jul 15 19:09:15 2017
New Revision: 445930
URL: https://svnweb.freebsd.org/changeset/ports/445930

Log:
  Simplify post-patch:
  
  - Silence patch messages

Modified:
  head/converters/pecl-igbinary/Makefile

Modified: head/converters/pecl-igbinary/Makefile
==============================================================================
--- head/converters/pecl-igbinary/Makefile	Sat Jul 15 19:09:09 2017	(r445929)
+++ head/converters/pecl-igbinary/Makefile	Sat Jul 15 19:09:15 2017	(r445930)
@@ -13,15 +13,8 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 
 USES=		php:pecl
 
-.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
+	@${CP} ${WRKSRC}/src/php${PHP_VER:C|.$||}/igbinary.h ${WRKSRC}/igbinary.h
+	@${CP} ${WRKSRC}/src/php${PHP_VER:C|.$||}/php_igbinary.h ${WRKSRC}/php_igbinary.h
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>


More information about the svn-ports-all mailing list