annotate src/termcap.mk @ 2904:1122ae1e98b6

New rules for termcap package. readline: Depend on termcap instead of ncurses.
author John W. Eaton <jwe@octave.org>
date Wed, 05 Dec 2012 12:21:50 -0500
parents
children 4f9b72cf7ee7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2904
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 # This file is part of MXE.
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 # See index.html for further information.
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4 PKG := termcap
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 $(PKG)_IGNORE :=
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6 $(PKG)_CHECKSUM := 42dd1e6beee04f336c884f96314f0c96cc2578be
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7 $(PKG)_SUBDIR := termcap-$($(PKG)_VERSION)
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 $(PKG)_FILE := termcap-$($(PKG)_VERSION).tar.gz
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 $(PKG)_URL := ftp://ftp.gnu.org/gnu/termcap/$($(PKG)_FILE)
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10 $(PKG)_DEPS := gcc
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12 define $(PKG)_UPDATE
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13 echo 'Warning: Updates are temporarily disabled for package termcap.' >&2;
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14 echo $(termcap_VERSION)
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15 endef
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 define $(PKG)_BUILD
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 cd '$(1)' && autoreconf
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19 cd '$(1)' && ./configure \
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20 --host='$(TARGET)' \
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21 --prefix='$(PREFIX)/$(TARGET)' \
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22 AR=$(TARGET)-ar
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24 $(MAKE) AR=$(TARGET)-ar -C '$(1)' -j '$(JOBS)' install
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 if [ "$(BUILD_SHARED)" = yes ]; then \
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
27 $(MAKE_SHARED_FROM_STATIC) --ar '$(TARGET)-ar' --ld '$(TARGET)-gcc' '$(PREFIX)/$(TARGET)/lib/libtermcap.a'; \
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
28 $(INSTALL) -d '$(PREFIX)/$(TARGET)/bin/'; \
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
29 $(INSTALL) -m755 '$(PREFIX)/$(TARGET)/lib/libtermcap.dll.a' '$(PREFIX)/$(TARGET)/lib/libtermcap.dll.a'; \
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
30 $(INSTALL) -m755 '$(PREFIX)/$(TARGET)/lib/libtermcap.dll' '$(PREFIX)/$(TARGET)/bin/libtermcap.dll'; \
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
31 rm -f '$(PREFIX)/$(TARGET)/lib/libtermcap.dll'; \
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
32 fi
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
33 endef