Fix the RequireCommand macro
[openwrt/svn-archive/archive.git] / lang / perl / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=perl
12 PKG_VERSION:=5.8.6
13 PKG_RELEASE:=1
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=ftp://ftp.cpan.org/pub/CPAN/src/5.0 \
18 ftp://ftp.mpi-sb.mpg.de/pub/perl/CPAN/src/5.0 \
19 ftp://ftp.gmd.de/mirrors/CPAN/src/5.0 \
20 ftp://ftp.funet.fi/pub/languages/perl/CPAN/src/5.0
21 PKG_MD5SUM:=8d4aa4e061fd5bc0c39e4f0a63267880
22 PKG_CAT:=zcat
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/microperl
27 SECTION:=utils
28 CATEGORY:=Utilities
29 TITLE:=A really minimal perl
30 DESCRIPTION:=A really minimal perl.\\\
31 A perl package without operating-specific functions such as readdir.
32 URL:=http://www.perl.com/
33 endef
34
35 define Build/Configure
36 endef
37
38 define Build/Compile
39 $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.micro \
40 CC="$(TARGET_CC)" OPTIMIZE="$(TARGET_CFLAGS)"
41 endef
42
43 define Package/microperl/install
44 install -d -m0755 $(1)/usr/bin
45 install -m0755 $(PKG_BUILD_DIR)/microperl $(1)/usr/bin/
46 endef
47
48 $(eval $(call BuildPackage,microperl))