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
|
# -*-makefile-*-
#
# Copyright (C) 2008 by Juergen Beisert <jbe@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_LIBPCIACCESS) += libpciaccess
#
# Paths and names
#
LIBPCIACCESS_VERSION := 0.12.0
LIBPCIACCESS_MD5 := 285e07976274572e1f1e68edee09b70a
LIBPCIACCESS := libpciaccess-$(LIBPCIACCESS_VERSION)
LIBPCIACCESS_SUFFIX := tar.bz2
LIBPCIACCESS_URL := $(PTXCONF_SETUP_XORGMIRROR)/individual/lib/$(LIBPCIACCESS).$(LIBPCIACCESS_SUFFIX)
LIBPCIACCESS_SOURCE := $(SRCDIR)/$(LIBPCIACCESS).$(LIBPCIACCESS_SUFFIX)
LIBPCIACCESS_DIR := $(BUILDDIR)/$(LIBPCIACCESS)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
$(LIBPCIACCESS_SOURCE):
@$(call targetinfo)
@$(call get, LIBPCIACCESS)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
LIBPCIACCESS_PATH := PATH=$(CROSS_PATH)
LIBPCIACCESS_ENV := $(CROSS_ENV)
#
# autoconf
#
LIBPCIACCESS_AUTOCONF := $(CROSS_AUTOCONF_USR)
ifdef PTXCONF_LIBPCIACCESS_STATIC
LIBPCIACCESS_AUTOCONF += --enable-shared=no
endif
ifdef PTXCONF_LIBPCIACCESS_MTRR
LIBPCIACCESS_ENV += ac_cv_file__usr_include_asm_mtrr_h=yes
else
LIBPCIACCESS_ENV += ac_cv_file__usr_include_asm_mtrr_h=no
endif
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/libpciaccess.targetinstall:
@$(call targetinfo)
ifndef PTXCONF_LIBPCIACCESS_STATIC
# only shared libraries are to be installed on the target
@$(call install_init, libpciaccess)
@$(call install_fixup, libpciaccess,PRIORITY,optional)
@$(call install_fixup, libpciaccess,SECTION,base)
@$(call install_fixup, libpciaccess,AUTHOR,"Juergen Beisert <j.beisert@pengutronix.de>")
@$(call install_fixup, libpciaccess,DESCRIPTION,missing)
@$(call install_lib, libpciaccess, 0, 0, 0644, libpciaccess)
@$(call install_finish, libpciaccess)
endif
@$(call touch)
# vim: syntax=make
|