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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
# -*-makefile-*-
#
# Copyright (C) 2005 by Robert Schwebel
# 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_LIBPV) += libpv
#
# Paths and names
#
LIBPV_VERSION := 1.4.1
LIBPV_MD5 := f3a1073174f676a6a64dba7b2e55b247
LIBPV := libpv-$(LIBPV_VERSION)
LIBPV_SUFFIX := tar.bz2
LIBPV_URL := http://www.pengutronix.de/software/libpv/download/$(LIBPV).$(LIBPV_SUFFIX)
LIBPV_SOURCE := $(SRCDIR)/$(LIBPV).$(LIBPV_SUFFIX)
LIBPV_DIR := $(BUILDDIR)/$(LIBPV)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
#
# autoconf
#
LIBPV_CONF_TOOL := autoconf
# force disable xsltproc to avoid building docs
LIBPV_CONF_ENV := \
$(CROSS_ENV) \
ac_cv_prog_XSLTPROC=false
LIBPV_CONF_OPT := \
$(CROSS_AUTOCONF_USR) \
--enable-shared \
--enable-static \
--disable-debug
ifdef PTXCONF_LIBPV_EVENT
LIBPV_CONF_OPT += --enable-event
else
LIBPV_CONF_OPT += --disable-event
endif
ifdef PTXCONF_LIBPV_PYTHON
LIBPV_CONF_OPT += --enable-python
else
LIBPV_CONF_OPT += --disable-python
endif
ifdef PTXCONF_LIBPV_XML_EXPAT
LIBPV_CONF_OPT += --with-expat
else
LIBPV_CONF_OPT += --without-expat
endif
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/libpv.targetinstall:
@$(call targetinfo)
@$(call install_init, libpv)
@$(call install_fixup, libpv,PRIORITY,optional)
@$(call install_fixup, libpv,SECTION,base)
@$(call install_fixup, libpv,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>")
@$(call install_fixup, libpv,DESCRIPTION,missing)
@$(call install_lib, libpv, 0, 0, 0644, libpv)
ifdef PTXCONF_LIBPV_PVTOOL
@$(call install_copy, libpv, 0, 0, 0755, -, /usr/bin/pvtool)
endif
ifdef PTXCONF_LIBPV_EVENT
@$(call install_copy, libpv, 0, 0, 0755, -, \
/usr/bin/pv_eventd)
endif
ifdef PTXCONF_LIBPV_PYTHON
@$(call install_copy, libpv, 0, 0, 0644, -, \
/usr/lib/python$(PYTHON_MAJORMINOR)/site-packages/libpv.so)
endif
@$(call install_finish, libpv)
@$(call touch)
# vim: syntax=make
|