Mercurial > mxe-octave
annotate src/texinfo.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 | c021b4c0a32c |
children | ab197940fec3 |
rev | line source |
---|---|
2951
01a2b5484d88
Include texinfo as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
1 # This file is part of MXE. |
01a2b5484d88
Include texinfo as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
2 # See index.html for further information. |
01a2b5484d88
Include texinfo as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
3 |
01a2b5484d88
Include texinfo as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
4 PKG := texinfo |
01a2b5484d88
Include texinfo as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
5184 | 6 $(PKG)_VERSION := 6.7 |
7 $(PKG)_CHECKSUM := 3eb87fe3f4241ba4305255f8a47d867dbc4f96fc | |
4123 | 8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
3579 | 9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz |
2951
01a2b5484d88
Include texinfo as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
10 $(PKG)_URL := ftp://ftp.gnu.org/gnu/texinfo/$($(PKG)_FILE) |
2997 | 11 $(PKG)_DEPS := # libgnurx |
2951
01a2b5484d88
Include texinfo as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
12 |
3587 | 13 ifeq ($(MXE_SYSTEM),mingw) |
14 $(PKG)_DEPS += pcre | |
4123 | 15 $(PKG)_LIBS += LIBS='-lpcre -lpcreposix -lpthread' |
3587 | 16 endif |
17 | |
2951
01a2b5484d88
Include texinfo as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
18 define $(PKG)_UPDATE |
5143 | 19 $(WGET) -q -O- 'http://ftp.gnu.org/gnu/$(PKG)/?C=M;O=D' | \ |
20 $(SED) -n 's,.*<a href="$(PKG)-\([0-9][^"]*\)\.tar.*,\1,p' | \ | |
21 head -1 | |
2951
01a2b5484d88
Include texinfo as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
22 endef |
01a2b5484d88
Include texinfo as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
23 |
4677
feadde11e10f
build-texinfo, texinfo: use "#! /usr/bin/env perl" in scripts
John W. Eaton <jwe@octave.org>
parents:
4553
diff
changeset
|
24 ifeq ($(MXE_NATIVE_BUILD),yes) |
feadde11e10f
build-texinfo, texinfo: use "#! /usr/bin/env perl" in scripts
John W. Eaton <jwe@octave.org>
parents:
4553
diff
changeset
|
25 ## We already have texinfo from the build-texinfo package. |
feadde11e10f
build-texinfo, texinfo: use "#! /usr/bin/env perl" in scripts
John W. Eaton <jwe@octave.org>
parents:
4553
diff
changeset
|
26 define $(PKG)_BUILD |
feadde11e10f
build-texinfo, texinfo: use "#! /usr/bin/env perl" in scripts
John W. Eaton <jwe@octave.org>
parents:
4553
diff
changeset
|
27 endef |
feadde11e10f
build-texinfo, texinfo: use "#! /usr/bin/env perl" in scripts
John W. Eaton <jwe@octave.org>
parents:
4553
diff
changeset
|
28 else |
feadde11e10f
build-texinfo, texinfo: use "#! /usr/bin/env perl" in scripts
John W. Eaton <jwe@octave.org>
parents:
4553
diff
changeset
|
29 define $(PKG)_BUILD |
3475 | 30 mkdir '$(1).build' |
31 cd '$(1).build' && '$(1)/configure' \ | |
2997 | 32 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
33 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
3587 | 34 --prefix='$(HOST_PREFIX)' $($(PKG)_LIBS) |
2951
01a2b5484d88
Include texinfo as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
35 |
3587 | 36 ## All we need for Octave is makeinfo |
3579 | 37 $(MAKE) -C '$(1).build/gnulib/lib' -j '$(JOBS)' |
4123 | 38 $(MAKE) -C '$(1).build/util' -j '$(JOBS)' |
39 $(MAKE) -C '$(1).build/tp' -j '$(JOBS)' | |
4677
feadde11e10f
build-texinfo, texinfo: use "#! /usr/bin/env perl" in scripts
John W. Eaton <jwe@octave.org>
parents:
4553
diff
changeset
|
40 |
feadde11e10f
build-texinfo, texinfo: use "#! /usr/bin/env perl" in scripts
John W. Eaton <jwe@octave.org>
parents:
4553
diff
changeset
|
41 $(SED) -i '1 s|^.*$$|#! /usr/bin/env perl|' '$(1).build/tp/texi2any' '$(1).build/util/txixml2texi' |
feadde11e10f
build-texinfo, texinfo: use "#! /usr/bin/env perl" in scripts
John W. Eaton <jwe@octave.org>
parents:
4553
diff
changeset
|
42 |
4123 | 43 $(MAKE) -C '$(1).build/tp' -j 1 install DESTDIR='$(3)' |
44 $(MAKE) -C '$(1).build/util' -j 1 install DESTDIR='$(3)' | |
3587 | 45 |
46 # octave-cli needs info to display help | |
3609
360eff7d9c06
texinfo: compile native info when native target.
John Donoghue
parents:
3603
diff
changeset
|
47 # for cross build, need build native tools in order to build info |
4840
21e184cc4fd7
* src/texinfo.mk: Dont install own info.exe when using msys2 (Bug #54604)
John Donoghue
parents:
4677
diff
changeset
|
48 # for cross build that will use msys2, we do not need info as wil use |
21e184cc4fd7
* src/texinfo.mk: Dont install own info.exe when using msys2 (Bug #54604)
John Donoghue
parents:
4677
diff
changeset
|
49 # the msys2 version |
3609
360eff7d9c06
texinfo: compile native info when native target.
John Donoghue
parents:
3603
diff
changeset
|
50 if [ "x$(MXE_NATIVE_BUILD)" = "xyes" ]; then \ |
360eff7d9c06
texinfo: compile native info when native target.
John Donoghue
parents:
3603
diff
changeset
|
51 $(MAKE) -C '$(1).build/info' -j '$(JOBS)'; \ |
360eff7d9c06
texinfo: compile native info when native target.
John Donoghue
parents:
3603
diff
changeset
|
52 $(MAKE) -C '$(1).build/info' -j 1 install DESTDIR='$(3)'; \ |
4840
21e184cc4fd7
* src/texinfo.mk: Dont install own info.exe when using msys2 (Bug #54604)
John Donoghue
parents:
4677
diff
changeset
|
53 elif [ "x$(USE_MSYS2)" = "xno" ]; then \ |
3609
360eff7d9c06
texinfo: compile native info when native target.
John Donoghue
parents:
3603
diff
changeset
|
54 $(MAKE) -C '$(1).build/tools/gnulib/lib' -j $(JOBS); \ |
360eff7d9c06
texinfo: compile native info when native target.
John Donoghue
parents:
3603
diff
changeset
|
55 $(MAKE) -C '$(1).build/tools/info' -j $(JOBS) makedoc; \ |
360eff7d9c06
texinfo: compile native info when native target.
John Donoghue
parents:
3603
diff
changeset
|
56 $(MAKE) -C '$(1).build/info' -j 1 funs.h; \ |
360eff7d9c06
texinfo: compile native info when native target.
John Donoghue
parents:
3603
diff
changeset
|
57 $(MAKE) -C '$(1).build/info' -j '$(JOBS)' ginfo.exe; \ |
360eff7d9c06
texinfo: compile native info when native target.
John Donoghue
parents:
3603
diff
changeset
|
58 $(INSTALL) '$(1).build/info/ginfo.exe' '$(3)$(HOST_BINDIR)/info.exe'; \ |
360eff7d9c06
texinfo: compile native info when native target.
John Donoghue
parents:
3603
diff
changeset
|
59 fi |
4677
feadde11e10f
build-texinfo, texinfo: use "#! /usr/bin/env perl" in scripts
John W. Eaton <jwe@octave.org>
parents:
4553
diff
changeset
|
60 endef |
feadde11e10f
build-texinfo, texinfo: use "#! /usr/bin/env perl" in scripts
John W. Eaton <jwe@octave.org>
parents:
4553
diff
changeset
|
61 endif |