summaryrefslogtreecommitdiffstats
path: root/rules/termcap.make
blob: bf23a7ea3f7fa91678d7804e127adcc3e2e1fac8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# -*-makefile-*-
#
# Copyright (C) 2003, 2004, 2009 by Marc Kleine-Budde <kleine-budde@gmx.de>
#          
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_TERMCAP) += termcap

#
# Paths and names
#
TERMCAP_VERSION		:= 1.3.1
TERMCAP_MD5		:= ffe6f86e63a3a29fa53ac645faaabdfa
TERMCAP			:= termcap-$(TERMCAP_VERSION)
TERMCAP_SUFFIX		:= tar.gz
TERMCAP_URL		:= $(call ptx/mirror, GNU, termcap/$(TERMCAP).$(TERMCAP_SUFFIX))
TERMCAP_SOURCE		:= $(SRCDIR)/$(TERMCAP).$(TERMCAP_SUFFIX)
TERMCAP_DIR		:= $(BUILDDIR)/$(TERMCAP)
TERMCAP_LICENSE		:= GPL-2.0-only
TERMCAP_LICENSE_FILES	:= \
	file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

#
# autoconf
#
TERMCAP_CONF_TOOL := autoconf
TERMCAP_CONF_OPT := \
	--prefix=/usr \
	$(CROSS_AUTOCONF_ARCH) \
	--enable-install-termcap

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/termcap.targetinstall:
	@$(call targetinfo)

	@$(call install_init, termcap)
	@$(call install_fixup, termcap,PRIORITY,optional)
	@$(call install_fixup, termcap,SECTION,base)
	@$(call install_fixup, termcap,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>")
	@$(call install_fixup, termcap,DESCRIPTION,missing)

ifdef PTXCONF_TERMCAP_TERMCAP
	@$(call install_copy, termcap, 0, 0, 0644, -, /etc/termcap)
endif
	@$(call install_finish, termcap)

	@$(call touch)

# vim: syntax=make