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
75
76
77
78
79
80
81
82
|
# -*-makefile-*-
#
# Copyright (C) 2006, 2008, 2009 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_LIBELF) += libelf
#
# Paths and names
#
LIBELF_VERSION := 0.8.13
LIBELF := libelf-$(LIBELF_VERSION)
LIBELF_SUFFIX := tar.gz
LIBELF_URL := http://www.mr511.de/software/$(LIBELF).$(LIBELF_SUFFIX)
LIBELF_SOURCE := $(SRCDIR)/$(LIBELF).$(LIBELF_SUFFIX)
LIBELF_DIR := $(BUILDDIR)/$(LIBELF)
LIBELF_LICENSE := LGPL
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
$(LIBELF_SOURCE):
@$(call targetinfo)
@$(call get, LIBELF)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
LIBELF_PATH := PATH=$(CROSS_PATH)
LIBELF_ENV := \
$(CROSS_ENV) \
mr_cv_target_elf=yes \
ac_cv_func_mmap_fixed_mapped=yes \
libelf_cv_working_memmove=yes \
mr_cv_coffee_machine='author is a tee drinker'
LIBELF_MAKEVARS := instroot=$(PKGDIR)/$(LIBELF)
#
# autoconf
#
LIBELF_AUTOCONF := \
$(CROSS_AUTOCONF_USR) \
--enable-shared \
--enable-elf64
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/libelf.targetinstall:
@$(call targetinfo)
@$(call install_init, libelf)
@$(call install_fixup, libelf,PACKAGE,libelf)
@$(call install_fixup, libelf,PRIORITY,optional)
@$(call install_fixup, libelf,VERSION,$(LIBELF_VERSION))
@$(call install_fixup, libelf,SECTION,base)
@$(call install_fixup, libelf,AUTHOR,"Marc Kleine-Budde <mkl@pengutronix.de>")
@$(call install_fixup, libelf,DEPENDS,)
@$(call install_fixup, libelf,DESCRIPTION,missing)
@$(call install_copy, libelf, 0, 0, 0644, -, \
/usr/lib/libelf.so.0.8.13)
@$(call install_link, libelf, libelf.so.0.8.13, /usr/lib/libelf.so.0)
@$(call install_link, libelf, libelf.so.0.8.13, /usr/lib/libelf.so)
@$(call install_finish, libelf)
@$(call touch)
# vim: syntax=make
|