summaryrefslogtreecommitdiffstats
path: root/rules/liblist.make
blob: 1fe4f572a864c98d1db45236787c371bf5f768f1 (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
70
71
72
73
74
# -*-makefile-*-
#
# Copyright (C) 2005 by Robert Schwebel
# 		2008 by Marc Kleine-Budde <mkl@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
#
PACKAGES-$(PTXCONF_LIBLIST) += liblist

#
# Paths and names
#
LIBLIST_VERSION	:= 1.0.3
LIBLIST		:= liblist-$(LIBLIST_VERSION)
LIBLIST_SUFFIX	:= tar.gz
LIBLIST_URL	:= http://www.pengutronix.de/software/liblist/download/$(LIBLIST).$(LIBLIST_SUFFIX)
LIBLIST_SOURCE	:= $(SRCDIR)/$(LIBLIST).$(LIBLIST_SUFFIX)
LIBLIST_DIR	:= $(BUILDDIR)/$(LIBLIST)

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

$(LIBLIST_SOURCE):
	@$(call targetinfo)
	@$(call get, LIBLIST)

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

LIBLIST_PATH	:= PATH=$(CROSS_PATH)
LIBLIST_ENV 	:= $(CROSS_ENV)

#
# autoconf
#
LIBLIST_AUTOCONF := $(CROSS_AUTOCONF_USR)

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

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

	@$(call install_init, liblist)
	@$(call install_fixup, liblist,PACKAGE,liblist)
	@$(call install_fixup, liblist,PRIORITY,optional)
	@$(call install_fixup, liblist,VERSION,$(LIBLIST_VERSION))
	@$(call install_fixup, liblist,SECTION,base)
	@$(call install_fixup, liblist,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>")
	@$(call install_fixup, liblist,DEPENDS,)
	@$(call install_fixup, liblist,DESCRIPTION,missing)

	@$(call install_copy, liblist, 0, 0, 0644, -, \
		/usr/lib/libptxlist.so.0.0.0)
	@$(call install_link, liblist, libptxlist.so.0.0.0, \
		/usr/lib/libptxlist.so.0)
	@$(call install_link, liblist, libptxlist.so.0.0.0, \
		/usr/lib/libptxlist.so)

	@$(call install_finish, liblist)

	@$(call touch)

# vim: syntax=make