summaryrefslogtreecommitdiffstats
path: root/rules/setserial.make
blob: f3146906121b86b925f8175f3d2485f27682c924 (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
# -*-makefile-*-
#
# Copyright (C) 2005 by BSP
#
# 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_SETSERIAL) += setserial

#
# Paths and names
#
SETSERIAL_VERSION	:= 2.17
SETSERIAL		:= setserial-$(SETSERIAL_VERSION)
SETSERIAL_SUFFIX	:= tar.gz
SETSERIAL_URL		:= $(PTXCONF_SETUP_SFMIRROR)/setserial/$(SETSERIAL).$(SETSERIAL_SUFFIX)
SETSERIAL_SOURCE	:= $(SRCDIR)/$(SETSERIAL).$(SETSERIAL_SUFFIX)
SETSERIAL_DIR		:= $(BUILDDIR)/$(SETSERIAL)


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

$(SETSERIAL_SOURCE):
	@$(call targetinfo)
	@$(call get, SETSERIAL)

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

SETSERIAL_PATH	:= PATH=$(CROSS_PATH)
SETSERIAL_ENV 	:= $(CROSS_ENV)

#
# autoconf
#
SETSERIAL_AUTOCONF := $(CROSS_AUTOCONF_USR)

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

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

	@$(call install_init, setserial)
	@$(call install_fixup, setserial,PACKAGE,setserial)
	@$(call install_fixup, setserial,PRIORITY,optional)
	@$(call install_fixup, setserial,VERSION,$(SETSERIAL_VERSION))
	@$(call install_fixup, setserial,SECTION,base)
	@$(call install_fixup, setserial,AUTHOR,"Benedikt Spranger <b.spranger@linutronix.de>")
	@$(call install_fixup, setserial,DEPENDS,)
	@$(call install_fixup, setserial,DESCRIPTION,missing)

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

	@$(call install_finish, setserial)

	@$(call touch)

# vim: syntax=make