pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/php-json php-json: Install header and add bui...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e88508910e97
branches:  trunk
changeset: 372646:e88508910e97
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Wed Dec 13 11:42:41 2017 +0000

description:
php-json: Install header and add buildlink3.mk.  Bump PKGREVISION.

Patch from Matthieu Guegan in joyent/pkgsrc#53.

diffstat:

 textproc/php-json/Makefile      |  12 +++++++++++-
 textproc/php-json/PLIST         |   2 ++
 textproc/php-json/buildlink3.mk |  14 ++++++++++++++
 3 files changed, 27 insertions(+), 1 deletions(-)

diffs (49 lines):

diff -r 126c77b508d7 -r e88508910e97 textproc/php-json/Makefile
--- a/textproc/php-json/Makefile        Wed Dec 13 11:34:47 2017 +0000
+++ b/textproc/php-json/Makefile        Wed Dec 13 11:42:41 2017 +0000
@@ -1,10 +1,20 @@
-# $NetBSD: Makefile,v 1.4 2012/10/25 06:56:45 asau Exp $
+# $NetBSD: Makefile,v 1.5 2017/12/13 11:42:41 jperkin Exp $
 
 MODNAME=               json
+PKGREVISION=           1
 CATEGORIES+=           textproc
 COMMENT=               PHP extension for JSON serialization support
 
 CONFIGURE_ARGS+=       --enable-${MODNAME}=shared
 
 .include "../../lang/php/ext.mk"
+
+INSTALLATION_DIRS+=    include/php/ext/json
+JSON_INCLUDES=         php_json.h
+PLIST_SRC+=            ${.CURDIR}/../../textproc/php-json/PLIST
+
+post-install:
+       ${INSTALL_DATA} ${WRKSRC}/${JSON_INCLUDES} \
+           ${DESTDIR}${PREFIX}/include/php/ext/json/${JSON_INCLUDES}
+
 .include "../../mk/bsd.pkg.mk"
diff -r 126c77b508d7 -r e88508910e97 textproc/php-json/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/php-json/PLIST   Wed Dec 13 11:42:41 2017 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2017/12/13 11:42:41 jperkin Exp $
+include/php/ext/json/php_json.h
diff -r 126c77b508d7 -r e88508910e97 textproc/php-json/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/php-json/buildlink3.mk   Wed Dec 13 11:42:41 2017 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink3.mk,v 1.1 2017/12/13 11:42:41 jperkin Exp $
+
+BUILDLINK_TREE+=       php-json
+
+.if !defined(PHP_JSON_BUILDLINK3_MK)
+PHP_JSON_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.php-json+=       ${PHP_PKG_PREFIX}-json>0
+BUILDLINK_PKGSRCDIR.php-json?=         ../../textproc/php-json
+BUILDLINK_DEPMETHOD.php-json?=         build
+BUILDLINK_INCDIRS.php-json?=           include/php/ext/json
+.endif  # PHP_JSON_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -php-json



Home | Main Index | Thread Index | Old Index