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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
# -*-makefile-*-
# $Id$
#
# Copyright (C) 2005 by Robert Schwebel
#
# 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_SLIRP) += host-slirp
#
# Paths and names
#
HOST_SLIRP_VERSION = 1.0.16
HOST_SLIRP = slirp-$(HOST_SLIRP_VERSION)
HOST_SLIRP_SUFFIX = tar.gz
HOST_SLIRP_URL = $(PTXCONF_SETUP_SFMIRROR)/slirp/$(HOST_SLIRP).$(HOST_SLIRP_SUFFIX)
HOST_SLIRP_SOURCE = $(SRCDIR)/$(HOST_SLIRP).$(HOST_SLIRP_SUFFIX)
HOST_SLIRP_DIR = $(HOST_BUILDDIR)/$(HOST_SLIRP)
-include $(call package_depfile)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
host-slirp_get: $(STATEDIR)/host-slirp.get
host-slirp_get_deps = $(HOST_SLIRP_SOURCE)
$(STATEDIR)/host-slirp.get: $(host-slirp_get_deps)
@$(call targetinfo, $@)
@$(call get_patches, $(HOST_SLIRP))
@$(call touch, $@)
$(HOST_SLIRP_SOURCE):
@$(call targetinfo, $@)
@$(call get, $(HOST_SLIRP_URL))
# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------
host-slirp_extract: $(STATEDIR)/host-slirp.extract
host-slirp_extract_deps = $(STATEDIR)/host-slirp.get
$(STATEDIR)/host-slirp.extract: $(host-slirp_extract_deps)
@$(call targetinfo, $@)
@$(call clean, $(HOST_SLIRP_DIR))
@$(call extract, $(HOST_SLIRP_SOURCE), $(HOST_BUILDDIR))
@$(call patchin, $(HOST_SLIRP), $(HOST_SLIRP_DIR))
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
host-slirp_prepare: $(STATEDIR)/host-slirp.prepare
#
# dependencies
#
host-slirp_prepare_deps = \
$(STATEDIR)/host-slirp.extract
HOST_SLIRP_PATH = PATH=$(HOST_PATH)
HOST_SLIRP_ENV = $(HOSTCC_ENV)
#
# autoconf
#
HOST_SLIRP_AUTOCONF = $(HOST_AUTOCONF)
HOST_SLIRP_AUTOCONF += --prefix=$(PTXCONF_PREFIX)/usr
$(STATEDIR)/host-slirp.prepare: $(host-slirp_prepare_deps)
@$(call targetinfo, $@)
@$(call clean, $(HOST_SLIRP_DIR)/config.cache)
cd $(HOST_SLIRP_DIR)/src && \
$(HOST_SLIRP_PATH) $(HOST_SLIRP_ENV) \
./configure $(HOST_SLIRP_AUTOCONF)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
host-slirp_compile: $(STATEDIR)/host-slirp.compile
host-slirp_compile_deps = $(STATEDIR)/host-slirp.prepare
$(STATEDIR)/host-slirp.compile: $(host-slirp_compile_deps)
@$(call targetinfo, $@)
cd $(HOST_SLIRP_DIR)/src && $(HOST_SLIRP_ENV) $(HOST_SLIRP_PATH) make
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
host-slirp_install: $(STATEDIR)/host-slirp.install
host-slirp_install_deps = $(STATEDIR)/host-slirp.compile
$(STATEDIR)/host-slirp.install: $(host-slirp_install_deps)
@$(call targetinfo, $@)
mkdir -p $(PTXCONF_PREFIX)/usr/bin
mkdir -p $(PTXCONF_PREFIX)/usr/man/man1
@$(call install, HOST_SLIRP, $(HOST_SLIRP_DIR)/src ,h)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
host-slirp_clean:
rm -rf $(STATEDIR)/host-slirp.*
rm -rf $(HOST_SLIRP_DIR)
# vim: syntax=make
|