summaryrefslogtreecommitdiffstats
path: root/rules/picocom.make
blob: e40846aba14f21c9fb1f608eab69ba9128f38ab3 (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
# -*-makefile-*-
#
# Copyright (C) 2015 by Bernhard Walle <bernhard@bwalle.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_PICOCOM) += picocom

#
# Paths and names
#
PICOCOM_VERSION	:= 1.7
PICOCOM_MD5	:= 8eaba1d31407e8408674d6e57af447ef
PICOCOM		:= picocom-$(PICOCOM_VERSION)
PICOCOM_SUFFIX	:= tar.gz
PICOCOM_URL	:= https://picocom.googlecode.com/files//$(PICOCOM).$(PICOCOM_SUFFIX)
PICOCOM_SOURCE	:= $(SRCDIR)/$(PICOCOM).$(PICOCOM_SUFFIX)
PICOCOM_DIR	:= $(BUILDDIR)/$(PICOCOM)
PICOCOM_LICENSE	:= GPL-2.0+

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

PICOCOM_CONF_TOOL	:= NO
PICOCOM_MAKE_ENV	:= $(CROSS_ENV)

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

$(STATEDIR)/picocom.install:
	@$(call targetinfo)
	install -D -m0755 $(PICOCOM_DIR)/picocom $(PICOCOM_PKGDIR)/usr/bin/picocom
	@$(call touch)

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

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

	@$(call install_init, picocom)
	@$(call install_fixup, picocom,PRIORITY,optional)
	@$(call install_fixup, picocom,SECTION,base)
	@$(call install_fixup, picocom,AUTHOR,"Bernhard Walle <bernhard@bwalle.de>")
	@$(call install_fixup, picocom,DESCRIPTION,missing)

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

	@$(call install_finish, picocom)

	@$(call touch)

# vim: syntax=make