jsmn: new package
Signed-off-by: David Bachelart <david.bachelart@bbright.com> [Thomas: - fix license, it's MIT, not BSD - use TARGET_CONFIGURE_OPTS instead of manually passing CC and AR - use full destination path - keep only sha256 hash - rewrap Config.in help text] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
ef01264f13
commit
c8bd91bf89
@ -1126,6 +1126,7 @@ menu "JSON/XML"
|
||||
source "package/expat/Config.in"
|
||||
source "package/ezxml/Config.in"
|
||||
source "package/jansson/Config.in"
|
||||
source "package/jsmn/Config.in"
|
||||
source "package/json-c/Config.in"
|
||||
source "package/json-glib/Config.in"
|
||||
source "package/jsoncpp/Config.in"
|
||||
|
8
package/jsmn/Config.in
Normal file
8
package/jsmn/Config.in
Normal file
@ -0,0 +1,8 @@
|
||||
config BR2_PACKAGE_JSMN
|
||||
bool "jsmn"
|
||||
help
|
||||
jsmn (pronounced like 'jasmine') is a minimalistic JSON
|
||||
parser in C. It can be easily integrated into
|
||||
resource-limited or embedded projects.
|
||||
|
||||
https://github.com/zserge/jsmn/
|
2
package/jsmn/jsmn.hash
Normal file
2
package/jsmn/jsmn.hash
Normal file
@ -0,0 +1,2 @@
|
||||
# Locally computed
|
||||
sha256 e08993848b2abab62aa9572a560bb6e5ed4762f8537cd67c4de6cb17e17090a0 jsmn-6021415cc75e7922d45b12935f56348b064d8a7f.tar.gz
|
24
package/jsmn/jsmn.mk
Normal file
24
package/jsmn/jsmn.mk
Normal file
@ -0,0 +1,24 @@
|
||||
################################################################################
|
||||
#
|
||||
# jsmn
|
||||
#
|
||||
################################################################################
|
||||
|
||||
JSMN_VERSION = 6021415cc75e7922d45b12935f56348b064d8a7f
|
||||
JSMN_SITE = $(call github,zserge,jsmn,$(JSMN_VERSION))
|
||||
JSMN_LICENSE = MIT
|
||||
JSMN_LICENSE_FILES = LICENSE
|
||||
# static library only
|
||||
JSMN_INSTALL_STAGING = YES
|
||||
JSMN_INSTALL_TARGET = NO
|
||||
|
||||
define JSMN_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
|
||||
endef
|
||||
|
||||
define JSMN_INSTALL_STAGING_CMDS
|
||||
$(INSTALL) -m 0644 $(@D)/libjsmn.a $(STAGING_DIR)/usr/lib/libjsmn.a
|
||||
$(INSTALL) -m 0644 $(@D)/jsmn.h $(STAGING_DIR)/usr/include/jsmn.h
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
Loading…
Reference in New Issue
Block a user