|
@@ -9,8 +9,7 @@ include $(TOPDIR)/rules.mk
|
9
|
9
|
|
10
|
10
|
PKG_NAME:=perl
|
11
|
11
|
PKG_VERSION:=5.20.0
|
12
|
|
-PKG_RELEASE:=3
|
13
|
|
-PKG_MD5SUM:=406ec049ebe3afcc80d9c76ec78ca4f8
|
|
12
|
+PKG_RELEASE:=4
|
14
|
13
|
|
15
|
14
|
PKG_SOURCE_URL:=ftp://ftp.cpan.org/pub/CPAN/src/5.0 \
|
16
|
15
|
http://www.cpan.org/src/5.0/perl-5.20.0.tar.gz \
|
|
@@ -21,8 +20,9 @@ PKG_SOURCE_URL:=ftp://ftp.cpan.org/pub/CPAN/src/5.0 \
|
21
|
20
|
ftp://ftp.funet.fi/pub/languages/perl/CPAN/src/5.0 \
|
22
|
21
|
http://ftp.funet.fi/pub/languages/perl/CPAN/src/5.0
|
23
|
22
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
23
|
+PKG_MD5SUM:=406ec049ebe3afcc80d9c76ec78ca4f8
|
24
|
24
|
|
25
|
|
-PKG_LICENSE:=GPLv1 ARTISTIC
|
|
25
|
+PKG_LICENSE:=GPLv1+ ARTISTIC
|
26
|
26
|
PKG_LICENSE_FILES:=Copying Artistic README
|
27
|
27
|
PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
|
28
|
28
|
|
|
@@ -39,6 +39,9 @@ ifneq ($(CONFIG_USE_EGLIBC),)
|
39
|
39
|
EXTRA_LIBS:=bsd
|
40
|
40
|
EXTRA_LIBDIRS:=$(STAGING_DIR)/lib
|
41
|
41
|
endif
|
|
42
|
+# Filter -g3, it will break Compress-Raw-Zlib
|
|
43
|
+TARGET_CFLAGS_PERL:=$(patsubst -g3,-g,$(TARGET_CFLAGS))
|
|
44
|
+TARGET_CPPFLAGS_PERL:=$(patsubst -g3,-g,$(TARGET_CPPFLAGS))
|
42
|
45
|
|
43
|
46
|
include $(INCLUDE_DIR)/package.mk
|
44
|
47
|
include $(INCLUDE_DIR)/host-build.mk
|
|
@@ -72,7 +75,7 @@ endef
|
72
|
75
|
define Build/Configure
|
73
|
76
|
sed \
|
74
|
77
|
-e 's!%%CC%%!$(TARGET_CC)!g' \
|
75
|
|
- -e 's!%%CFLAGS%%!$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)!g' \
|
|
78
|
+ -e 's!%%CFLAGS%%!$(TARGET_CFLAGS_PERL) $(TARGET_CPPFLAGS_PERL)!g' \
|
76
|
79
|
-e 's!%%CPP%%!$(TARGET_CROSS)gcc -E!g' \
|
77
|
80
|
-e 's!%%AR%%!$(TARGET_CROSS)ar!g' \
|
78
|
81
|
-e 's!%%LD%%!$(TARGET_CROSS)gcc!g' \
|
|
@@ -94,6 +97,11 @@ define Build/Compile
|
94
|
97
|
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)
|
95
|
98
|
endef
|
96
|
99
|
|
|
100
|
+define Build/InstallDev
|
|
101
|
+ $(INSTALL_DIR) $(1)/usr/lib/perl5/5.20/CORE
|
|
102
|
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/perl5/5.20/CORE/*.h $(1)/usr/lib/perl5/5.20/CORE/
|
|
103
|
+endef
|
|
104
|
+
|
97
|
105
|
define Package/perl/install
|
98
|
106
|
$(INSTALL_DIR) $(1)/usr/bin
|
99
|
107
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/perl$(PKG_VERSION) $(1)/usr/bin
|