annotate src/texinfo.mk @ 4677:feadde11e10f

build-texinfo, texinfo: use "#! /usr/bin/env perl" in scripts texinfo: skip for native builds
author John W. Eaton <jwe@octave.org>
date Fri, 20 Apr 2018 13:51:41 -0400
parents b25cf2abab4a
children 21e184cc4fd7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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 :=
4553
b25cf2abab4a texinfo: update to v6.5
John D
parents: 4283
diff changeset
6 $(PKG)_VERSION := 6.5
b25cf2abab4a texinfo: update to v6.5
John D
parents: 4283
diff changeset
7 $(PKG)_CHECKSUM := 0f8e69781e28ec102b6a9487b093c440f5bb8545
4123
28a83a566666 texinfo: update to v6.0 (Bug #46637)
John Donoghue
parents: 3609
diff changeset
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
3579
63798d0032c2 texinfo: revert back to 4.13a
John Donoghue
parents: 3578
diff changeset
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
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2951
diff changeset
11 $(PKG)_DEPS := # libgnurx
2951
01a2b5484d88 Include texinfo as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12
3587
4e90544559a3 texinfo: update to install info.exe
John Donoghue
parents: 3579
diff changeset
13 ifeq ($(MXE_SYSTEM),mingw)
4e90544559a3 texinfo: update to install info.exe
John Donoghue
parents: 3579
diff changeset
14 $(PKG)_DEPS += pcre
4123
28a83a566666 texinfo: update to v6.0 (Bug #46637)
John Donoghue
parents: 3609
diff changeset
15 $(PKG)_LIBS += LIBS='-lpcre -lpcreposix -lpthread'
3587
4e90544559a3 texinfo: update to install info.exe
John Donoghue
parents: 3579
diff changeset
16 endif
4e90544559a3 texinfo: update to install info.exe
John Donoghue
parents: 3579
diff changeset
17
2951
01a2b5484d88 Include texinfo as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 define $(PKG)_UPDATE
01a2b5484d88 Include texinfo as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19 echo 'Warning: Updates are temporarily disabled for package texinfo.' >&2;
01a2b5484d88 Include texinfo as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20 echo $(texinfo_VERSION)
01a2b5484d88 Include texinfo as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21 endef
01a2b5484d88 Include texinfo as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22
4677
feadde11e10f build-texinfo, texinfo: use "#! /usr/bin/env perl" in scripts
John W. Eaton <jwe@octave.org>
parents: 4553
diff changeset
23 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
24 ## 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
25 define $(PKG)_BUILD
feadde11e10f build-texinfo, texinfo: use "#! /usr/bin/env perl" in scripts
John W. Eaton <jwe@octave.org>
parents: 4553
diff changeset
26 endef
feadde11e10f build-texinfo, texinfo: use "#! /usr/bin/env perl" in scripts
John W. Eaton <jwe@octave.org>
parents: 4553
diff changeset
27 else
feadde11e10f build-texinfo, texinfo: use "#! /usr/bin/env perl" in scripts
John W. Eaton <jwe@octave.org>
parents: 4553
diff changeset
28 define $(PKG)_BUILD
3475
81544b3fe0ca update to texinfo 5.2
John W. Eaton <jwe@octave.org>
parents: 3293
diff changeset
29 mkdir '$(1).build'
81544b3fe0ca update to texinfo 5.2
John W. Eaton <jwe@octave.org>
parents: 3293
diff changeset
30 cd '$(1).build' && '$(1)/configure' \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2951
diff changeset
31 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
32 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
3587
4e90544559a3 texinfo: update to install info.exe
John Donoghue
parents: 3579
diff changeset
33 --prefix='$(HOST_PREFIX)' $($(PKG)_LIBS)
2951
01a2b5484d88 Include texinfo as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
34
3587
4e90544559a3 texinfo: update to install info.exe
John Donoghue
parents: 3579
diff changeset
35 ## All we need for Octave is makeinfo
3579
63798d0032c2 texinfo: revert back to 4.13a
John Donoghue
parents: 3578
diff changeset
36 $(MAKE) -C '$(1).build/gnulib/lib' -j '$(JOBS)'
4123
28a83a566666 texinfo: update to v6.0 (Bug #46637)
John Donoghue
parents: 3609
diff changeset
37 $(MAKE) -C '$(1).build/util' -j '$(JOBS)'
28a83a566666 texinfo: update to v6.0 (Bug #46637)
John Donoghue
parents: 3609
diff changeset
38 $(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
39
feadde11e10f build-texinfo, texinfo: use "#! /usr/bin/env perl" in scripts
John W. Eaton <jwe@octave.org>
parents: 4553
diff changeset
40 $(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
41
4123
28a83a566666 texinfo: update to v6.0 (Bug #46637)
John Donoghue
parents: 3609
diff changeset
42 $(MAKE) -C '$(1).build/tp' -j 1 install DESTDIR='$(3)'
28a83a566666 texinfo: update to v6.0 (Bug #46637)
John Donoghue
parents: 3609
diff changeset
43 $(MAKE) -C '$(1).build/util' -j 1 install DESTDIR='$(3)'
3587
4e90544559a3 texinfo: update to install info.exe
John Donoghue
parents: 3579
diff changeset
44
4e90544559a3 texinfo: update to install info.exe
John Donoghue
parents: 3579
diff changeset
45 # octave-cli needs info to display help
3609
360eff7d9c06 texinfo: compile native info when native target.
John Donoghue
parents: 3603
diff changeset
46 # for cross build, need build native tools in order to build info
360eff7d9c06 texinfo: compile native info when native target.
John Donoghue
parents: 3603
diff changeset
47 if [ "x$(MXE_NATIVE_BUILD)" = "xyes" ]; then \
360eff7d9c06 texinfo: compile native info when native target.
John Donoghue
parents: 3603
diff changeset
48 $(MAKE) -C '$(1).build/info' -j '$(JOBS)'; \
360eff7d9c06 texinfo: compile native info when native target.
John Donoghue
parents: 3603
diff changeset
49 $(MAKE) -C '$(1).build/info' -j 1 install DESTDIR='$(3)'; \
360eff7d9c06 texinfo: compile native info when native target.
John Donoghue
parents: 3603
diff changeset
50 else \
360eff7d9c06 texinfo: compile native info when native target.
John Donoghue
parents: 3603
diff changeset
51 $(MAKE) -C '$(1).build/tools/gnulib/lib' -j $(JOBS); \
360eff7d9c06 texinfo: compile native info when native target.
John Donoghue
parents: 3603
diff changeset
52 $(MAKE) -C '$(1).build/tools/info' -j $(JOBS) makedoc; \
360eff7d9c06 texinfo: compile native info when native target.
John Donoghue
parents: 3603
diff changeset
53 $(MAKE) -C '$(1).build/info' -j 1 funs.h; \
360eff7d9c06 texinfo: compile native info when native target.
John Donoghue
parents: 3603
diff changeset
54 $(MAKE) -C '$(1).build/info' -j '$(JOBS)' ginfo.exe; \
360eff7d9c06 texinfo: compile native info when native target.
John Donoghue
parents: 3603
diff changeset
55 $(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
56 fi
4677
feadde11e10f build-texinfo, texinfo: use "#! /usr/bin/env perl" in scripts
John W. Eaton <jwe@octave.org>
parents: 4553
diff changeset
57 endef
feadde11e10f build-texinfo, texinfo: use "#! /usr/bin/env perl" in scripts
John W. Eaton <jwe@octave.org>
parents: 4553
diff changeset
58 endif