summaryrefslogtreecommitdiffstats
path: root/rules/lpc21isp.make
blob: 33ca1269e73226f16bed31653d31432171ccbf71 (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
# -*-makefile-*-
#
# Copyright (C) 2011 by Bernhard Walle <walle@corscience.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_LPC21ISP) += lpc21isp

#
# Paths and names
#
LPC21ISP_VERSION	:= 1.85
LPC21ISP_MD5		:= e80c16b252a5198b6ed3b5559af350d6
LPC21ISP_STRIP_LEVEL	:= 0
LPC21ISP		:= lpc21isp_$(subst .,,$(LPC21ISP_VERSION))
LPC21ISP_SUFFIX		:= tar.gz
LPC21ISP_URL		:= $(call ptx/mirror, SF, lpc21isp/$(LPC21ISP_VERSION)/$(LPC21ISP).$(LPC21ISP_SUFFIX))
LPC21ISP_SOURCE		:= $(SRCDIR)/$(LPC21ISP).$(LPC21ISP_SUFFIX)
LPC21ISP_DIR		:= $(BUILDDIR)/$(LPC21ISP)
LPC21ISP_LICENSE	:= GPL-3.0+

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

LPC21ISP_CONF_TOOL	:= NO
LPC21ISP_MAKE_ENV	:= $(CROSS_ENV)
LPC21ISP_MAKEVARS	:= $(CROSS_ENV)

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

$(STATEDIR)/lpc21isp.install:
	@$(call targetinfo)
	mkdir -p $(LPC21ISP_PKGDIR)/usr/sbin
	install -m0755 $(LPC21ISP_DIR)/lpc21isp $(LPC21ISP_PKGDIR)/usr/sbin
	@$(call touch)

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

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

	@$(call install_init, lpc21isp)
	@$(call install_fixup, lpc21isp,PRIORITY,optional)
	@$(call install_fixup, lpc21isp,SECTION,base)
	@$(call install_fixup, lpc21isp,AUTHOR,"Bernhard Walle <walle@corscience.de>")
	@$(call install_fixup, lpc21isp,DESCRIPTION,missing)

	@$(call install_copy, lpc21isp, 0, 0, 0755, -, /usr/sbin/lpc21isp)

	@$(call install_finish, lpc21isp)

	@$(call touch)

# vim: syntax=make