2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=ftp://ftp.cpan.org/pub/CPAN/src/5.0 \
17 ftp://ftp.mpi-sb.mpg.de/pub/perl/CPAN/src/5.0 \
18 ftp://ftp.gmd.de/mirrors/CPAN/src/5.0 \
19 ftp://ftp.funet.fi/pub/languages/perl/CPAN/src/5.0
20 PKG_MD5SUM:=8d4aa4e061fd5bc0c39e4f0a63267880
22 include $(INCLUDE_DIR)/package.mk
24 define Package/microperl
28 TITLE:=A really minimal perl
29 URL:=http://www.perl.com/
32 define Package/microperl/description
33 A perl package without operating-specific functions such as readdir.
36 define Build/Configure
40 $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.micro \
41 CC="$(TARGET_CC)" OPTIMIZE="$(TARGET_CFLAGS)"
44 define Package/microperl/install
45 $(INSTALL_DIR) $(1)/usr/bin
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/microperl $(1)/usr/bin/
49 $(eval $(call BuildPackage,microperl))