From: Nicolas Thill Date: Tue, 1 Aug 2006 12:55:35 +0000 (+0000) Subject: port (micro)perl to buildroot-ng X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2cde60c16324e2c9cdf957fb372bc40567cdf2c1;p=openwrt%2Fsvn-archive%2Fpackages.git port (micro)perl to buildroot-ng SVN-Revision: 4365 --- diff --git a/lang/perl/Makefile b/lang/perl/Makefile new file mode 100644 index 000000000..936b1497e --- /dev/null +++ b/lang/perl/Makefile @@ -0,0 +1,48 @@ +# +# Copyright (C) 2006 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +# $Id$ + +include $(TOPDIR)/rules.mk + +PKG_NAME:=perl +PKG_VERSION:=5.8.6 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=ftp://ftp.cpan.org/pub/CPAN/src/5.0 \ + ftp://ftp.mpi-sb.mpg.de/pub/perl/CPAN/src/5.0 \ + ftp://ftp.gmd.de/mirrors/CPAN/src/5.0 \ + ftp://ftp.funet.fi/pub/languages/perl/CPAN/src/5.0 +PKG_MD5SUM:=8d4aa4e061fd5bc0c39e4f0a63267880 +PKG_CAT:=zcat + +include $(INCLUDE_DIR)/package.mk + +define Package/microperl + SECTION:=utils + CATEGORY:=Utilities + TITLE:=A really minimal perl + DESCRIPTION:=A really minimal perl.\\\ + A perl package without operating-specific functions such as readdir. + URL:=http://www.perl.com/ +endef + +define Build/Configure +endef + +define Build/Compile + $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.micro \ + CC="$(TARGET_CC)" OPTIMIZE="$(TARGET_CFLAGS)" +endef + +define Package/microperl/install + install -d -m0755 $(1)/usr/bin + install -m0755 $(PKG_BUILD_DIR)/microperl $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,microperl))