annotate src/termcap.mk @ 7207:9ed6500e56d3 default tip @

maint: Merge release to default.
author Markus Mützel <markus.muetzel@gmx.de>
date Fri, 17 May 2024 20:16:41 +0200
parents d95b8b84cea7
children
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 :=
3480
13be64f9f16d move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents: 3048
diff changeset
6 $(PKG)_VERSION := 1.3.1
2904
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7 $(PKG)_CHECKSUM := 42dd1e6beee04f336c884f96314f0c96cc2578be
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 $(PKG)_SUBDIR := termcap-$($(PKG)_VERSION)
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 $(PKG)_FILE := termcap-$($(PKG)_VERSION).tar.gz
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10 $(PKG)_URL := ftp://ftp.gnu.org/gnu/termcap/$($(PKG)_FILE)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
11 $(PKG)_DEPS :=
2904
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13 define $(PKG)_UPDATE
3708
d95b8b84cea7 enable additional $(PKG)_UPDATE targets.
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
14 $(WGET) -q -O- 'http://ftp.gnu.org/gnu/termcap/?C=M;O=D' | \
d95b8b84cea7 enable additional $(PKG)_UPDATE targets.
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
15 $(SED) -n 's,.*<a href="termcap-\([0-9][^"]*\)\.tar.*,\1,p' | \
d95b8b84cea7 enable additional $(PKG)_UPDATE targets.
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
16 head -1
2904
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 endef
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19 define $(PKG)_BUILD
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20 cd '$(1)' && autoreconf
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21 cd '$(1)' && ./configure \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2904
diff changeset
22 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
23 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
24 --prefix='$(HOST_PREFIX)' \
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
25 AR=$(MXE_AR)
2904
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
27 $(MAKE) AR=$(MXE_AR) -C '$(1)' -j '$(JOBS)' install
2904
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
28
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
29 if [ "$(BUILD_SHARED)" = yes ]; then \
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
30 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_CC)' '$(HOST_LIBDIR)/libtermcap.a' --install '$(INSTALL)' --libdir '$(HOST_LIBDIR)' --bindir '$(HOST_BINDIR)'; \
2904
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
31 fi
1122ae1e98b6 New rules for termcap package.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
32 endef