annotate src/readline.mk @ 2864:071f6f3b11fa

Link readline with ncurses instead of pdcurses.
author John W. Eaton <jwe@octave.org>
date Fri, 16 Nov 2012 12:54:33 -0500
parents 94c2c61023a0
children 1122ae1e98b6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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 :=
1588
9f84b0698dcd update package readline
Mark Brand <mabrand@mabrand.nl>
parents: 759
diff changeset
6 $(PKG)_CHECKSUM := a9761cd9c3da485eb354175fcc2fe35856bc43ac
330
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 $(PKG)_SUBDIR := readline-$($(PKG)_VERSION)
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_FILE := readline-$($(PKG)_VERSION).tar.gz
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_URL := http://ftp.gnu.org/gnu/readline/$($(PKG)_FILE)
2864
071f6f3b11fa Link readline with ncurses instead of pdcurses.
John W. Eaton <jwe@octave.org>
parents: 2857
diff changeset
10 $(PKG)_DEPS := gcc ncurses
330
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
13 $(WGET) -q -O- 'http://tiswww.case.edu/php/chet/readline/rltop.html' | \
330
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 grep 'readline-' | \
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 $(SED) -n 's,.*readline-\([0-9][^>]*\)\.tar.*,\1,p' | \
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 head -1
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 endef
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 define $(PKG)_BUILD
759
bf4bcb3370fa changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 714
diff changeset
20 $(SED) -i 's,^ *case SIGQUIT:.*,,' '$(1)/signals.c'
bf4bcb3370fa changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 714
diff changeset
21 $(SED) -i 's,^ *case SIGTSTP:.*,,' '$(1)/signals.c'
330
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 cd '$(1)' && ./configure \
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 --host='$(TARGET)' \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2525
diff changeset
24 $(ENABLE_SHARED_OR_STATIC) \
330
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 --prefix='$(PREFIX)/$(TARGET)' \
332
0eb8062e5797 enable multibyte characters in package readline
Volker Grabsch <vog@notjusthosting.com>
parents: 331
diff changeset
26 --enable-multibyte \
330
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 --without-purify \
2857
94c2c61023a0 Install pdcurses library as libcurses. Simplify readline .mk file.
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
28 --with-curses
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2525
diff changeset
29 $(MAKE) -C '$(1)' -j '$(JOBS)' install
330
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 endef