Mercurial > mxe-octave
comparison src/gcab.mk @ 3136:5481abb52912
Add gcab (and MSVC-specific patch)
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Sat, 13 Jul 2013 17:10:35 -0400 |
parents | |
children | a8cd3627da93 |
comparison
equal
deleted
inserted
replaced
3135:8147e6f8659a | 3136:5481abb52912 |
---|---|
1 # This file is part of MXE. | |
2 # See index.html for further information. | |
3 | |
4 PKG := gcab | |
5 $(PKG)_IGNORE := | |
6 $(PKG)_CHECKSUM := d81dfe35125e611e3a94c0d4def37ebf62b9187c | |
7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) | |
8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz | |
9 $(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/$(PKG)/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE) | |
10 $(PKG)_DEPS := glib zlib | |
11 | |
12 define $(PKG)_UPDATE | |
13 $(WGET) -q -O- 'http://git.gnome.org/browse/$(PKG)/refs/tags' | \ | |
14 $(SED) -n "s,.*tag/?id=\([0-9]\+\.[0-9]*[02468]\.[^']*\).*,\1,p" | \ | |
15 head -1 | |
16 endef | |
17 | |
18 define $(PKG)_BUILD | |
19 mkdir '$(1)/.build' | |
20 cd '$(1)/.build' && PKG_CONFIG_PATH='$(HOST_LIBDIR)/pkgconfig' '$(1)/configure' \ | |
21 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ | |
22 $(ENABLE_SHARED_OR_STATIC) \ | |
23 --prefix='$(HOST_PREFIX)' \ | |
24 && $(CONFIGURE_POST_HOOK) | |
25 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' | |
26 $(MAKE) -C '$(1)/.build' -j 1 install | |
27 endef |