diff options
author | Andre Heinecke <aheinecke@intevation.de> | 2015-09-07 13:07:42 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2015-12-01 04:43:54 (GMT) |
commit | 7f1f0e9e6fcfe9b4f1b922600b920d8147c176f3 (patch) | |
tree | e78bfebe3fb544b0e8ede5ec7cfed257abf8bc04 /src/json-glib.mk | |
parent | a30470ec00934794a43cd893529eb7eb729a7ef5 (diff) | |
download | mxe-7f1f0e9e6fcfe9b4f1b922600b920d8147c176f3.zip mxe-7f1f0e9e6fcfe9b4f1b922600b920d8147c176f3.tar.gz mxe-7f1f0e9e6fcfe9b4f1b922600b920d8147c176f3.tar.bz2 |
Add package json-glib
Diffstat (limited to 'src/json-glib.mk')
-rw-r--r-- | src/json-glib.mk | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/json-glib.mk b/src/json-glib.mk new file mode 100644 index 0000000..7017f6c --- /dev/null +++ b/src/json-glib.mk @@ -0,0 +1,34 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := json-glib +$(PKG)_IGNORE := +$(PKG)_VERSION := 1.0.4 +$(PKG)_CHECKSUM := efdf5a66d1d8fb504448a40ba2352bbfef301074 +$(PKG)_SUBDIR := json-glib-$($(PKG)_VERSION) +$(PKG)_FILE := json-glib-$($(PKG)_VERSION).tar.xz +$(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/json-glib/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE) +$(PKG)_DEPS := gcc glib + +define $(PKG)_UPDATE + $(WGET) -q -O- 'http://git.gnome.org/browse/json-glib/refs/tags' | \ + grep '<a href=' | \ + $(SED) -n 's,.*<a[^>]*>\([0-9]*\.[0-9]*[02468]\.[^<]*\)<.*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + cd '$(1)' && ./configure \ + $(MXE_CONFIGURE_OPTS) \ + --enable-static \ + --disable-shared + $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= +endef + +define $(PKG)_BUILD_SHARED + cd '$(1)' && ./configure \ + $(MXE_CONFIGURE_OPTS) \ + --disable-static \ + --enable-shared + $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= +endef |