summaryrefslogtreecommitdiffstats
path: root/rules/host-system-perl.make
blob: d70ae5f6895b6f17c85e4ea64eef53c7b3816bdf (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
# -*-makefile-*-
#
# Copyright (C) 2013 by Michael Olbrich <m.olbrich@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_HOST_SYSTEM_PERL) += host-system-perl
HOST_SYSTEM_PERL_LICENSE = ignore

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

$(STATEDIR)/host-system-perl.prepare:
	@$(call targetinfo)
	@echo "Checking for Perl ..."
	@perl -v >/dev/null 2>&1 || \
		ptxd_bailout "'perl' not found! Please install.";
ifdef PTXCONF_HOST_SYSTEM_PERL_BUILD
	@echo "Checking for Perl: Module::Build"
	@perl -e "require Module::Build" 2>/dev/null || \
		ptxd_bailout "Module::Build perl module is required. \
	Please install libmodule-build-perl (debian)."
endif
ifdef PTXCONF_HOST_SYSTEM_PERL_JSON
	@echo "Checking for Perl: JSON"
	@perl -e "require JSON" 2>/dev/null || \
		ptxd_bailout "JSON perl module is required. \
	Please install libjson-perl (debian)."
endif
ifdef PTXCONF_HOST_SYSTEM_PERL_LOCALE_PO
	@echo "Checking for Perl: Locale::PO"
	@perl -e "require Locale::PO" 2>/dev/null || \
		ptxd_bailout "Locale::PO perl module is required. \
	Please install liblocale-po-perl (debian)."
endif
ifdef PTXCONF_HOST_SYSTEM_PERL_XMLPARSER
	@echo "Checking for Perl: XML::Parser"
	@perl -e "require XML::Parser" 2>/dev/null || \
		ptxd_bailout "XML::Parser perl module is required. \
	Please install libxml-parser-perl (debian)."
endif
	@echo
	@$(call touch)

# vim: syntax=make