Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Jul 2017 19:09:15 +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: r445930 - head/converters/pecl-igbinary
Message-ID:  <201707151909.v6FJ9F3u006909@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



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