Mercurial > mxe-octave
annotate src/gcab.mk @ 3480:13be64f9f16d
move version info from index.html to src/*.mk files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 31 Jan 2014 16:04:01 -0500 |
parents | a8cd3627da93 |
children | ae4193aad5fe |
rev | line source |
---|---|
3136
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
1 # This file is part of MXE. |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
2 # See index.html for further information. |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
3 |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
4 PKG := gcab |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
3480
13be64f9f16d
move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents:
3232
diff
changeset
|
6 $(PKG)_VERSION := 0.4 |
3136
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
7 $(PKG)_CHECKSUM := d81dfe35125e611e3a94c0d4def37ebf62b9187c |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
10 $(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/$(PKG)/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE) |
3232
a8cd3627da93
Add intltool as a dependancy of gcab.
John Donoghue <john.donoghue@ieee.org>
parents:
3136
diff
changeset
|
11 $(PKG)_DEPS := glib zlib intltool |
3136
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
12 |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
13 define $(PKG)_UPDATE |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
14 $(WGET) -q -O- 'http://git.gnome.org/browse/$(PKG)/refs/tags' | \ |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
15 $(SED) -n "s,.*tag/?id=\([0-9]\+\.[0-9]*[02468]\.[^']*\).*,\1,p" | \ |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
16 head -1 |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
17 endef |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
18 |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
19 define $(PKG)_BUILD |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
20 mkdir '$(1)/.build' |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
21 cd '$(1)/.build' && PKG_CONFIG_PATH='$(HOST_LIBDIR)/pkgconfig' '$(1)/configure' \ |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
22 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
23 $(ENABLE_SHARED_OR_STATIC) \ |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
24 --prefix='$(HOST_PREFIX)' \ |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
25 && $(CONFIGURE_POST_HOOK) |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
26 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
27 $(MAKE) -C '$(1)/.build' -j 1 install |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
28 endef |