summaryrefslogtreecommitdiffstats
path: root/rules/fbv.make
blob: d0d8a5ee09481b60f89552ad2045527383fdf0a9 (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
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
# -*-makefile-*-
# $Id: template-make 9053 2008-11-03 10:58:48Z wsa $
#
# Copyright (C) 2009 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_FBV) += fbv

#
# Paths and names
#
FBV_VERSION	:= 1.0b-ptx3
FBV		:= fbv-$(FBV_VERSION)
FBV_SUFFIX	:= tar.bz2
FBV_URL		:= http://www.pengutronix.de/software/ptxdist/temporary-src/$(FBV).$(FBV_SUFFIX)
#FBV_URL	:= http://s-tech.elsat.net.pl/fbv/$(FBV).$(FBV_SUFFIX)
FBV_SOURCE	:= $(SRCDIR)/$(FBV).$(FBV_SUFFIX)
FBV_DIR		:= $(BUILDDIR)/$(FBV)

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

$(FBV_SOURCE):
	@$(call targetinfo)
	@$(call get, FBV)

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

$(STATEDIR)/fbv.extract:
	@$(call targetinfo)
	@$(call clean, $(FBV_DIR))
	@$(call extract, FBV)
	@$(call patchin, FBV)
	@$(call touch)

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

FBV_PATH	:= PATH=$(CROSS_PATH)
FBV_ENV 	:= $(CROSS_ENV)

#
# autoconf
#
FBV_AUTOCONF := $(CROSS_AUTOCONF_USR)

$(STATEDIR)/fbv.prepare:
	@$(call targetinfo)
	@$(call clean, $(FBV_DIR)/config.cache)
	cd $(FBV_DIR) && \
		$(FBV_PATH) $(FBV_ENV) \
		./configure $(FBV_AUTOCONF)
	@$(call touch)

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

$(STATEDIR)/fbv.compile:
	@$(call targetinfo)
	cd $(FBV_DIR) && $(FBV_PATH) $(MAKE) $(PARALLELMFLAGS)
	@$(call touch)

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

$(STATEDIR)/fbv.install:
	@$(call targetinfo)
	@$(call install, FBV)
	@$(call touch)

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/fbv.targetinstall:
	@$(call targetinfo)

	@$(call install_init, fbv)
	@$(call install_fixup, fbv,PACKAGE,fbv)
	@$(call install_fixup, fbv,PRIORITY,optional)
	@$(call install_fixup, fbv,VERSION,$(FBV_VERSION))
	@$(call install_fixup, fbv,SECTION,base)
	@$(call install_fixup, fbv,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>")
	@$(call install_fixup, fbv,DEPENDS,)
	@$(call install_fixup, fbv,DESCRIPTION,missing)

	@$(call install_copy, fbv, 0, 0, 0755, -, /usr/bin/fbv)

	@$(call install_finish, fbv)

	@$(call touch)

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

fbv_clean:
	rm -rf $(STATEDIR)/fbv.*
	rm -rf $(PKGDIR)/fbv_*
	rm -rf $(FBV_DIR)

# vim: syntax=make