Mercurial > mxe-octave
annotate src/itstool.mk @ 3456:3124eb50a04b
Add msys-zip package
author | Philip Nienhuis <prnienhuis@users.sf.net> |
---|---|
date | Sat, 25 Jan 2014 23:04:52 +0100 |
parents | 90341dd4590e |
children | 13be64f9f16d |
rev | line source |
---|---|
3179
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
1 # This file is part of MXE. |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
2 # See index.html for further information. |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
3 |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
4 PKG := itstool |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
6 $(PKG)_CHECKSUM := dc6b766c2acec32d3c5d016b0a33e9268d274f63 |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
7 $(PKG)_SUBDIR := itstool-$($(PKG)_VERSION) |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
8 $(PKG)_FILE := itstool-$($(PKG)_VERSION).tar.bz2 |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
9 $(PKG)_URL := http://files.itstool.org/itstool/$(PKG)-$($(PKG)_VERSION).tar.bz2 |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
10 $(PKG)_DEPS := |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
11 |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
12 define $(PKG)_UPDATE |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
13 $(WGET) -q -O- 'http://itstool.org/download/' | \ |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
14 $(SED) -n 's,.*itstool-\([0-9][^"]*\)\.tar.*,\1,p' | \ |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
15 head -1 |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
16 endef |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
17 |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
18 ifeq ($(MXE_SYSTEM),msvc) |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
19 $(PKG)_PREFIX := $(HOST_PREFIX_NATIVE) |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
20 else |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
21 $(PKG)_PREFIX := $(HOST_PREFIX) |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
22 endif |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
23 |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
24 define $(PKG)_BUILD |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
25 cd '$(1)' && ./configure \ |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
26 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
27 --prefix='$($(PKG)_PREFIX)' |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
28 $(MAKE) -C '$(1)' -j '$(JOBS)' install |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
29 endef |