Move all to deprecated folder.
This commit is contained in:
9
deprecated/firmware/buildroot/package/cjson/Config.in
Normal file
9
deprecated/firmware/buildroot/package/cjson/Config.in
Normal file
@@ -0,0 +1,9 @@
|
||||
config BR2_PACKAGE_CJSON
|
||||
bool "cJSON"
|
||||
# For static build with cJSON.c directly see README
|
||||
depends on !BR2_STATIC_LIBS
|
||||
help
|
||||
An ultra-lightweight, portable, single-file, simple-as-can-be ANSI-C
|
||||
compliant JSON parser, under MIT license.
|
||||
|
||||
http://cjson.sourceforge.net/
|
||||
29
deprecated/firmware/buildroot/package/cjson/cjson.mk
Normal file
29
deprecated/firmware/buildroot/package/cjson/cjson.mk
Normal file
@@ -0,0 +1,29 @@
|
||||
################################################################################
|
||||
#
|
||||
# cjson
|
||||
#
|
||||
################################################################################
|
||||
|
||||
CJSON_VERSION = 58
|
||||
CJSON_SITE_METHOD = svn
|
||||
CJSON_SITE = http://svn.code.sf.net/p/cjson/code
|
||||
CJSON_INSTALL_STAGING = YES
|
||||
CJSON_LICENSE = MIT
|
||||
CJSON_LICENSE_FILES = LICENSE
|
||||
|
||||
define CJSON_BUILD_CMDS
|
||||
cd $(@D) && $(TARGET_CC) $(TARGET_CFLAGS) -shared -fPIC -lm \
|
||||
cJSON.c -o libcJSON.so
|
||||
endef
|
||||
|
||||
define CJSON_INSTALL_STAGING_CMDS
|
||||
$(INSTALL) -D $(@D)/cJSON.h $(STAGING_DIR)/usr/include/cJSON.h
|
||||
$(INSTALL) -D $(@D)/libcJSON.so $(STAGING_DIR)/usr/lib/libcJSON.so
|
||||
endef
|
||||
|
||||
define CJSON_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -D $(@D)/cJSON.h $(TARGET_DIR)/usr/include/cJSON.h
|
||||
$(INSTALL) -D $(@D)/libcJSON.so $(TARGET_DIR)/usr/lib/libcJSON.so
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user