Mercurial > mxe-octave
annotate src/of-communications.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 | 98bcc037fad7 |
children | 6dcbce950b96 |
rev | line source |
---|---|
2958
04791633efbc
Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
1 # This file is part of MXE. |
04791633efbc
Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
2 # See index.html for further information. |
04791633efbc
Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
3 |
04791633efbc
Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
4 PKG := of-communications |
04791633efbc
Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
5256
aad0cc165a27
of-communications: update to v1.2.2
John Donoghue <john.donoghue@ieee.org>
parents:
4543
diff
changeset
|
6 $(PKG)_VERSION := 1.2.2 |
aad0cc165a27
of-communications: update to v1.2.2
John Donoghue <john.donoghue@ieee.org>
parents:
4543
diff
changeset
|
7 $(PKG)_CHECKSUM := 90ebf5cd84ba8df1f8c14241598d0baedc39f371 |
5531
eae508c12529
Add build rule for build-octave (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5430
diff
changeset
|
8 $(PKG)_REMOTE_SUBDIR := |
3873 | 9 $(PKG)_SUBDIR := communications-$($(PKG)_VERSION) |
2958
04791633efbc
Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
10 $(PKG)_FILE := communications-$($(PKG)_VERSION).tar.gz |
04791633efbc
Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
11 $(PKG)_URL := '$(OCTAVE_FORGE_BASE_URL)/$($(PKG)_FILE)/download' |
3345
290e049823c9
Octave-forge pks: support file listing and pre-compilation (for MSVC).
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3012
diff
changeset
|
12 $(PKG)_DEPS := of-signal |
2958
04791633efbc
Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
13 |
4449
1933a9113e65
of-*: add octave as a dependancy to the of packages is binary enable is set (Bug #46235)
John D
parents:
4020
diff
changeset
|
14 ifeq ($(ENABLE_BINARY_PACKAGES),yes) |
1933a9113e65
of-*: add octave as a dependancy to the of packages is binary enable is set (Bug #46235)
John D
parents:
4020
diff
changeset
|
15 $(PKG)_DEPS += $(OCTAVE_TARGET) |
5531
eae508c12529
Add build rule for build-octave (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5430
diff
changeset
|
16 ifeq ($(MXE_NATIVE_BUILD),no) |
eae508c12529
Add build rule for build-octave (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5430
diff
changeset
|
17 ifeq ($(USE_SYSTEM_OCTAVE),no) |
eae508c12529
Add build rule for build-octave (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5430
diff
changeset
|
18 # Remove this when package builds without calling Octave |
eae508c12529
Add build rule for build-octave (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5430
diff
changeset
|
19 $(PKG)_DEPS += build-octave |
eae508c12529
Add build rule for build-octave (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5430
diff
changeset
|
20 endif |
eae508c12529
Add build rule for build-octave (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5430
diff
changeset
|
21 endif |
4449
1933a9113e65
of-*: add octave as a dependancy to the of packages is binary enable is set (Bug #46235)
John D
parents:
4020
diff
changeset
|
22 endif |
1933a9113e65
of-*: add octave as a dependancy to the of packages is binary enable is set (Bug #46235)
John D
parents:
4020
diff
changeset
|
23 |
3873 | 24 $(PKG)_OPTIONS := comm_cv_hdf5_cppflags='-I$(HOST_INCDIR)' comm_cv_hdf5_ldflags='-L$(HOST_LIBDIR)' comm_cv_hdf5_libs=-lhdf5 |
25 | |
2958
04791633efbc
Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
26 define $(PKG)_UPDATE |
4543
7d1e45c2f175
update: more PKG_UPDATE updates, added update-octaveforge target
John D
parents:
4449
diff
changeset
|
27 $(OCTAVE_FORGE_PKG_UPDATE) |
2958
04791633efbc
Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
28 endef |
04791633efbc
Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
29 |
04791633efbc
Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
30 define $(PKG)_BUILD |
5430
98bcc037fad7
* src/hdf5.mk: Update version to 1.12.0. Use cmake for Windows cross targets.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5256
diff
changeset
|
31 cd $(1)/src && ./configure \ |
98bcc037fad7
* src/hdf5.mk: Update version to 1.12.0. Use cmake for Windows cross targets.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5256
diff
changeset
|
32 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
98bcc037fad7
* src/hdf5.mk: Update version to 1.12.0. Use cmake for Windows cross targets.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5256
diff
changeset
|
33 PKG_CONFIG='$(MXE_PKG_CONFIG)' \ |
98bcc037fad7
* src/hdf5.mk: Update version to 1.12.0. Use cmake for Windows cross targets.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5256
diff
changeset
|
34 PKG_CONFIG_PATH='$(HOST_LIBDIR)/pkgconfig' |
3873 | 35 $(call OCTAVE_FORGE_PKG_BUILD,$(1),$(2),$(3),$($(PKG)_OPTIONS)) |
2958
04791633efbc
Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
36 endef |