Mercurial > hg > mxe-octave-anirudha
annotate src/gcab.mk @ 3188:4d4f59f1c5e6
Include Octave Forge 'geometry' package
author | Anirudha Bose <ani07nov@gmail.com> |
---|---|
date | Sun, 28 Jul 2013 00:05:56 +0530 |
parents | 5481abb52912 |
children |
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 := |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
6 $(PKG)_CHECKSUM := d81dfe35125e611e3a94c0d4def37ebf62b9187c |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
9 $(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/$(PKG)/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE) |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
10 $(PKG)_DEPS := glib zlib |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
11 |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
12 define $(PKG)_UPDATE |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
13 $(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
|
14 $(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
|
15 head -1 |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
16 endef |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
17 |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
18 define $(PKG)_BUILD |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
19 mkdir '$(1)/.build' |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
20 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
|
21 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
22 $(ENABLE_SHARED_OR_STATIC) \ |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
23 --prefix='$(HOST_PREFIX)' \ |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
24 && $(CONFIGURE_POST_HOOK) |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
25 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
26 $(MAKE) -C '$(1)/.build' -j 1 install |
5481abb52912
Add gcab (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
27 endef |