summaryrefslogtreecommitdiffstats
path: root/rules/setmixer.make
blob: 9c52eb82f9409f0ac24a7b47b69f5fb7a193098c (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
117
118
119
120
121
122
123
124
125
# -*-makefile-*-
# $Id$
#
# Copyright (C) 2003 by Sascha Hauer <sascha.hauer@gyro-net.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_SETMIXER) += setmixer

#
# Paths and names
#
SETMIXER_VERSION	= 27DEC94ds1
SETMIXER		= setmixer_$(SETMIXER_VERSION).orig
SETMIXER_SUFFIX		= tar.gz
SETMIXER_URL		= $(PTXCONF_SETUP_DEBMIRROR)/pool/main/s/setmixer/$(SETMIXER).$(SETMIXER_SUFFIX)
SETMIXER_SOURCE		= $(SRCDIR)/$(SETMIXER).$(SETMIXER_SUFFIX)
SETMIXER_DIR		= $(BUILDDIR)/setmixer-27DEC94ds1.orig


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

setmixer_get: $(STATEDIR)/setmixer.get

$(STATEDIR)/setmixer.get: $(setmixer_get_deps_default)
	@$(call targetinfo, $@)
	@$(call touch, $@)

$(SETMIXER_SOURCE):
	@$(call targetinfo, $@)
	@$(call get, SETMIXER)

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

setmixer_extract: $(STATEDIR)/setmixer.extract

$(STATEDIR)/setmixer.extract: $(setmixer_extract_deps_default)
	@$(call targetinfo, $@)
	@$(call clean, $(SETMIXER_DIR))
	@$(call extract, SETMIXER)
	@$(call patchin, SETMIXER,$(SETMIXER_DIR))
	@$(call touch, $@)

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

setmixer_prepare: $(STATEDIR)/setmixer.prepare

SETMIXER_PATH		=  PATH=$(CROSS_PATH)
SETMIXER_ENV 		=  $(CROSS_ENV)
SETMIXER_MAKEVARS	=  CC=$(COMPILER_PREFIX)gcc 

$(STATEDIR)/setmixer.prepare: $(setmixer_prepare_deps_default)
	@$(call targetinfo, $@)
	@$(call clean, $(SETMIXER_DIR)/config.cache)
	@$(call touch, $@)

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

setmixer_compile: $(STATEDIR)/setmixer.compile

$(STATEDIR)/setmixer.compile: $(setmixer_compile_deps_default)
	@$(call targetinfo, $@)
	cd $(SETMIXER_DIR) && \
		$(SETMIXER_ENV) $(SETMIXER_PATH) make $(SETMIXER_MAKEVARS)
	@$(call touch, $@)

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

setmixer_install: $(STATEDIR)/setmixer.install

$(STATEDIR)/setmixer.install: $(setmixer_install_deps_default)
	@$(call targetinfo, $@)
	@$(call touch, $@)

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

setmixer_targetinstall: $(STATEDIR)/setmixer.targetinstall

$(STATEDIR)/setmixer.targetinstall: $(setmixer_targetinstall_deps_default)
	@$(call targetinfo, $@)

	@$(call install_init, setmixer)
	@$(call install_fixup, setmixer,PACKAGE,setmixer)
	@$(call install_fixup, setmixer,PRIORITY,optional)
	@$(call install_fixup, setmixer,VERSION,$(SETMIXER_VERSION))
	@$(call install_fixup, setmixer,SECTION,base)
	@$(call install_fixup, setmixer,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>")
	@$(call install_fixup, setmixer,DEPENDS,)
	@$(call install_fixup, setmixer,DESCRIPTION,missing)
	
	@$(call install_copy, setmixer, 0, 0, 0755, $(SETMIXER_DIR)/setmixer, /usr/bin/setmixer)

	@$(call install_finish, setmixer)

	@$(call touch, $@)

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

setmixer_clean:
	rm -rf $(STATEDIR)/setmixer.*
	rm -rf $(IMAGEDIR)/setmixer_*
	rm -rf $(SETMIXER_DIR)

# vim: syntax=make