summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2005-02-25 02:27:54 +0000
committerEric Andersen <andersen@codepoet.org>2005-02-25 02:27:54 +0000
commitac39d3b13f534b5ccbc4a19c5dfb9b778b0b26de (patch)
treebc81e86931f436c4962493e034c4aa63db2cccbe /package
parent2460dadf0773db6078e0f6428acc6998087599a0 (diff)
downloadbuildroot-novena-ac39d3b13f534b5ccbc4a19c5dfb9b778b0b26de.tar.gz
buildroot-novena-ac39d3b13f534b5ccbc4a19c5dfb9b778b0b26de.zip
Patch from ralphs adding microperl, per
http://bugs.uclibc.org/view.php?id=123
Diffstat (limited to 'package')
-rw-r--r--package/Config.in1
-rw-r--r--package/microperl/Config.in5
-rw-r--r--package/microperl/microperl.mk42
3 files changed, 48 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index f1e1f11a7..2163ae54d 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -59,6 +59,7 @@ source "package/ltrace/Config.in"
source "package/lzo/Config.in"
source "package/m4/Config.in"
source "package/microcom/Config.in"
+source "package/microperl/Config.in"
source "package/microwin/Config.in"
source "package/mkdosfs/Config.in"
source "package/mpg123/Config.in"
diff --git a/package/microperl/Config.in b/package/microperl/Config.in
new file mode 100644
index 000000000..14183f079
--- /dev/null
+++ b/package/microperl/Config.in
@@ -0,0 +1,5 @@
+config BR2_PACKAGE_MICROPERL
+ bool "microperl"
+ default n
+ help
+ Perl without operating-specific functions such as readdir.
diff --git a/package/microperl/microperl.mk b/package/microperl/microperl.mk
new file mode 100644
index 000000000..9d48aa051
--- /dev/null
+++ b/package/microperl/microperl.mk
@@ -0,0 +1,42 @@
+#############################################################
+#
+# microperl
+#
+#############################################################
+MICROPERL_VER=5.8.6
+MICROPERL_SOURCE=perl-$(MICROPERL_VER).tar.bz2
+MICROPERL_SITE=ftp://ftp.cpan.org/pub/CPAN/src/5.0
+MICROPERL_DIR=$(BUILD_DIR)/perl-$(MICROPERL_VER)
+
+$(DL_DIR)/$(MICROPERL_SOURCE):
+ $(WGET) -P $(DL_DIR) $(MICROPERL_SITE)/$(MICROPERL_SOURCE)
+
+$(MICROPERL_DIR)/.source: $(DL_DIR)/$(MICROPERL_SOURCE)
+ bzcat $(DL_DIR)/$(MICROPERL_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ touch $(MICROPERL_DIR)/.source
+
+$(MICROPERL_DIR)/microperl: $(MICROPERL_DIR)/.source
+ $(MAKE) -f Makefile.micro CC=$(TARGET_CC) -C $(MICROPERL_DIR)
+
+$(TARGET_DIR)/usr/bin/microperl: $(MICROPERL_DIR)/microperl
+ cp -dpf $(MICROPERL_DIR)/microperl $(TARGET_DIR)/usr/bin/microperl
+
+microperl: uclibc $(TARGET_DIR)/usr/bin/microperl
+
+microperl-source: $(DL_DIR)/$(MICROPERL_SOURCE)
+
+microperl-clean:
+ rm -f $(TARGET_DIR)/usr/bin/microperl
+ -$(MAKE) -C $(MICROPERL_DIR) clean
+
+microperl-dirclean:
+ rm -rf $(MICROPERL_DIR)
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_MICROPERL)),y)
+TARGETS+=microperl
+endif