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
|
# -*-makefile-*-
# $Id$
#
# Copyright (C) 2003 by Ixia Corporation (www.ixiacom.com)
#
# 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_GENEXT2FS) += host-genext2fs
#
# Paths and names
#
HOST_GENEXT2FS_VERSION = 1.3.orig
HOST_GENEXT2FS = genext2fs-$(HOST_GENEXT2FS_VERSION)
HOST_GENEXT2FS_TARBALL = genext2fs_$(HOST_GENEXT2FS_VERSION).$(HOST_GENEXT2FS_SUFFIX)
HOST_GENEXT2FS_SUFFIX = tar.gz
HOST_GENEXT2FS_URL = $(PTXCONF_SETUP_DEBMIRROR)/pool/main/g/genext2fs/$(HOST_GENEXT2FS_TARBALL)
HOST_GENEXT2FS_SOURCE = $(SRCDIR)/$(HOST_GENEXT2FS_TARBALL)
HOST_GENEXT2FS_DIR = $(HOST_BUILDDIR)/$(HOST_GENEXT2FS)
-include $(call package_depfile)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
host-genext2fs_get: $(STATEDIR)/host-genext2fs.get
host-genext2fs_get_deps = $(HOST_GENEXT2FS_SOURCE)
$(STATEDIR)/host-genext2fs.get: $(host-genext2fs_get_deps)
@$(call targetinfo, $@)
@$(call get_patches, $(HOST_GENEXT2FS))
@$(call touch, $@)
$(HOST_GENEXT2FS_SOURCE):
@$(call targetinfo, $@)
@$(call get, $(HOST_GENEXT2FS_URL))
# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------
host-genext2fs_extract: $(STATEDIR)/host-genext2fs.extract
$(STATEDIR)/host-genext2fs.extract: $(STATEDIR)/host-genext2fs.get
@$(call targetinfo, $@)
@$(call clean, $(HOST_GENEXT2FS_DIR))
@$(call extract, $(HOST_GENEXT2FS_SOURCE),$(HOST_BUILDDIR))
@$(call patchin, $(HOST_GENEXT2FS),$(HOST_GENEXT2FS_DIR))
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
host-genext2fs_prepare: $(STATEDIR)/host-genext2fs.prepare
HOST_GENEXT2FS_ENV = $(HOSTCC_ENV)
host-genext2fs_prepare_deps = \
$(STATEDIR)/host-genext2fs.extract
$(STATEDIR)/host-genext2fs.prepare: $(host-genext2fs_prepare_deps)
@$(call targetinfo, $@)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
host-genext2fs_compile: $(STATEDIR)/host-genext2fs.compile
host-genext2fs_compile_deps = $(STATEDIR)/host-genext2fs.prepare
$(STATEDIR)/host-genext2fs.compile: $(host-genext2fs_compile_deps)
@$(call targetinfo, $@)
cd $(HOST_GENEXT2FS_DIR) && make $(HOST_GENEXT2FS_ENV)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
host-genext2fs_install: $(STATEDIR)/host-genext2fs.install
host-genext2fs_install_deps = $(STATEDIR)/host-genext2fs.compile
$(STATEDIR)/host-genext2fs.install: $(host-genext2fs_install_deps)
@$(call targetinfo, $@)
install -d $(PTXCONF_HOST_PREFIX)/usr/bin/
install -d $(PTXCONF_HOST_PREFIX)/usr/man/man8/
# FIXME: correct path?
install -m 755 $(HOST_GENEXT2FS_DIR)/genext2fs $(PTXCONF_HOST_PREFIX)/usr/bin/
install -m 644 $(HOST_GENEXT2FS_DIR)/genext2fs.8 $(PTXCONF_HOST_PREFIX)/usr/man/man8/
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
host-genext2fs_targetinstall: $(STATEDIR)/host-genext2fs.targetinstall
$(STATEDIR)/host-genext2fs.targetinstall: $(STATEDIR)/host-genext2fs.install
@$(call targetinfo, $@)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
host-genext2fs_clean:
rm -rf $(STATEDIR)/host-genext2fs.* $(HOST_GENEXT2FS_DIR)
# vim: syntax=make
|