Convert microperl to new packaging style
[openwrt.git] / package / microperl / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=microperl
6 PKG_VERSION:=5.8.6
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=8d4aa4e061fd5bc0c39e4f0a63267880
9
10 PKG_SOURCE_URL:=ftp://ftp.cpan.org/pub/CPAN/src/5.0 \
11 ftp://ftp.mpi-sb.mpg.de/pub/perl/CPAN/src/5.0 \
12 ftp://ftp.gmd.de/mirrors/CPAN/src/5.0 \
13 ftp://ftp.funet.fi/pub/languages/perl/CPAN/src/5.0
14 PKG_SOURCE:=perl-$(PKG_VERSION).tar.gz
15 PKG_CAT:=zcat
16
17 PKG_BUILD_DIR:=$(BUILD_DIR)/perl-$(PKG_VERSION)
18
19 include $(TOPDIR)/package/rules.mk
20
21 $(eval $(call PKG_template,MICROPERL,microperl,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22
23 $(PKG_BUILD_DIR)/.built:
24 $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.micro \
25 CC="$(TARGET_CC)" OPTIMIZE="$(TARGET_CFLAGS)"
26 touch $(PKG_BUILD_DIR)/.built
27
28 $(IPKG_MICROPERL):
29 install -d -m0755 $(IDIR_MICROPERL)/usr/bin
30 install -m0755 $(PKG_BUILD_DIR)/microperl $(IDIR_MICROPERL)/usr/bin/
31 $(RSTRIP) $(IDIR_MICROPERL)
32 $(IPKG_BUILD) $(IDIR_MICROPERL) $(PACKAGE_DIR)
This page took 0.0452 seconds and 5 git commands to generate.