Mercurial > mxe-octave
annotate src/icu4c.mk @ 5531:eae508c12529
Add build rule for build-octave (bug #49503).
* src/build-octave.mk: Add new build rule for build-octave which can be used for
cross-building binary packages that depend on Octave as a build tool.
* dist-files.mk: Add new file to list.
* index.html: Add new package to list.
* src/of-communications.mk, src/of-image.mk, src/of-mapping.mk,
src/of-optiminterp.mk, src/of-sparsersb.mk, src/of-statistics.mk,
src/of-windows.mk: Add optional dependency on build-octave.
* configure.ac: Add new configure switch "--disable-system-octave" that is
needed to build the build-octave package.
* Makefile.in: Add variable "USE_SYSTEM_OCTAVE". Exclude build-octave from the
default build tools and build it only if a package explicitly depends on it.
Display warning about missing native Octave version only if necessary.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Tue, 08 Sep 2020 23:04:38 +0200 |
parents | 5482351ddcc2 |
children | cd129f254ecf |
rev | line source |
---|---|
4524 | 1 PKG := icu4c |
2 $(PKG)_IGNORE := | |
5381
5482351ddcc2
* src/icu4c.mk: update to v67.1
John Donoghue <john.donoghue@ieee.org>
parents:
5351
diff
changeset
|
3 $(PKG)_VERSION := 67.1 |
5482351ddcc2
* src/icu4c.mk: update to v67.1
John Donoghue <john.donoghue@ieee.org>
parents:
5351
diff
changeset
|
4 $(PKG)_CHECKSUM := 6822a4a94324d1ba591b3e8ef084e4491af253c1 |
4524 | 5 $(PKG)_SUBDIR := icu |
6 $(PKG)_FILE := $(PKG)-$(subst .,_,$($(PKG)_VERSION))-src.tgz | |
5180 | 7 $(PKG)_URL := https://github.com/unicode-org/icu/releases/download/release-$(subst .,-,$($(PKG)_VERSION))/$($(PKG)_FILE) |
4524 | 8 $(PKG)_DEPS := |
9 | |
10 define $(PKG)_UPDATE | |
4891
a60cc99e743b
* src/icu4c.mk: update to v63.1, implement update rule
John Donoghue
parents:
4524
diff
changeset
|
11 $(WGET) -q -O- 'https://github.com/unicode-org/icu/tags' | \ |
a60cc99e743b
* src/icu4c.mk: update to v63.1, implement update rule
John Donoghue
parents:
4524
diff
changeset
|
12 $(SED) -n 's|.*releases/tag/release-\([0-9\-]*\).*|\1|p' | \ |
a60cc99e743b
* src/icu4c.mk: update to v63.1, implement update rule
John Donoghue
parents:
4524
diff
changeset
|
13 $(SED) 's|-|\.|g' | \ |
a60cc99e743b
* src/icu4c.mk: update to v63.1, implement update rule
John Donoghue
parents:
4524
diff
changeset
|
14 $(SORT) -V | \ |
a60cc99e743b
* src/icu4c.mk: update to v63.1, implement update rule
John Donoghue
parents:
4524
diff
changeset
|
15 tail -1 |
4524 | 16 endef |
17 | |
18 ifeq ($(MXE_NATIVE_BUILD),no) | |
19 define $(PKG)_BUILD | |
20 # build some native tools | |
21 mkdir '$(1).native' && cd '$(1).native' && '$(1)/source/configure' | |
22 $(MAKE) -C '$(1).native' -j '$(JOBS)' | |
23 | |
24 # build cross | |
25 mkdir '$(1).cross' && cd '$(1).cross' && '$(1)/source/configure' \ | |
26 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ | |
27 $(ENABLE_SHARED_OR_STATIC) \ | |
28 --prefix='$(HOST_PREFIX)' \ | |
29 --with-cross-build='$(1).native' \ | |
30 PKG_CONFIG='$(MXE_PKG_CONFIG)' \ | |
31 PKG_CONFIG_PATH=$($(PKG)_PKG_CONFIG_PATH) \ | |
4945
76828d146a8d
icu4c.mk: Don't link with msvcr100 or force --std=gnu++0x. Set CPPFLAGS, not CFLAGS.
John W. Eaton <jwe@octave.org>
parents:
4891
diff
changeset
|
32 CPPFLAGS='-DU_USING_ICU_NAMESPACE=0' |
4524 | 33 |
34 $(MAKE) -C '$(1).cross' -j '$(JOBS)' $(MXE_DISABLE_DOCS) $(MXE_DISABLE_PROGS) | |
35 $(MAKE) -C '$(1).cross' -j 1 install $(MXE_DISABLE_DOCS) $(MXE_DISABLE_PROGS) DESTDIR='$(3)' | |
36 $(INSTALL) -d '$(3)$(HOST_BINDIR)' | |
5381
5482351ddcc2
* src/icu4c.mk: update to v67.1
John Donoghue <john.donoghue@ieee.org>
parents:
5351
diff
changeset
|
37 #mv -fv $(3)$(HOST_LIBDIR)/icu*.dll '$(3)$(HOST_BINDIR)/' |
4524 | 38 $(INSTALL) -d '$(3)$(BUILD_TOOLS_PREFIX)/bin/' |
39 $(LN_SF) '$(HOST_BINDIR)/icu-config' '$(3)$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)icu-config' | |
40 endef | |
41 else | |
42 define $(PKG)_BUILD | |
43 mkdir '$(1).native' && cd '$(1).native' && '$(1)/source/configure' \ | |
44 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ | |
45 $(ENABLE_SHARED_OR_STATIC) \ | |
46 PKG_CONFIG='$(MXE_PKG_CONFIG)' \ | |
47 PKG_CONFIG_PATH="$(HOST_LIBDIR)/pkgconfig" \ | |
48 --prefix='$(HOST_PREFIX)' | |
49 $(MAKE) -C '$(1).native' -j '$(JOBS)' $(MXE_DISABLE_DOCS) $(MXE_DISABLE_PROGS) | |
50 $(MAKE) -C '$(1).native' -j 1 install $(MXE_DISABLE_DOCS) $(MXE_DISABLE_PROGS) | |
51 endef | |
52 endif | |
53 |