summaryrefslogtreecommitdiffstats
path: root/rules/evtest.make
blob: c27ddf59f289de0376bfcb23c161a228b2209eec (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
# -*-makefile-*-
#
# Copyright (C) 2011 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_EVTEST) += evtest

#
# Paths and names
#
EVTEST_VERSION	:= 1.25
EVTEST_MD5	:= 770d6af03affe976bdbe3ad1a922c973
EVTEST		:= evtest-$(EVTEST_VERSION)
EVTEST_SUFFIX	:= tar.bz2
EVTEST_URL	:= http://enialis.net/~jrd/salix/evtest/1.25-i486-1cp/$(EVTEST).$(EVTEST_SUFFIX)
EVTEST_SOURCE	:= $(SRCDIR)/$(EVTEST).$(EVTEST_SUFFIX)
EVTEST_DIR	:= $(BUILDDIR)/$(EVTEST)
EVTEST_LICENSE	:= GPLv2

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

EVTEST_CONF_ENV := $(CROSS_ENV)

# disable pkg-config so that libxml2 is never found
ifndef PTXCONF_EVTEST_CAPTURE
EVTEST_CONF_ENV += PKG_CONFIG=false
endif

#
# autoconf
#
EVTEST_CONF_TOOL	:= autoconf

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

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

	@$(call install_init, evtest)
	@$(call install_fixup, evtest,PRIORITY,optional)
	@$(call install_fixup, evtest,SECTION,base)
	@$(call install_fixup, evtest,AUTHOR,"Juergen Beisert <jbe@pengutronix.de>")
	@$(call install_fixup, evtest,DESCRIPTION,missing)

ifdef PTXCONF_EVTEST_EVTEST
	@$(call install_copy, evtest, 0, 0, 0755, -, /usr/bin/evtest)
endif

ifdef PTXCONF_EVTEST_CAPTURE
	@$(call install_copy, evtest, 0, 0, 0755, -, /usr/bin/evtest-capture)
	@$(call install_copy, evtest, 0, 0, 0755, -, \
		/usr/share/evtest/evtest-create-device.xsl)
endif

	@$(call install_finish, evtest)

	@$(call touch)

# vim: syntax=make