pkgsrc-Changes archive

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

CVS commit: pkgsrc/textproc/php-json



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Wed Dec 13 11:42:41 UTC 2017

Modified Files:
        pkgsrc/textproc/php-json: Makefile
Added Files:
        pkgsrc/textproc/php-json: PLIST buildlink3.mk

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

Patch from Matthieu Guegan in joyent/pkgsrc#53.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/textproc/php-json/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/php-json/PLIST \
    pkgsrc/textproc/php-json/buildlink3.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/php-json/Makefile
diff -u pkgsrc/textproc/php-json/Makefile:1.4 pkgsrc/textproc/php-json/Makefile:1.5
--- pkgsrc/textproc/php-json/Makefile:1.4       Thu Oct 25 06:56:45 2012
+++ pkgsrc/textproc/php-json/Makefile   Wed Dec 13 11:42:41 2017
@@ -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"

Added files:

Index: pkgsrc/textproc/php-json/PLIST
diff -u /dev/null pkgsrc/textproc/php-json/PLIST:1.1
--- /dev/null   Wed Dec 13 11:42:41 2017
+++ pkgsrc/textproc/php-json/PLIST      Wed Dec 13 11:42:41 2017
@@ -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
Index: pkgsrc/textproc/php-json/buildlink3.mk
diff -u /dev/null pkgsrc/textproc/php-json/buildlink3.mk:1.1
--- /dev/null   Wed Dec 13 11:42:41 2017
+++ pkgsrc/textproc/php-json/buildlink3.mk      Wed Dec 13 11:42:41 2017
@@ -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