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
|
# -*-makefile-*-
# $Id$
#
# Copyright (C) 2003 by Robert Schwebel
# Copyright (C) 2008 by Wolfram Sang, Pengutronix e.K.
#
# 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_BING) += bing
#
# Paths and names
#
BING_VERSION := 1.1.3
BING := bing_src-$(BING_VERSION)
BING_SUFFIX := tar.gz
BING_URL := http://fgouget.free.fr/bing/$(BING).$(BING_SUFFIX)
BING_SOURCE := $(SRCDIR)/$(BING).$(BING_SUFFIX)
BING_DIR := $(BUILDDIR)/$(BING)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
$(BING_SOURCE):
@$(call targetinfo)
@$(call get, BING)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
BING_PATH := PATH=$(CROSS_PATH)
BING_ENV := $(CROSS_ENV) PREFIX=$(SYSROOT)/usr
$(STATEDIR)/bing.prepare:
@$(call targetinfo)
@$(call touch)
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
$(STATEDIR)/bing.compile:
@$(call targetinfo)
cd $(BING_DIR) && $(BING_ENV) $(BING_PATH) $(MAKE)
@$(call touch)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/bing.targetinstall:
@$(call targetinfo)
@$(call install_init, bing)
@$(call install_fixup, bing,PACKAGE,bing)
@$(call install_fixup, bing,PRIORITY,optional)
@$(call install_fixup, bing,VERSION,$(BING_VERSION))
@$(call install_fixup, bing,SECTION,base)
@$(call install_fixup, bing,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>")
@$(call install_fixup, bing,DEPENDS,)
@$(call install_fixup, bing,DESCRIPTION,missing)
@$(call install_copy, bing, 0, 0, 0755, $(BING_DIR)/bing, /usr/sbin/bing)
@$(call install_finish, bing)
@$(call touch)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
bing_clean:
rm -rf $(STATEDIR)/bing.*
rm -rf $(PKGDIR)/bing_*
rm -rf $(BING_DIR)
# vim: syntax=make
|