move perl/microperl in a 'Perl' submenu, cleanup
[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_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
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/microperl
25 SUBMENU:=Perl
26 SECTION:=lang
27 CATEGORY:=Languages
28 TITLE:=A really minimal perl
29 URL:=http://www.perl.com/
30 endef
31
32 define Package/microperl/description
33 A perl package without operating-specific functions such as readdir.
34 endef
35
36 define Build/Configure
37 endef
38
39 define Build/Compile
40 $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.micro \
41 CC="$(TARGET_CC)" OPTIMIZE="$(TARGET_CFLAGS)"
42 endef
43
44 define Package/microperl/install
45 $(INSTALL_DIR) $(1)/usr/bin
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/microperl $(1)/usr/bin/
47 endef
48
49 $(eval $(call BuildPackage,microperl))
50