summaryrefslogtreecommitdiff
path: root/textproc/php-json
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2017-12-13 11:42:41 +0000
committerjperkin <jperkin@pkgsrc.org>2017-12-13 11:42:41 +0000
commit494ee54f865b742c2a6e1dc5df78bb1c968452da (patch)
tree307afd1b0e57c634faba7fae74a7b680590e7083 /textproc/php-json
parentc582cf910a5f2ce4debabe11ed8a38708e9ecf64 (diff)
downloadpkgsrc-494ee54f865b742c2a6e1dc5df78bb1c968452da.tar.gz
php-json: Install header and add buildlink3.mk. Bump PKGREVISION.
Patch from Matthieu Guegan in joyent/pkgsrc#53.
Diffstat (limited to 'textproc/php-json')
-rw-r--r--textproc/php-json/Makefile12
-rw-r--r--textproc/php-json/PLIST2
-rw-r--r--textproc/php-json/buildlink3.mk14
3 files changed, 27 insertions, 1 deletions
diff --git a/textproc/php-json/Makefile b/textproc/php-json/Makefile
index dda350209ee..c71076036b4 100644
--- a/textproc/php-json/Makefile
+++ b/textproc/php-json/Makefile
@@ -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 --git a/textproc/php-json/PLIST b/textproc/php-json/PLIST
new file mode 100644
index 00000000000..f2292f841fb
--- /dev/null
+++ b/textproc/php-json/PLIST
@@ -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 --git a/textproc/php-json/buildlink3.mk b/textproc/php-json/buildlink3.mk
new file mode 100644
index 00000000000..2815009b87b
--- /dev/null
+++ b/textproc/php-json/buildlink3.mk
@@ -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