diff options
author | Timothy Gu <timothygu99@gmail.com> | 2015-03-09 15:09:24 (GMT) |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2015-03-09 15:09:24 (GMT) |
commit | 6edc5e7f747f2864aa40b560a98c70e9ca4c01f6 (patch) | |
tree | 434e8f9fb32e2e68a7a6c1a4b0af7816ffff287c /src/jansson.mk | |
parent | 61d5384ce40e53eff199fc94231796bb21301809 (diff) | |
parent | 8dd11a1ad02a1f9832367597d6c1636e04448f0e (diff) | |
download | mxe-6edc5e7f747f2864aa40b560a98c70e9ca4c01f6.zip mxe-6edc5e7f747f2864aa40b560a98c70e9ca4c01f6.tar.gz mxe-6edc5e7f747f2864aa40b560a98c70e9ca4c01f6.tar.bz2 |
Merge pull request #646 from Mireiawen/master
Jansson package
Diffstat (limited to 'src/jansson.mk')
-rw-r--r-- | src/jansson.mk | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/jansson.mk b/src/jansson.mk new file mode 100644 index 0000000..18f3e92 --- /dev/null +++ b/src/jansson.mk @@ -0,0 +1,24 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := jansson +$(PKG)_IGNORE := +$(PKG)_VERSION := 2.7 +$(PKG)_CHECKSUM := 51cd3b57f152132de686bb8c1f4471cc9ca7970e +$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) +$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2 +$(PKG)_URL := http://www.digip.org/$(PKG)/releases/$($(PKG)_FILE) +$(PKG)_DEPS := gcc autoconf automake libtool + +define $(PKG)_UPDATE + echo 'TODO: write update script for $(PKG).' >&2; + echo $($(PKG)_VERSION) +endef + +define $(PKG)_BUILD + mkdir '$(1).build' + cd '$(1).build' && '$(1)/configure' \ + --prefix '$(PREFIX)/$(TARGET)' + $(MAKE) -C '$(1).build' -j '$(JOBS)' + $(MAKE) -C '$(1).build' -j 1 install +endef |