Browse Source

Merge pull request #123 from Naoir/perl

perl: More bugfixes, correct PKG_LICENSE
sbyx 10 years ago
parent
commit
6eb2ac4815

+ 12
- 4
lang/perl/Makefile View File

9
 
9
 
10
 PKG_NAME:=perl
10
 PKG_NAME:=perl
11
 PKG_VERSION:=5.20.0
11
 PKG_VERSION:=5.20.0
12
-PKG_RELEASE:=3
13
-PKG_MD5SUM:=406ec049ebe3afcc80d9c76ec78ca4f8
12
+PKG_RELEASE:=4
14
 
13
 
15
 PKG_SOURCE_URL:=ftp://ftp.cpan.org/pub/CPAN/src/5.0 \
14
 PKG_SOURCE_URL:=ftp://ftp.cpan.org/pub/CPAN/src/5.0 \
16
 		http://www.cpan.org/src/5.0/perl-5.20.0.tar.gz \
15
 		http://www.cpan.org/src/5.0/perl-5.20.0.tar.gz \
21
 		ftp://ftp.funet.fi/pub/languages/perl/CPAN/src/5.0 \
20
 		ftp://ftp.funet.fi/pub/languages/perl/CPAN/src/5.0 \
22
 		http://ftp.funet.fi/pub/languages/perl/CPAN/src/5.0
21
 		http://ftp.funet.fi/pub/languages/perl/CPAN/src/5.0
23
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
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
 PKG_LICENSE_FILES:=Copying Artistic README
26
 PKG_LICENSE_FILES:=Copying Artistic README
27
 PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
27
 PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
28
 
28
 
39
 	EXTRA_LIBS:=bsd
39
 	EXTRA_LIBS:=bsd
40
 	EXTRA_LIBDIRS:=$(STAGING_DIR)/lib
40
 	EXTRA_LIBDIRS:=$(STAGING_DIR)/lib
41
 endif
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
 include $(INCLUDE_DIR)/package.mk
46
 include $(INCLUDE_DIR)/package.mk
44
 include $(INCLUDE_DIR)/host-build.mk
47
 include $(INCLUDE_DIR)/host-build.mk
72
 define Build/Configure
75
 define Build/Configure
73
 	sed \
76
 	sed \
74
 		-e 's!%%CC%%!$(TARGET_CC)!g' \
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
 		-e 's!%%CPP%%!$(TARGET_CROSS)gcc -E!g' \
79
 		-e 's!%%CPP%%!$(TARGET_CROSS)gcc -E!g' \
77
 		-e 's!%%AR%%!$(TARGET_CROSS)ar!g' \
80
 		-e 's!%%AR%%!$(TARGET_CROSS)ar!g' \
78
 		-e 's!%%LD%%!$(TARGET_CROSS)gcc!g' \
81
 		-e 's!%%LD%%!$(TARGET_CROSS)gcc!g' \
94
 	+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)
97
 	+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)
95
 endef
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
 define Package/perl/install
105
 define Package/perl/install
98
 	$(INSTALL_DIR) $(1)/usr/bin
106
 	$(INSTALL_DIR) $(1)/usr/bin
99
 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/perl$(PKG_VERSION) $(1)/usr/bin
107
 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/perl$(PKG_VERSION) $(1)/usr/bin

+ 4
- 4
lang/perl/files/config.sh-arm.in View File

601
 html3dir=' '
601
 html3dir=' '
602
 html3direxp=''
602
 html3direxp=''
603
 i16size='2'
603
 i16size='2'
604
-i16type='short'
604
+i16type='signed short'
605
 i32size='4'
605
 i32size='4'
606
-i32type='long'
606
+i32type='signed long'
607
 i64size='8'
607
 i64size='8'
608
-i64type='long long'
608
+i64type='signed long long'
609
 i8size='1'
609
 i8size='1'
610
-i8type='char'
610
+i8type='signed char'
611
 i_arpainet='define'
611
 i_arpainet='define'
612
 i_bsdioctl=''
612
 i_bsdioctl=''
613
 i_crypt='define'
613
 i_crypt='define'

+ 4
- 4
lang/perl/files/config.sh-armeb.in View File

601
 html3dir=' '
601
 html3dir=' '
602
 html3direxp=''
602
 html3direxp=''
603
 i16size='2'
603
 i16size='2'
604
-i16type='short'
604
+i16type='signed short'
605
 i32size='4'
605
 i32size='4'
606
-i32type='long'
606
+i32type='signed long'
607
 i64size='8'
607
 i64size='8'
608
-i64type='long long'
608
+i64type='signed long long'
609
 i8size='1'
609
 i8size='1'
