Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial libyajl2 commit #108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions libyajl2/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build/
35 changes: 35 additions & 0 deletions libyajl2/Makefile
Original file line number Diff line number Diff line change
@@ -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

18 changes: 18 additions & 0 deletions libyajl2/README.md
Original file line number Diff line number Diff line change
@@ -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
```