0014239ac2
* Restrict this package prior to php80 since php80 contains in it. * Add c and c++ to USE_LANGUAGES. * Add yacc to USE_TOOLS.
28 lines
657 B
Makefile
28 lines
657 B
Makefile
# $NetBSD: Makefile,v 1.9 2021/03/07 13:45:08 taca Exp $
|
|
|
|
MODNAME= json
|
|
CATEGORIES+= textproc
|
|
COMMENT= PHP extension for JSON serialization support
|
|
|
|
USE_LANGUAGES+= c c++
|
|
USE_TOOLS+= yacc
|
|
|
|
BUILD_DEPENDS+= re2c>=0.13.0.4:../../devel/re2c
|
|
|
|
CONFIGURE_ARGS+= --enable-${MODNAME}=shared
|
|
|
|
PHP_VERSIONS_ACCEPTED= 56 73 74
|
|
|
|
.include "../../lang/php/ext.mk"
|
|
|
|
INSTALLATION_DIRS+= include/php/ext/json
|
|
JSON_INCLUDES= php_json.h
|
|
PLIST_SRC+= ${.CURDIR}/../../textproc/php-json/PLIST
|
|
|
|
MAKE_ENV+= RE2C=re2c
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/${JSON_INCLUDES} \
|
|
${DESTDIR}${PREFIX}/include/php/ext/json/${JSON_INCLUDES}
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|