Move all to deprecated folder.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
Fix the broken libjson makefile.
|
||||
|
||||
Signed-off-by: Simon Dawson <spdawson@gmail.com>
|
||||
|
||||
diff -Nurp a/makefile b/makefile
|
||||
--- a/makefile 2012-05-30 10:15:42.000000000 +0100
|
||||
+++ b/makefile 2013-03-27 18:45:34.814670534 +0000
|
||||
@@ -170,7 +170,7 @@ include_path = $(prefix)/$(includedi
|
||||
# Usage check
|
||||
ifdef CXXFLAGS
|
||||
ifdef BUILD_TYPE
|
||||
- $(error CXXFLAGS and BUILD_TYPE are mutually exclusive)
|
||||
+$(error CXXFLAGS and BUILD_TYPE are mutually exclusive)
|
||||
endif
|
||||
endif
|
||||
|
||||
11
deprecated/firmware/buildroot/package/libjson/Config.in
Normal file
11
deprecated/firmware/buildroot/package/libjson/Config.in
Normal file
@@ -0,0 +1,11 @@
|
||||
config BR2_PACKAGE_LIBJSON
|
||||
bool "libjson"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
help
|
||||
A JSON reader and writer which is super-efficient and usually
|
||||
runs circles around other JSON libraries.
|
||||
|
||||
http://sourceforge.net/projects/libjson/
|
||||
|
||||
comment "libjson needs a toolchain w/ C++"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP
|
||||
@@ -0,0 +1,2 @@
|
||||
# Locally computed:
|
||||
sha256 07267a3951038ee2e02d26cc41bf8e275668c38f751240d3e78dc979182e7376 libjson_7.6.1.zip
|
||||
49
deprecated/firmware/buildroot/package/libjson/libjson.mk
Normal file
49
deprecated/firmware/buildroot/package/libjson/libjson.mk
Normal file
@@ -0,0 +1,49 @@
|
||||
################################################################################
|
||||
#
|
||||
# libjson
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBJSON_VERSION = 7.6.1
|
||||
LIBJSON_SITE = http://downloads.sourceforge.net/project/libjson
|
||||
LIBJSON_SOURCE = libjson_$(LIBJSON_VERSION).zip
|
||||
LIBJSON_INSTALL_STAGING = YES
|
||||
LIBJSON_LICENSE = BSD-2c
|
||||
LIBJSON_LICENSE_FILES = License.txt
|
||||
|
||||
LIBJSON_CXXFLAGS = $(TARGET_CFLAGS) -DNDEBUG
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
LIBJSON_MAKE_OPTS += SHARED=0
|
||||
else
|
||||
LIBJSON_MAKE_OPTS += SHARED=1
|
||||
LIBJSON_CXXFLAGS += -fPIC
|
||||
endif
|
||||
|
||||
LIBJSON_MAKE_OPTS += BUILD_TYPE= CXXFLAGS="$(LIBJSON_CXXFLAGS)"
|
||||
|
||||
define LIBJSON_EXTRACT_CMDS
|
||||
$(UNZIP) -d $(@D) $(DL_DIR)/$(LIBJSON_SOURCE)
|
||||
mv $(@D)/libjson/* $(@D)
|
||||
$(RM) -r $(@D)/libjson
|
||||
$(SED) '/ldconfig/d' $(@D)/makefile
|
||||
endef
|
||||
|
||||
define LIBJSON_BUILD_CMDS
|
||||
mkdir -p $(@D)/Objects_$(if $(BR2_STATIC_LIBS),static,shared) \
|
||||
$(@D)/_internal/Source/Dependencies
|
||||
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
||||
$(LIBJSON_MAKE_OPTS) -C $(@D)
|
||||
endef
|
||||
|
||||
define LIBJSON_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
||||
$(LIBJSON_MAKE_OPTS) prefix=$(TARGET_DIR)/usr install -C $(@D)
|
||||
endef
|
||||
|
||||
define LIBJSON_INSTALL_STAGING_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
||||
$(LIBJSON_MAKE_OPTS) prefix=$(STAGING_DIR)/usr install -C $(@D)
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user