From f7e0c15751603d2cc97942232b63474d7d1b806a Mon Sep 17 00:00:00 2001 From: George Dunlap Date: Fri, 13 May 2016 17:40:46 +0100 Subject: [PATCH] Initial libyajl2 commit Signed-off-by: George Dunlap --- libyajl2/.gitignore | 1 + libyajl2/Makefile | 35 +++++++++++++++++++++++++++++++++++ libyajl2/README.md | 18 ++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 libyajl2/.gitignore create mode 100644 libyajl2/Makefile create mode 100644 libyajl2/README.md diff --git a/libyajl2/.gitignore b/libyajl2/.gitignore new file mode 100644 index 00000000..567609b1 --- /dev/null +++ b/libyajl2/.gitignore @@ -0,0 +1 @@ +build/ diff --git a/libyajl2/Makefile b/libyajl2/Makefile new file mode 100644 index 00000000..0aea7c6a --- /dev/null +++ b/libyajl2/Makefile @@ -0,0 +1,35 @@ +include ../Makefile.inc +UPSTREAM=http://github.com/lloyd/yajl/tarball/2.1.0 +TARBALL=lloyd-yajl-2.1.0-0-ga0ecdde.tar.gz + +all: bin/libyajl + +bin/libyajl: build/objs/libyajl + +build/objs/libyajl: build/Makefile + $(MAKE) -C build/build + $(MAKE) -C build/build install + +build/Makefile: build/CMakeLists.txt + mkdir -p build/build + (cd build/build && \ + cmake -DCMAKE_TOOLCHAIN_FILE=$(RUMPRUN_CMAKE_TOOLCHAIN_FILE) \ + -DCMAKE_INSTALL_PREFIX="$(RUMPRUN_PKGS_DIR)" \ + ..;) + +dl/$(TARBALL): + mkdir -p dl + ../scripts/fetch.sh ${UPSTREAM} dl/$(TARBALL) + +build/CMakeLists.txt: | dl/$(TARBALL) + mkdir -p build + (cd build && tar -zx --strip-components 1 -f ../dl/$(TARBALL)) + +.PHONY: clean +clean: + -$(MAKE) -C build/build clean + +.PHONY: distclean +distclean: + rm -rf build + diff --git a/libyajl2/README.md b/libyajl2/README.md new file mode 100644 index 00000000..68f59dbc --- /dev/null +++ b/libyajl2/README.md @@ -0,0 +1,18 @@ +Overview +======== + +Packaging of the [libyajl](https://lloyd.github.io/yajl/) -- Yet Another JSON Library. YAJL is a small event-driven (SAX-style) JSON parser written in ANSI C, and a small validating JSON generator. YAJL is released under the ISC license. + +Maintainer +---------- + +* Maintainer requested! + +Instructions +============ + +Run `make`: + +``` +make +```