summaryrefslogtreecommitdiffstats
path: root/rules/bsdiff.make
blob: 22cd97c44f62a660f43db1cb58a1b1154864fa1e (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
# -*-makefile-*-
#
# Copyright (C) 2015 by Marc Kleine-Budde <mkl@pengutronix.de>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_BSDIFF) += bsdiff

#
# Paths and names
#
BSDIFF_VERSION	:= 4.3
BSDIFF_MD5	:= e6d812394f0e0ecc8d5df255aa1db22a
BSDIFF		:= bsdiff-$(BSDIFF_VERSION)
BSDIFF_SUFFIX	:= tar.gz
BSDIFF_URL	:= http://www.daemonology.net/bsdiff/$(BSDIFF).$(BSDIFF_SUFFIX)
BSDIFF_SOURCE	:= $(SRCDIR)/$(BSDIFF).$(BSDIFF_SUFFIX)
BSDIFF_DIR	:= $(BUILDDIR)/$(BSDIFF)
BSDIFF_LICENSE	:= BSD-2-Clause

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

#
# autoconf
#
BSDIFF_AUTOCONF_CONF_TOOL := NO
BSDIFF_MAKE_ENV := $(CROSS_ENV) PREFIX=/usr

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

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

	@$(call install_init, bsdiff)
	@$(call install_fixup, bsdiff,PRIORITY,optional)
	@$(call install_fixup, bsdiff,SECTION,base)
	@$(call install_fixup, bsdiff,AUTHOR,"Marc Kleine-Budde <mkl@pengutronix.de>")
	@$(call install_fixup, bsdiff,DESCRIPTION,missing)

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

	@$(call install_finish, bsdiff)
	@$(call touch)

# vim: syntax=make