610
-i8type='char'
610
+i8type='signed char'
611
 i_arpainet='define'
611
 i_arpainet='define'
612
 i_bsdioctl=''
612
 i_bsdioctl=''
613
 i_crypt='define'
613
 i_crypt='define'

+ 3
- 3
lang/perl/files/config.sh-x86_64.in View File

547
 find=''
547
 find=''
548
 firstmakefile='makefile'
548
 firstmakefile='makefile'
549
 flex=''
549
 flex=''
550
-fpossize='20'
550
+fpossize='16'
551
 fpostype='fpos_t'
551
 fpostype='fpos_t'
552
 freetype='void'
552
 freetype='void'
553
 from=':'
553
 from=':'
604
 i64size='8'
604
 i64size='8'
605
 i64type='long'
605
 i64type='long'
606
 i8size='1'
606
 i8size='1'
607
-i8type='char'
607
+i8type='signed char'
608
 i_arpainet='define'
608
 i_arpainet='define'
609
 i_bsdioctl=''
609
 i_bsdioctl=''
610
 i_crypt='define'
610
 i_crypt='define'
943
 sysman='/usr/share/man/man1'
943
 sysman='/usr/share/man/man1'
944
 tail=''
944
 tail=''
945
 tar=''
945
 tar=''
946
-targetarch='i386-linux-uclibc'
946
+targetarch='x86_64-linux-uclibc'
947
 tbl=''
947
 tbl=''
948
 tee=''
948
 tee=''
949
 test='test'
949
 test='test'

+ 1
- 1
lang/perl/perlbase.mk View File

458
 endef
458
 endef
459
 
459
 
460
 define Package/perlbase-essential/install
460
 define Package/perlbase-essential/install
461
-$(call perlmod/Install,$(1),Carp Carp.pm Exporter Exporter.pm constant.pm lib.pm locale.pm overload.pm strict.pm subs.pm vars.pm warnings warnings.pm,)
461
+$(call perlmod/Install,$(1),Carp Carp.pm Exporter Exporter.pm constant.pm lib.pm locale.pm overload.pm strict.pm subs.pm vars.pm warnings warnings.pm overloading.pm,)
462
 endef
462
 endef
463
 
463
 
464
 $(eval $(call BuildPackage,perlbase-essential))
464
 $(eval $(call BuildPackage,perlbase-essential))

+ 4
- 2
lang/perl/perlmod.mk View File

20
 		$(1) \
20
 		$(1) \
21
 		AR=ar \
21
 		AR=ar \
22
 		CC=$(GNU_TARGET_NAME)-gcc \
22
 		CC=$(GNU_TARGET_NAME)-gcc \
23
+		CCFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
23
 		CCCDLFLAGS=-fPIC \
24
 		CCCDLFLAGS=-fPIC \
24
 		CCDLFLAGS=-Wl,-E \
25
 		CCDLFLAGS=-Wl,-E \
25
 		DLEXT=so \
26
 		DLEXT=so \
62
 		LINKTYPE=dynamic \
63
 		LINKTYPE=dynamic \
63
 		DESTDIR=$(PKG_INSTALL_DIR) \
64
 		DESTDIR=$(PKG_INSTALL_DIR) \
64
 	);
65
 	);
66
+	sed 's!^PERL_INC = .*!PERL_INC = $(STAGING_DIR)/usr/lib/perl5/5.20/CORE/!' -i $(PKG_BUILD_DIR)/Makefile
65
 endef
67
 endef
66
 
68
 
67
 define perlmod/Compile
69
 define perlmod/Compile
87
 	@echo "---> Stripping modules in: $(strip $(1))$(PERL_SITELIB)"
89
 	@echo "---> Stripping modules in: $(strip $(1))$(PERL_SITELIB)"
88
 	find $(strip $(1))$(PERL_SITELIB) -name \*.pm -or -name \*.pl | \
90
 	find $(strip $(1))$(PERL_SITELIB) -name \*.pm -or -name \*.pl | \
89
 	xargs -r sed -i \
91
 	xargs -r sed -i \
90
-		-e '/^=\(head\|pod\|item\|over\|back\)/,/^=cut/d' \
91
-		-e '/^=\(head\|pod\|item\|over\|back\)/,$$$$d' \
92
+		-e '/^=\(head\|pod\|item\|over\|back\|encoding\)/,/^=cut/d' \
93
+		-e '/^=\(head\|pod\|item\|over\|back\|encoding\)/,$$$$d' \
92
 		-e '/^#$$$$/d' \
94
 		-e '/^#$$$$/d' \
93
 		-e '/^#[^!"'"'"']/d'
95
 		-e '/^#[^!"'"'"']/d'
94
 endef
96
 endef