Mercurial > mxe-octave
annotate src/readline.mk @ 3480:13be64f9f16d
move version info from index.html to src/*.mk files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 31 Jan 2014 16:04:01 -0500 |
parents | 77edea1af4f1 |
children | 7af3dec1ab50 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
1588
diff
changeset
|
1 # This file is part of MXE. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2349
diff
changeset
|
2 # See index.html for further information. |
414
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
332
diff
changeset
|
3 |
330 | 4 PKG := readline |
448
e9afec55fd6b
improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents:
417
diff
changeset
|
5 $(PKG)_IGNORE := |
3480
13be64f9f16d
move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents:
3339
diff
changeset
|
6 $(PKG)_VERSION := 6.2 |
1588 | 7 $(PKG)_CHECKSUM := a9761cd9c3da485eb354175fcc2fe35856bc43ac |
330 | 8 $(PKG)_SUBDIR := readline-$($(PKG)_VERSION) |
9 $(PKG)_FILE := readline-$($(PKG)_VERSION).tar.gz | |
10 $(PKG)_URL := http://ftp.gnu.org/gnu/readline/$($(PKG)_FILE) | |
2997 | 11 |
3038
b39961d2ce59
readline: use termcap for mingw native or cross builds
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
12 ifeq ($(MXE_SYSTEM),mingw) |
b39961d2ce59
readline: use termcap for mingw native or cross builds
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
13 $(PKG)_TERMCAP_LIB := termcap |
2997 | 14 else |
3038
b39961d2ce59
readline: use termcap for mingw native or cross builds
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
15 $(PKG)_TERMCAP_LIB := ncurses |
2997 | 16 endif |
17 | |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3038
diff
changeset
|
18 $(PKG)_DEPS := $($(PKG)_TERMCAP_LIB) |
330 | 19 |
20 define $(PKG)_UPDATE | |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2365
diff
changeset
|
21 $(WGET) -q -O- 'http://tiswww.case.edu/php/chet/readline/rltop.html' | \ |
330 | 22 grep 'readline-' | \ |
23 $(SED) -n 's,.*readline-\([0-9][^>]*\)\.tar.*,\1,p' | \ | |
24 head -1 | |
25 endef | |
26 | |
27 define $(PKG)_BUILD | |
3122
c2864508b524
[MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
28 if test x$(MXE_SYSTEM) = xmsvc; then \ |
c2864508b524
[MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
29 for f in '$(1)/support/shlib-install' '$(1)/support/shobj-conf'; do \ |
c2864508b524
[MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
30 $(SED) -i -e 's/@@LIBRARY_PREFIX@@/$(LIBRARY_PREFIX)/g' \ |
c2864508b524
[MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
31 -e 's/@@LIBRARY_SUFFIX@@/$(LIBRARY_SUFFIX)/g' $$f; \ |
c2864508b524
[MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
32 done; \ |
c2864508b524
[MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
33 fi |
330 | 34 cd '$(1)' && ./configure \ |
2997 | 35 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
36 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2525
diff
changeset
|
37 $(ENABLE_SHARED_OR_STATIC) \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2997
diff
changeset
|
38 --prefix='$(HOST_PREFIX)' \ |
332
0eb8062e5797
enable multibyte characters in package readline
Volker Grabsch <vog@notjusthosting.com>
parents:
331
diff
changeset
|
39 --enable-multibyte \ |
2904
1122ae1e98b6
New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
2864
diff
changeset
|
40 --without-purify |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3122
diff
changeset
|
41 $(MAKE) -C '$(1)' -j '$(JOBS)' install DESTDIR='$(3)' |
330 | 42 endef |