Mercurial > mxe-octave
annotate src/build-libtool.mk @ 4545:0e56fe2d2ef5
Makefile.in: add update-build-tools target
* Makefile.in: add update-build-tools target
* src/build-autoconf.mk, src/build-automake.mk,
src/build-bison.mk, src/build-gawk.mk,
src/build-gcc.mk, src/build-gettext.mk,
src/build-gperf.mk, src/build-m4.mk,
src/build-texinfo.mk, src/build-libtool.mk
: update PKG_UPDATE for getting latest version from gnu.org
* src/build-cmake.mk, src/build-flex.mk,
src/build-lzip.mk, src/build-pkg-config.mk,
src/pkg-config.mk, src/build-scons.mk
: add implemented PKG_UPDATE macro
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Thu, 23 Nov 2017 12:05:29 -0500 |
parents | 13be64f9f16d |
children | c2d59e7a4ad3 |
rev | line source |
---|---|
2971
7145a94e4f4e
build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
1 # This file is part of MXE. |
7145a94e4f4e
build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
2 # See index.html for further information. |
7145a94e4f4e
build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
3 |
7145a94e4f4e
build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
4 PKG := build-libtool |
7145a94e4f4e
build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
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:
3293
diff
changeset
|
6 $(PKG)_VERSION := 2.4.2 |
2971
7145a94e4f4e
build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
7 $(PKG)_CHECKSUM := 22b71a8b5ce3ad86e1094e7285981cae10e6ff88 |
7145a94e4f4e
build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
8 $(PKG)_SUBDIR := libtool-$($(PKG)_VERSION) |
7145a94e4f4e
build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
9 $(PKG)_FILE := libtool-$($(PKG)_VERSION).tar.gz |
7145a94e4f4e
build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
10 $(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/libtool/$($(PKG)_FILE) |
7145a94e4f4e
build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
11 $(PKG)_DEPS := |
7145a94e4f4e
build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
12 |
3121
21f598a028ec
[MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3012
diff
changeset
|
13 ifeq ($(MXE_SYSTEM),msvc) |
21f598a028ec
[MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3012
diff
changeset
|
14 $(PKG)_DEPS += build-msvctools |
21f598a028ec
[MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3012
diff
changeset
|
15 $(PKG)_CONFIGURE_OPTIONS := \ |
21f598a028ec
[MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3012
diff
changeset
|
16 CC='$(MXE_CC)' CXX='$(MXE_CXX)' F77='$(MXE_F77)' ac_cv_f77_compiler_gnu=no \ |
21f598a028ec
[MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3012
diff
changeset
|
17 FC='$(MXE_F77)' ac_cv_fc_compiler_gnu=no |
21f598a028ec
[MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3012
diff
changeset
|
18 else |
21f598a028ec
[MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3012
diff
changeset
|
19 $(PKG)_CONFIGURE_OPTIONS := |
21f598a028ec
[MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3012
diff
changeset
|
20 endif |
21f598a028ec
[MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3012
diff
changeset
|
21 |
2971
7145a94e4f4e
build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
22 define $(PKG)_UPDATE |
4545
0e56fe2d2ef5
Makefile.in: add update-build-tools target
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
23 $(WGET) -q -O- 'http://ftp.gnu.org/gnu/libtool/?C=M;O=D' | \ |
0e56fe2d2ef5
Makefile.in: add update-build-tools target
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
24 $(SED) -n 's,.*<a href="libtool-\([0-9\.]*\)\.tar.*,\1,p' | \ |
0e56fe2d2ef5
Makefile.in: add update-build-tools target
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
25 $(SORT) -V | \ |
0e56fe2d2ef5
Makefile.in: add update-build-tools target
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
26 tail -1 |
2971
7145a94e4f4e
build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
27 endef |
7145a94e4f4e
build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
28 |
7145a94e4f4e
build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
29 define $(PKG)_BUILD |
7145a94e4f4e
build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
30 mkdir '$(1).build' |
7145a94e4f4e
build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
31 cd '$(1).build' && '$(1)/configure' \ |
3121
21f598a028ec
[MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3012
diff
changeset
|
32 --prefix='$(BUILD_TOOLS_PREFIX)' \ |
21f598a028ec
[MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3012
diff
changeset
|
33 $($(PKG)_CONFIGURE_OPTIONS) |
2971
7145a94e4f4e
build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
34 $(MAKE) -C '$(1).build' -j '$(JOBS)' |
3121
21f598a028ec
[MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3012
diff
changeset
|
35 if test x$(MXE_SYSTEM) = xmsvc; then \ |
21f598a028ec
[MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3012
diff
changeset
|
36 cd '$(1).build' && $(CONFIGURE_POST_HOOK); \ |
21f598a028ec
[MSVC] enable ncurses compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3012
diff
changeset
|
37 fi |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3121
diff
changeset
|
38 $(MAKE) -C '$(1).build' -j 1 install DESTDIR='$(3)' |
2971
7145a94e4f4e
build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
39 endef |