summaryrefslogtreecommitdiffstats
path: root/rules/host-libbz2.make
blob: 76c4267c54d840210cf25e7ff5eee5acb21f7581 (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) 2007 by Robert Schwebel
#           (C) 2010 by Michael Olbrich <m.olbrich@pengutronix.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
#
HOST_PACKAGES-$(PTXCONF_HOST_LIBBZ2) += host-libbz2

#
# Paths and names
#
HOST_LIBBZ2_VERSION	:= 1.0.4
HOST_LIBBZ2		:= bzip2-$(HOST_LIBBZ2_VERSION)
HOST_LIBBZ2_SUFFIX	:= tar.gz
HOST_LIBBZ2_URL		:= http://www.bzip.org/1.0.4/$(HOST_LIBBZ2).$(HOST_LIBBZ2_SUFFIX)
HOST_LIBBZ2_SOURCE	:= $(SRCDIR)/$(HOST_LIBBZ2).$(HOST_LIBBZ2_SUFFIX)
HOST_LIBBZ2_DIR		:= $(HOST_BUILDDIR)/$(HOST_LIBBZ2)

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

$(HOST_LIBBZ2_SOURCE):
	@$(call targetinfo)
	@$(call get, HOST_LIBBZ2)

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

$(STATEDIR)/host-libbz2.extract:
	@$(call targetinfo)
	@$(call clean, $(HOST_LIBBZ2_DIR))
	@$(call extract, HOST_LIBBZ2, $(HOST_BUILDDIR))
	@$(call patchin, HOST_LIBBZ2, $(HOST_LIBBZ2_DIR))
	@$(call touch)

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

HOST_LIBBZ2_PATH	:= PATH=$(HOST_PATH)
HOST_LIBBZ2_ENV 	:= $(HOST_ENV)

HOST_LIBBZ2_INSTALL_OPT := install PREFIX=$(HOST_LIBBZ2_PKGDIR)

# vim: syntax=make