summaryrefslogtreecommitdiffstats
path: root/rules/host-ncurses.make
blob: 4fbd8ba3393b2f88c56772fd65d49bec78ca9399 (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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# -*-makefile-*-
# $Id$
#
# Copyright (C) 2008 by 
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
HOST_PACKAGES-$(PTXCONF_HOST_NCURSES) += host-ncurses

#
# Paths and names
#
HOST_NCURSES_DIR	= $(HOST_BUILDDIR)/$(NCURSES)

# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------

$(STATEDIR)/host-ncurses.get:
	@$(call targetinfo)
	@$(call touch)

# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------

$(STATEDIR)/host-ncurses.extract:
	@$(call targetinfo)
	@$(call clean, $(HOST_NCURSES_DIR))
	@$(call extract, NCURSES, $(HOST_BUILDDIR))
	@$(call patchin, NCURSES, $(HOST_NCURSES_DIR))
	@$(call touch)

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

HOST_NCURSES_PATH	:= PATH=$(HOST_PATH)
HOST_NCURSES_ENV 	:= $(HOST_ENV)

#
# autoconf
#
HOST_NCURSES_AUTOCONF	:= $(HOST_AUTOCONF)

$(STATEDIR)/host-ncurses.prepare:
	@$(call targetinfo)
	@$(call clean, $(HOST_NCURSES_DIR)/config.cache)
	cd $(HOST_NCURSES_DIR) && \
		$(HOST_NCURSES_PATH) $(HOST_NCURSES_ENV) \
		./configure $(HOST_NCURSES_AUTOCONF) $(SHARED_NCURSES_AUTOCONF)
	@$(call touch)

# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------

$(STATEDIR)/host-ncurses.compile:
	@$(call targetinfo)
	cd $(HOST_NCURSES_DIR)/include && $(HOST_NCURSES_PATH) \
		$(MAKE)
	cd $(HOST_NCURSES_DIR)/ncurses && $(HOST_NCURSES_PATH) \
		$(MAKE) make_keys make_hash
	@$(call touch)

# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------

$(STATEDIR)/host-ncurses.install:
	@$(call targetinfo)
	@$(call touch)

# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------

host-ncurses_clean:
	rm -rf $(STATEDIR)/host-ncurses.*
	rm -rf $(HOST_NCURSES_DIR)

# vim: syntax=make