Mercurial > mxe-octave
annotate src/readline.mk @ 3725:2acaa9943159
qscintilla: update 2.8.4
* src/qscintilla.mk: update to version and checksum for 2.8.4
author | John Donoghue |
---|---|
date | Mon, 20 Oct 2014 11:01:00 -0400 |
parents | 7af3dec1ab50 |
children | c1c5dd2cc2f2 |
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 |
3652
7af3dec1ab50
link readline with ncurses for native builds
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
16 ifeq ($(MXE_NATIVE_BUILD),yes) |
7af3dec1ab50
link readline with ncurses for native builds
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
17 $(PKG)_CONFIGURE_OPTIONS := --with-curses bash_cv_termcap_lib="-lncurses" |
7af3dec1ab50
link readline with ncurses for native builds
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
18 $(PKG)_MAKE_OPTIONS := SHLIB_LIBS="-lncurses" |
7af3dec1ab50
link readline with ncurses for native builds
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
19 endif |
2997 | 20 endif |
21 | |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3038
diff
changeset
|
22 $(PKG)_DEPS := $($(PKG)_TERMCAP_LIB) |
330 | 23 |
24 define $(PKG)_UPDATE | |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2365
diff
changeset
|
25 $(WGET) -q -O- 'http://tiswww.case.edu/php/chet/readline/rltop.html' | \ |
330 | 26 grep 'readline-' | \ |
27 $(SED) -n 's,.*readline-\([0-9][^>]*\)\.tar.*,\1,p' | \ | |
28 head -1 | |
29 endef | |
30 | |
31 define $(PKG)_BUILD | |
3122
c2864508b524
[MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
32 if test x$(MXE_SYSTEM) = xmsvc; then \ |
c2864508b524
[MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
33 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
|
34 $(SED) -i -e 's/@@LIBRARY_PREFIX@@/$(LIBRARY_PREFIX)/g' \ |
c2864508b524
[MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
35 -e 's/@@LIBRARY_SUFFIX@@/$(LIBRARY_SUFFIX)/g' $$f; \ |
c2864508b524
[MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
36 done; \ |
c2864508b524
[MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
37 fi |
330 | 38 cd '$(1)' && ./configure \ |
2997 | 39 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
40 $(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
|
41 $(ENABLE_SHARED_OR_STATIC) \ |
3652
7af3dec1ab50
link readline with ncurses for native builds
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
42 $($(PKG)_CONFIGURE_OPTIONS) \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2997
diff
changeset
|
43 --prefix='$(HOST_PREFIX)' \ |
332
0eb8062e5797
enable multibyte characters in package readline
Volker Grabsch <vog@notjusthosting.com>
parents:
331
diff
changeset
|
44 --enable-multibyte \ |
2904
1122ae1e98b6
New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
2864
diff
changeset
|
45 --without-purify |
3652
7af3dec1ab50
link readline with ncurses for native builds
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
46 $(MAKE) -C '$(1)' -j '$(JOBS)' $($(PKG)_MAKE_OPTIONS) install DESTDIR='$(3)' |
330 | 47 endef |