#
-# Copyright (C) 2006 OpenWrt.org
+# Copyright (C) 2006-2008 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/perl/$(PKG_NAME)-$(PKG_VERSION)
-PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
URL:=http://www.perl.com/
endef
-define Package/perl/Default/description
- Perl rocks
-endef
-
define Package/microperl
$(call Package/perl/Default)
TITLE+=(minimal version)
endef
-define Package/perl/description
-$(call Package/perl/Default/description)
+define Package/microperl/description
A perl package without operating-specific functions such as readdir.
endef
MAINTAINER:=Peter Colberg <peter@petercolberg.org>
endef
+define Package/perl/description
+ Perl is a stable, cross platform programming language.
+ It is used for mission critical projects in the public and private sectors
+ and is widely used to program web applications of all needs.
+endef
+
define Build/perl/Configure
@echo
@echo "===> Stage 1: Configure host perl"
-e 's!%%LDFLAGS%%!-rdynamic -L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib!g' \
-e 's!%%LIBDIRS%%!$(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib!g' \
-e 's!%%INCDIRS%%!$(STAGING_DIR)/include $(STAGING_DIR)/usr/include!g' \
- files/config.sh-$(REAL_GNU_TARGET_NAME).in \
+ files/config.sh-$(patsubst i386,i486,$(ARCH)).in \
> $(PKG_BUILD_DIR)/config.sh
(cd $(PKG_BUILD_DIR) && ./Configure -S)
endef
endif
$(eval $(Build/perl))
+define Build/Configure
+endef
+
+define Build/Compile
+endef
+
$(eval $(call BuildPackage,microperl))
$(eval $(call BuildPackage,perl))
+$(eval $(call RequireCommand,rsync, \
+ $(PKG_NAME) requires rsync installed on the host-system. \
+))
+
-include perlbase.mk