diff --git a/textproc/php-json/Makefile b/textproc/php-json/Makefile index dda350209eef..7b3bffff88ac 100644 --- a/textproc/php-json/Makefile +++ b/textproc/php-json/Makefile @@ -7,4 +7,13 @@ 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 000000000000..320ceb65f5ce --- /dev/null +++ b/textproc/php-json/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD$ +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 000000000000..bf4b3b114e03 --- /dev/null +++ b/textproc/php-json/buildlink3.mk @@ -0,0 +1,14 @@ +# $NetBSD$ +BUILDLINK_TREE+= php-json + +.if !defined(PHP_JSON_BUILDLINK3_MK) +PHP_JSON_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.php-json+= ${PHP_PKG_PREFIX}-json-${PKG_PHP_MAJOR_VERS}.* +BUILDLINK_ABI_DEPENDS.php-json+= ${PHP_PKG_PREFIX}-json>=5.5 +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