annotate src/readline.mk @ 759:bf4bcb3370fa

changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
author Volker Grabsch <vog@notjusthosting.com>
date Tue, 16 Feb 2010 04:12:53 +0100
parents 29f1ba4559ae
children 9f84b0698dcd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
641
dab071eac9c0 simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents: 629
diff changeset
1 # This file is part of mingw-cross-env.
714
29f1ba4559ae point consequently to "doc/index.html" instead of "doc/index.html or doc/README"
Volker Grabsch <vog@notjusthosting.com>
parents: 641
diff changeset
2 # See doc/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 # Readline
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 PKG := readline
448
e9afec55fd6b improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents: 417
diff changeset
6 $(PKG)_IGNORE :=
629
4007a1da5183 update version of packages fltk and readline
Volker Grabsch <vog@notjusthosting.com>
parents: 448
diff changeset
7 $(PKG)_VERSION := 6.1
4007a1da5183 update version of packages fltk and readline
Volker Grabsch <vog@notjusthosting.com>
parents: 448
diff changeset
8 $(PKG)_CHECKSUM := 54840a0dc907e7fa598d7ffcdcbd17bae69ace83
330
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_SUBDIR := readline-$($(PKG)_VERSION)
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 $(PKG)_FILE := readline-$($(PKG)_VERSION).tar.gz
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11 $(PKG)_WEBSITE := http://tiswww.case.edu/php/chet/readline/rltop.html
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 $(PKG)_URL := http://ftp.gnu.org/gnu/readline/$($(PKG)_FILE)
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 $(PKG)_DEPS := gcc pdcurses
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 wget -q -O- 'http://tiswww.case.edu/php/chet/readline/rltop.html' | \
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 grep 'readline-' | \
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 $(SED) -n 's,.*readline-\([0-9][^>]*\)\.tar.*,\1,p' | \
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 head -1
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 endef
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 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
23 $(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
24 $(SED) -i 's,^ *case SIGTSTP:.*,,' '$(1)/signals.c'
330
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 cd '$(1)' && ./configure \
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 --host='$(TARGET)' \
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 --disable-shared \
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 --prefix='$(PREFIX)/$(TARGET)' \
332
0eb8062e5797 enable multibyte characters in package readline
Volker Grabsch <vog@notjusthosting.com>
parents: 331
diff changeset
29 --enable-multibyte \
330
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 --without-purify \
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 --with-curses \
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 LIBS='-lpdcurses'
331
0d33bf4aa55f bugfix in package readline: unset the correct variables to avoid building the shared libraries
Volker Grabsch <vog@notjusthosting.com>
parents: 330
diff changeset
33 $(MAKE) -C '$(1)' -j '$(JOBS)' install SHARED_LIBS=
330
67fb15f9072f new package: readline
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 endef