summaryrefslogtreecommitdiffstats
path: root/rules/host-system-perl.make
blob: e0415105befb8dca60ef4d4a7eade96e56ee993f (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
# -*-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

# ----------------------------------------------------------------------------
# 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_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