diff options
-rw-r--r-- | rules/host-system-perl.in | 12 | ||||
-rw-r--r-- | rules/host-system-perl.make | 34 |
2 files changed, 46 insertions, 0 deletions
diff --git a/rules/host-system-perl.in b/rules/host-system-perl.in new file mode 100644 index 000000000..fc487ced8 --- /dev/null +++ b/rules/host-system-perl.in @@ -0,0 +1,12 @@ +## SECTION=hosttools_noprompt + +config HOST_SYSTEM_PERL + tristate + +if HOST_SYSTEM_PERL + +config HOST_SYSTEM_PERL_XMLPARSER + bool + +endif + diff --git a/rules/host-system-perl.make b/rules/host-system-perl.make new file mode 100644 index 000000000..8a7b33cf0 --- /dev/null +++ b/rules/host-system-perl.make @@ -0,0 +1,34 @@ +# -*-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_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 |