2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-06-12 18:40:32 +02:00
|
|
|
#
|
|
|
|
# cjson
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2013-08-26 00:06:27 +02:00
|
|
|
CJSON_VERSION = 58
|
2013-01-30 18:26:37 +01:00
|
|
|
CJSON_SITE_METHOD = svn
|
2013-08-26 00:06:27 +02:00
|
|
|
CJSON_SITE = http://svn.code.sf.net/p/cjson/code
|
2012-06-12 18:40:32 +02:00
|
|
|
CJSON_INSTALL_STAGING = YES
|
2012-08-04 05:19:05 +02:00
|
|
|
CJSON_LICENSE = MIT
|
2013-08-26 00:06:27 +02:00
|
|
|
CJSON_LICENSE_FILES = LICENSE
|
2012-06-12 18:40:32 +02:00
|
|
|
|
|
|
|
define CJSON_BUILD_CMDS
|
2013-10-30 20:03:31 +01:00
|
|
|
cd $(@D) && $(TARGET_CC) $(TARGET_CFLAGS) -shared -fPIC -lm \
|
|
|
|
cJSON.c -o libcJSON.so
|
2012-06-12 18:40:32 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define CJSON_INSTALL_STAGING_CMDS
|
2013-01-30 18:26:37 +01:00
|
|
|
$(INSTALL) -D $(@D)/cJSON.h $(STAGING_DIR)/usr/include/cJSON.h
|
|
|
|
$(INSTALL) -D $(@D)/libcJSON.so $(STAGING_DIR)/usr/lib/libcJSON.so
|
2012-06-12 18:40:32 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define CJSON_INSTALL_TARGET_CMDS
|
2013-01-30 18:26:37 +01:00
|
|
|
$(INSTALL) -D $(@D)/cJSON.h $(TARGET_DIR)/usr/include/cJSON.h
|
|
|
|
$(INSTALL) -D $(@D)/libcJSON.so $(TARGET_DIR)/usr/lib/libcJSON.so
|
2012-06-12 18:40:32 +02:00
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|