Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

textproc/php-json: include header file to the package #53

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions textproc/php-json/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 2 additions & 0 deletions textproc/php-json/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@comment $NetBSD$
include/php/ext/json/php_json.h
14 changes: 14 additions & 0 deletions textproc/php-json/buildlink3.mk
Original file line number Diff line number Diff line change
@@ -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