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
|
# -*-makefile-*-
#
# Copyright (C) 2008 by Robert Schwebel <r.schwebel@pengutronix.de>
#
# 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
#
PACKAGES-$(PTXCONF_MBW) += mbw
#
# Paths and names
#
MBW_VERSION := 1.1-1
MBW := mbw-$(MBW_VERSION)
MBW_SUFFIX := tar.gz
MBW_URL := http://ahorvath.web.cern.ch/ahorvath/mbw/$(MBW).$(MBW_SUFFIX)
MBW_SOURCE := $(SRCDIR)/$(MBW).$(MBW_SUFFIX)
MBW_DIR := $(BUILDDIR)/$(MBW)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
$(MBW_SOURCE):
@$(call targetinfo)
@$(call get, MBW)
# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------
$(STATEDIR)/mbw.extract:
@$(call targetinfo)
@$(call clean, $(MBW_DIR))
@$(call extract, MBW)
# we have a crappy name
mv $(BUILDDIR)/mbw $(MBW_DIR)
@$(call patchin, MBW)
@$(call touch)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
MBW_PATH := PATH=$(CROSS_PATH)
MBW_ENV := $(CROSS_ENV)
$(STATEDIR)/mbw.prepare:
@$(call targetinfo)
@$(call touch)
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
$(STATEDIR)/mbw.compile:
@$(call targetinfo)
cd $(MBW_DIR) && $(MBW_PATH) $(MAKE) CC=$(CROSS_CC) $(PARALLELMFLAGS)
@$(call touch)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
$(STATEDIR)/mbw.install:
@$(call targetinfo)
@$(call touch)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/mbw.targetinstall:
@$(call targetinfo)
@$(call install_init, mbw)
@$(call install_fixup, mbw,PACKAGE,mbw)
@$(call install_fixup, mbw,PRIORITY,optional)
@$(call install_fixup, mbw,VERSION,$(MBW_VERSION))
@$(call install_fixup, mbw,SECTION,base)
@$(call install_fixup, mbw,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>")
@$(call install_fixup, mbw,DEPENDS,)
@$(call install_fixup, mbw,DESCRIPTION,missing)
@$(call install_copy, mbw, 0, 0, 0755, $(MBW_DIR)/mbw, /usr/bin/mbw)
@$(call install_finish, mbw)
@$(call touch)
# vim: syntax=make
|