Mercurial > mxe-octave
annotate src/libf2c.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 | 13be64f9f16d |
children |
rev | line source |
---|---|
2497
3dfd08abb308
new packages: cminpack levmar libf2c
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
1 # This file is part of MXE. |
3dfd08abb308
new packages: cminpack levmar libf2c
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
2 # See index.html for further information. |
3dfd08abb308
new packages: cminpack levmar libf2c
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
3 |
3dfd08abb308
new packages: cminpack levmar libf2c
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
4 PKG := libf2c |
3dfd08abb308
new packages: cminpack levmar libf2c
Alois Schlögl <alois.schloegl@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:
3048
diff
changeset
|
6 $(PKG)_VERSION := 1 |
2497
3dfd08abb308
new packages: cminpack levmar libf2c
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
7 $(PKG)_CHECKSUM := f71066b41695738dec2261de71eaf02a1aaffe8b |
2498
979decb2b36d
package libf2c: remove runtime test and unnecessary makefile options
Tony Theodore <tonyt@logyst.com>
parents:
2497
diff
changeset
|
8 $(PKG)_SUBDIR := |
2497
3dfd08abb308
new packages: cminpack levmar libf2c
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
9 $(PKG)_FILE := $(PKG).zip |
3dfd08abb308
new packages: cminpack levmar libf2c
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
10 $(PKG)_URL := http://www.netlib.org/f2c/$($(PKG)_FILE) |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
11 $(PKG)_DEPS := |
2497
3dfd08abb308
new packages: cminpack levmar libf2c
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
12 |
3dfd08abb308
new packages: cminpack levmar libf2c
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
13 define $(PKG)_UPDATE |
2498
979decb2b36d
package libf2c: remove runtime test and unnecessary makefile options
Tony Theodore <tonyt@logyst.com>
parents:
2497
diff
changeset
|
14 echo 1 |
2497
3dfd08abb308
new packages: cminpack levmar libf2c
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
15 endef |
3dfd08abb308
new packages: cminpack levmar libf2c
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
16 |
3dfd08abb308
new packages: cminpack levmar libf2c
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
17 define $(PKG)_BUILD |
3dfd08abb308
new packages: cminpack levmar libf2c
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
18 $(MAKE) -C '$(1)' -j '$(JOBS)' -f makefile.u \ |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
19 CC=$(MXE_CC) \ |
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
20 AR=$(MXE_AR) \ |
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
21 LD=$(MXE_LD) \ |
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
22 RANLIB=$(MXE_RANLIB) \ |
2498
979decb2b36d
package libf2c: remove runtime test and unnecessary makefile options
Tony Theodore <tonyt@logyst.com>
parents:
2497
diff
changeset
|
23 CFLAGS='-O -DUSE_CLOCK' |
3014
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
24 $(INSTALL) -m644 '$(1)/libf2c.a' '$(HOST_LIBDIR)' |
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
25 $(INSTALL) -m644 '$(1)/f2c.h' '$(HOST_INCDIR)' |
2497
3dfd08abb308
new packages: cminpack levmar libf2c
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
26 endef |