Mercurial > mxe-octave
annotate src/texinfo.mk @ 3609:360eff7d9c06
texinfo: compile native info when native target.
* src/mingw-texinfo-1-fixes.patch: define sleep in mingw.
* src/texinfo.mk: only build tools libs for cross build ginfo when doing cross build.
author | John Donoghue |
---|---|
date | Mon, 09 Jun 2014 08:11:22 -0400 |
parents | 1dbcd8e81b6a |
children | 28a83a566666 |
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 := |
3579 | 6 $(PKG)_VERSION := 4.13a |
7 $(PKG)_CHECKSUM := a1533cf8e03ea4fa6c443b73f4c85e4da04dead0 | |
8 $(PKG)_SUBDIR := $(PKG)-4.13 | |
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 | |
15 $(PKG)_LIBS += LIBS='-lpcre -lpcreposix' | |
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 |
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 |
01a2b5484d88
Include texinfo as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
23 define $(PKG)_BUILD |
3475 | 24 mkdir '$(1).build' |
25 cd '$(1).build' && '$(1)/configure' \ | |
2997 | 26 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
27 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
3587 | 28 --prefix='$(HOST_PREFIX)' $($(PKG)_LIBS) |
2951
01a2b5484d88
Include texinfo as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
29 |
3587 | 30 ## All we need for Octave is makeinfo |
3579 | 31 $(MAKE) -C '$(1).build/lib' -j '$(JOBS)' |
32 $(MAKE) -C '$(1).build/gnulib/lib' -j '$(JOBS)' | |
33 $(MAKE) -C '$(1).build/makeinfo' -j '$(JOBS)' | |
34 $(MAKE) -C '$(1).build/makeinfo' -j 1 install DESTDIR='$(3)' | |
3587 | 35 |
36 # octave-cli needs info to display help | |
3609
360eff7d9c06
texinfo: compile native info when native target.
John Donoghue
parents:
3603
diff
changeset
|
37 # 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
|
38 if [ "x$(MXE_NATIVE_BUILD)" = "xyes" ]; then \ |
360eff7d9c06
texinfo: compile native info when native target.
John Donoghue
parents:
3603
diff
changeset
|
39 $(MAKE) -C '$(1).build/info' -j '$(JOBS)'; \ |
360eff7d9c06
texinfo: compile native info when native target.
John Donoghue
parents:
3603
diff
changeset
|
40 $(MAKE) -C '$(1).build/info' -j 1 install DESTDIR='$(3)'; \ |
360eff7d9c06
texinfo: compile native info when native target.
John Donoghue
parents:
3603
diff
changeset
|
41 else \ |
360eff7d9c06
texinfo: compile native info when native target.
John Donoghue
parents:
3603
diff
changeset
|
42 $(MAKE) -C '$(1).build/tools/lib' -j $(JOBS); \ |
360eff7d9c06
texinfo: compile native info when native target.
John Donoghue
parents:
3603
diff
changeset
|
43 $(MAKE) -C '$(1).build/tools/gnulib/lib' -j $(JOBS); \ |
360eff7d9c06
texinfo: compile native info when native target.
John Donoghue
parents:
3603
diff
changeset
|
44 $(MAKE) -C '$(1).build/tools/info' -j $(JOBS) makedoc; \ |
360eff7d9c06
texinfo: compile native info when native target.
John Donoghue
parents:
3603
diff
changeset
|
45 $(MAKE) -C '$(1).build/info' -j 1 funs.h; \ |
360eff7d9c06
texinfo: compile native info when native target.
John Donoghue
parents:
3603
diff
changeset
|
46 $(MAKE) -C '$(1).build/info' -j '$(JOBS)' ginfo.exe; \ |
360eff7d9c06
texinfo: compile native info when native target.
John Donoghue
parents:
3603
diff
changeset
|
47 $(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
|
48 fi |
2951
01a2b5484d88
Include texinfo as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
49 endef |