[12/14] perl: add DB_File

Submitted by Francois Perrad on Sept. 1, 2012, 7:25 a.m.

Details

Message ID 1346484332-31433-12-git-send-email-francois.perrad@gadz.org
State Superseded
Headers show

Commit Message

Francois Perrad Sept. 1, 2012, 7:25 a.m.
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
 package/perl/Config.in |    6 ++++++
 package/perl/perl.mk   |    5 +++++
 2 files changed, 11 insertions(+)

Patch hide | download patch | download mbox

diff --git a/package/perl/Config.in b/package/perl/Config.in
index 1f044eb..9df487a 100644
--- a/package/perl/Config.in
+++ b/package/perl/Config.in
@@ -20,4 +20,10 @@  config BR2_PACKAGE_PERL_ONLY_MINIPERL
 	  Install only miniperl (without dynamic module loader)
 	  Usually used to bootstrap a full Perl (@INC contains only .).
 
+config BR2_PACKAGE_PERL_DB_FILE
+	bool "DB_File"
+	select BR2_PACKAGE_BERKELEYDB
+	help
+	  Build the DB_File module.
+
 endif
diff --git a/package/perl/perl.mk b/package/perl/perl.mk
index 5161654..7785322 100644
--- a/package/perl/perl.mk
+++ b/package/perl/perl.mk
@@ -12,6 +12,11 @@  PERL_LICENSE = Artistic
 PERL_LICENSE_FILES = Artistic
 PERL_INSTALL_STAGING = YES
 
+ifdef BR2_PACKAGE_PERL_DB_FILE
+    PERL_DEPENDENCIES += berkeleydb
+endif
+HOST_PERL_DEPENDENCIES =
+
 ifeq ($(shell expr $(PERL_VERSION_MAJOR) % 2), 1)
 PERL_USE_DEVEL=-Dusedevel
 endif