forked from Freetz/freetz
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A A A A A A * add new library - [http://www.digip.org/jansson/ jansson] (by [http://www.ip-phone-forum.de/showthread.php?t=281667&s=a1c91648aaa6eec71a0de08d5086fd5a merov] + fixes by me) git-svn-id: file:///var/svn/freetz/trunk@13414 149334a1-2f27-0410-a3b9-fc62619ac1e6
- Loading branch information
er13
committed
Oct 3, 2015
1 parent
199686f
commit f879fab
Showing
8 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
config FREETZ_LIB_libjansson | ||
bool "libjansson (libjansson.so)" | ||
default n | ||
help | ||
A C library for encoding, decoding and manipulating JSON data. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ifeq ($(strip $(FREETZ_LIB_libjansson)),y) | ||
LIBS+=jansson | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[ "$EXTERNAL_FREETZ_LIB_libjansson" == "y" ] && EXTERNAL_FILES+=" $FREETZ_LIBRARY_DIR/libjansson.so.4.7.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
config EXTERNAL_FREETZ_LIB_libjansson | ||
depends on EXTERNAL_ENABLED && FREETZ_LIB_libjansson | ||
bool "libjansson" | ||
default n | ||
help | ||
externals the following file(s): | ||
/usr/lib/freetz/libjansson.so.4.7.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
$(call PKG_INIT_LIB, 2.7) | ||
$(PKG)_LIB_VERSION:=4.7.0 | ||
$(PKG)_SOURCE:=$(pkg)-$($(PKG)_VERSION).tar.gz | ||
$(PKG)_SOURCE_MD5:=3a106a465bbb77637550b422f5b262ef | ||
$(PKG)_SITE:=http://www.digip.org/jansson/releases | ||
|
||
$(PKG)_LIBNAME:=lib$(pkg).so.$($(PKG)_LIB_VERSION) | ||
$(PKG)_BINARY:=$($(PKG)_DIR)/src/.libs/$($(PKG)_LIBNAME) | ||
$(PKG)_STAGING_BINARY:=$(TARGET_TOOLCHAIN_STAGING_DIR)/usr/lib/$($(PKG)_LIBNAME) | ||
$(PKG)_TARGET_BINARY:=$($(PKG)_TARGET_DIR)/$($(PKG)_LIBNAME) | ||
|
||
$(PKG)_CONFIGURE_OPTIONS += --enable-shared | ||
$(PKG)_CONFIGURE_OPTIONS += --enable-static | ||
|
||
$(PKG_SOURCE_DOWNLOAD) | ||
$(PKG_UNPACKED) | ||
$(PKG_CONFIGURED_CONFIGURE) | ||
|
||
$($(PKG)_BINARY): $($(PKG)_DIR)/.configured | ||
$(SUBMAKE) -C $(JANSSON_DIR) | ||
|
||
$($(PKG)_STAGING_BINARY): $($(PKG)_BINARY) | ||
$(SUBMAKE) -C $(JANSSON_DIR) \ | ||
DESTDIR="$(TARGET_TOOLCHAIN_STAGING_DIR)" \ | ||
install | ||
$(call PKG_FIX_LIBTOOL_LA,prefix exec_prefix libdir) \ | ||
$(TARGET_TOOLCHAIN_STAGING_DIR)/usr/lib/libjansson.la \ | ||
$(TARGET_TOOLCHAIN_STAGING_DIR)/usr/lib/pkgconfig/jansson.pc | ||
|
||
$($(PKG)_TARGET_BINARY): $($(PKG)_STAGING_BINARY) | ||
$(INSTALL_LIBRARY_STRIP) | ||
|
||
$(pkg): $($(PKG)_STAGING_BINARY) | ||
|
||
$(pkg)-precompiled: $($(PKG)_TARGET_BINARY) | ||
|
||
$(pkg)-clean: | ||
-$(SUBMAKE) -C $(JANSSON_DIR) clean | ||
$(RM) \ | ||
$(TARGET_TOOLCHAIN_STAGING_DIR)/usr/lib/libjansson* \ | ||
$(TARGET_TOOLCHAIN_STAGING_DIR)/usr/include/jansson*.h \ | ||
$(TARGET_TOOLCHAIN_STAGING_DIR)/usr/lib/pkgconfig/jansson.pc | ||
|
||
$(pkg)-uninstall: | ||
$(RM) $(JANSSON_TARGET_DIR)/libjansson.so* | ||
|
||
$(PKG_FINISH) |