2021-03-07 14:45:08 +01:00
|
|
|
# $NetBSD: Makefile,v 1.9 2021/03/07 13:45:08 taca Exp $
|
2006-11-06 23:22:51 +01:00
|
|
|
|
|
|
|
MODNAME= json
|
|
|
|
CATEGORIES+= textproc
|
|
|
|
COMMENT= PHP extension for JSON serialization support
|
|
|
|
|
2021-03-07 14:45:08 +01:00
|
|
|
USE_LANGUAGES+= c c++
|
|
|
|
USE_TOOLS+= yacc
|
|
|
|
|
|
|
|
BUILD_DEPENDS+= re2c>=0.13.0.4:../../devel/re2c
|
2020-03-22 00:51:57 +01:00
|
|
|
|
2010-02-27 04:52:38 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-${MODNAME}=shared
|
2006-11-06 23:22:51 +01:00
|
|
|
|
2021-03-07 14:45:08 +01:00
|
|
|
PHP_VERSIONS_ACCEPTED= 56 73 74
|
|
|
|
|
2006-11-06 23:22:51 +01:00
|
|
|
.include "../../lang/php/ext.mk"
|
2017-12-13 12:42:41 +01:00
|
|
|
|
|
|
|
INSTALLATION_DIRS+= include/php/ext/json
|
|
|
|
JSON_INCLUDES= php_json.h
|
|
|
|
PLIST_SRC+= ${.CURDIR}/../../textproc/php-json/PLIST
|
|
|
|
|
2020-03-22 22:21:32 +01:00
|
|
|
MAKE_ENV+= RE2C=re2c
|
|
|
|
|
2017-12-13 12:42:41 +01:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${JSON_INCLUDES} \
|
|
|
|
${DESTDIR}${PREFIX}/include/php/ext/json/${JSON_INCLUDES}
|
|
|
|
|
2006-11-06 23:22:51 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|