diff options
-rw-r--r-- | index.html | 4 | ||||
-rw-r--r-- | src/jansson.mk | 24 |
2 files changed, 28 insertions, 0 deletions
@@ -1538,6 +1538,10 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre> <td class="website"><a href="http://www.itk.org/">Insight Segmentation and Registration Toolkit (ITK)</a></td> </tr> <tr> + <td class="package">jansson</td> + <td class="website"><a href="http://www.digip.org/jansson/">Jansson</a></td> + </tr> + <tr> <td class="package">jasper</td> <td class="website"><a href="http://www.ece.uvic.ca/~mdadams/jasper/">JasPer</a></td> </tr> 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 |