summaryrefslogtreecommitdiffstats
path: root/rules/lsuio.make
blob: fcc8f2bf619a3b56d416bc090b0eb0ca73179bf9 (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
# -*-makefile-*-
# $Id: template-make 8509 2008-06-12 12:45:40Z mkl $
#
# Copyright (C) 2008 by Wolfram Sang
#
# 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_LSUIO) += lsuio

#
# Paths and names
#
LSUIO_VERSION	:= 0.2.0
LSUIO		:= lsuio-$(LSUIO_VERSION)
LSUIO_SUFFIX		:= tar.gz
LSUIO_URL		:= http://www.osadl.org/projects/downloads/UIO/user/$(LSUIO).$(LSUIO_SUFFIX)
LSUIO_SOURCE		:= $(SRCDIR)/$(LSUIO).$(LSUIO_SUFFIX)
LSUIO_DIR		:= $(BUILDDIR)/$(LSUIO)

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

$(LSUIO_SOURCE):
	@$(call targetinfo)
	@$(call get, LSUIO)

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

$(STATEDIR)/lsuio.extract:
	@$(call targetinfo)
	@$(call clean, $(LSUIO_DIR))
	@$(call extract, LSUIO)
	@$(call patchin, LSUIO)
	@$(call touch)

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

LSUIO_PATH	:= PATH=$(CROSS_PATH)
LSUIO_ENV 	:= $(CROSS_ENV)

#
# autoconf
#
LSUIO_AUTOCONF := $(CROSS_AUTOCONF_USR)

$(STATEDIR)/lsuio.prepare:
	@$(call targetinfo)
	@$(call clean, $(LSUIO_DIR)/config.cache)
	cd $(LSUIO_DIR) && \
		$(LSUIO_PATH) $(LSUIO_ENV) \
		./configure $(LSUIO_AUTOCONF)
	@$(call touch)

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

$(STATEDIR)/lsuio.compile:
	@$(call targetinfo)
	cd $(LSUIO_DIR) && $(LSUIO_PATH) $(MAKE) $(PARALLELMFLAGS)
	@$(call touch)

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

$(STATEDIR)/lsuio.install:
	@$(call targetinfo)
	@$(call install, LSUIO)
	@$(call touch)

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

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

	@$(call install_init, lsuio)
	@$(call install_fixup, lsuio,PACKAGE,lsuio)
	@$(call install_fixup, lsuio,PRIORITY,optional)
	@$(call install_fixup, lsuio,VERSION,$(LSUIO_VERSION))
	@$(call install_fixup, lsuio,SECTION,base)
	@$(call install_fixup, lsuio,AUTHOR,"Wolfram Sang <w.sang\@pengutronix.de>")
	@$(call install_fixup, lsuio,DEPENDS,)
	@$(call install_fixup, lsuio,DESCRIPTION,missing)

	@$(call install_copy, lsuio, 0, 0, 0755, $(LSUIO_DIR)/lsuio, /usr/bin/lsuio)

	@$(call install_finish, lsuio)

	@$(call touch)

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

lsuio_clean:
	rm -rf $(STATEDIR)/lsuio.*
	rm -rf $(PKGDIR)/lsuio_*
	rm -rf $(LSUIO_DIR)

# vim: syntax=make