perl: add DB_File
authorFrancois Perrad <fperrad@gmail.com>
Fri, 19 Oct 2012 03:13:48 +0000 (03:13 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sat, 3 Nov 2012 10:41:29 +0000 (11:41 +0100)
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/perl/Config.in
package/perl/perl.mk

index 0a41a97c39d67298620ab3623a03d2249912af13..6cb89f02937f457c20bfbd218bdd5636c8f850ac 100644 (file)
@@ -14,5 +14,15 @@ config BR2_PACKAGE_PERL
 
          http://www.perl.org/
 
+if BR2_PACKAGE_PERL
+
+config BR2_PACKAGE_PERL_DB_FILE
+       bool "DB_File"
+       select BR2_PACKAGE_BERKELEYDB
+       help
+         Build the DB_File module.
+
+endif
+
 comment "perl requires an architecture supported by qemu"
        depends on BR2_avr32 || BR2_bfin || BR2_sh2 || BR2_sh2a || BR2_sh3 || BR2_sh3eb || BR2_sh64
index 7ac1aed876b5911bbb9ff96e7abca67d468e37df..186158bf296a762bdd12c599877864617c12946b 100644 (file)
@@ -11,7 +11,11 @@ PERL_SOURCE = perl-$(PERL_VERSION).tar.bz2
 PERL_LICENSE = Artistic
 PERL_LICENSE_FILES = Artistic
 PERL_INSTALL_STAGING = YES
+
 PERL_DEPENDENCIES = host-qemu
+ifeq ($(BR2_PACKAGE_BERKELEYDB),y)
+    PERL_DEPENDENCIES += berkeleydb
+endif
 
 PERL_CONF_OPT = -des \
                -Dusecrosscompile \