diff --git a/lang/perl/Makefile b/lang/perl/Makefile index 4fdc6628b..bcf0bf68d 100644 --- a/lang/perl/Makefile +++ b/lang/perl/Makefile @@ -9,8 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=perl PKG_VERSION:=5.20.0 -PKG_RELEASE:=3 -PKG_MD5SUM:=406ec049ebe3afcc80d9c76ec78ca4f8 +PKG_RELEASE:=4 PKG_SOURCE_URL:=ftp://ftp.cpan.org/pub/CPAN/src/5.0 \ 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 \ ftp://ftp.funet.fi/pub/languages/perl/CPAN/src/5.0 \ http://ftp.funet.fi/pub/languages/perl/CPAN/src/5.0 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_MD5SUM:=406ec049ebe3afcc80d9c76ec78ca4f8 -PKG_LICENSE:=GPLv1 ARTISTIC +PKG_LICENSE:=GPLv1+ ARTISTIC PKG_LICENSE_FILES:=Copying Artistic README PKG_MAINTAINER:=Marcel Denia @@ -39,6 +39,9 @@ ifneq ($(CONFIG_USE_EGLIBC),) EXTRA_LIBS:=bsd EXTRA_LIBDIRS:=$(STAGING_DIR)/lib endif +# Filter -g3, it will break Compress-Raw-Zlib +TARGET_CFLAGS_PERL:=$(patsubst -g3,-g,$(TARGET_CFLAGS)) +TARGET_CPPFLAGS_PERL:=$(patsubst -g3,-g,$(TARGET_CPPFLAGS)) include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/host-build.mk @@ -72,7 +75,7 @@ endef define Build/Configure sed \ -e 's!%%CC%%!$(TARGET_CC)!g' \ - -e 's!%%CFLAGS%%!$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)!g' \ + -e 's!%%CFLAGS%%!$(TARGET_CFLAGS_PERL) $(TARGET_CPPFLAGS_PERL)!g' \ -e 's!%%CPP%%!$(TARGET_CROSS)gcc -E!g' \ -e 's!%%AR%%!$(TARGET_CROSS)ar!g' \ -e 's!%%LD%%!$(TARGET_CROSS)gcc!g' \ @@ -94,6 +97,11 @@ define Build/Compile +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) endef +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/lib/perl5/5.20/CORE + $(CP) $(PKG_INSTALL_DIR)/usr/lib/perl5/5.20/CORE/*.h $(1)/usr/lib/perl5/5.20/CORE/ +endef + define Package/perl/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/perl$(PKG_VERSION) $(1)/usr/bin diff --git a/lang/perl/files/config.sh-arm.in b/lang/perl/files/config.sh-arm.in index a7c197d0a..7d6d0cd25 100644 --- a/lang/perl/files/config.sh-arm.in +++ b/lang/perl/files/config.sh-arm.in @@ -601,13 +601,13 @@ html1direxp='' html3dir=' ' html3direxp='' i16size='2' -i16type='short' +i16type='signed short' i32size='4' -i32type='long' +i32type='signed long' i64size='8' -i64type='long long' +i64type='signed long long' i8size='1' -i8type='char' +i8type='signed char' i_arpainet='define' i_bsdioctl='' i_crypt='define' diff --git a/lang/perl/files/config.sh-armeb.in b/lang/perl/files/config.sh-armeb.in index e56d51f36..e180a5cca 100644 --- a/lang/perl/files/config.sh-armeb.in +++ b/lang/perl/files/config.sh-armeb.in @@ -601,13 +601,13 @@ html1direxp='' html3dir=' ' html3direxp='' i16size='2' -i16type='short' +i16type='signed short' i32size='4' -i32type='long' +i32type='signed long' i64size='8' -i64type='long long' +i64type='signed long long' i8size='1' -i8type='char' +i8type='signed char' i_arpainet='define' i_bsdioctl='' i_crypt='define' diff --git a/lang/perl/files/config.sh-x86_64.in b/lang/perl/files/config.sh-x86_64.in index ebbb34b1d..203edf845 100644 --- a/lang/perl/files/config.sh-x86_64.in +++ b/lang/perl/files/config.sh-x86_64.in @@ -547,7 +547,7 @@ fflushall='undef' find='' firstmakefile='makefile' flex='' -fpossize='20' +fpossize='16' fpostype='fpos_t' freetype='void' from=':' @@ -604,7 +604,7 @@ i32type='int' i64size='8' i64type='long' i8size='1' -i8type='char' +i8type='signed char' i_arpainet='define' i_bsdioctl='' i_crypt='define' @@ -943,7 +943,7 @@ subversion='0' sysman='/usr/share/man/man1' tail='' tar='' -targetarch='i386-linux-uclibc' +targetarch='x86_64-linux-uclibc' tbl='' tee='' test='test' diff --git a/lang/perl/perlbase.mk b/lang/perl/perlbase.mk index fa3c472ab..3dc451c55 100644 --- a/lang/perl/perlbase.mk +++ b/lang/perl/perlbase.mk @@ -458,7 +458,7 @@ TITLE:=essential perl module endef define Package/perlbase-essential/install -$(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,) +$(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,) endef $(eval $(call BuildPackage,perlbase-essential)) diff --git a/lang/perl/perlmod.mk b/lang/perl/perlmod.mk index ab2f4feda..05bcc5e74 100644 --- a/lang/perl/perlmod.mk +++ b/lang/perl/perlmod.mk @@ -20,6 +20,7 @@ define perlmod/Configure $(1) \ AR=ar \ CC=$(GNU_TARGET_NAME)-gcc \ + CCFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \ CCCDLFLAGS=-fPIC \ CCDLFLAGS=-Wl,-E \ DLEXT=so \ @@ -62,6 +63,7 @@ define perlmod/Configure LINKTYPE=dynamic \ DESTDIR=$(PKG_INSTALL_DIR) \ ); + sed 's!^PERL_INC = .*!PERL_INC = $(STAGING_DIR)/usr/lib/perl5/5.20/CORE/!' -i $(PKG_BUILD_DIR)/Makefile endef define perlmod/Compile @@ -87,8 +89,8 @@ define perlmod/Install @echo "---> Stripping modules in: $(strip $(1))$(PERL_SITELIB)" find $(strip $(1))$(PERL_SITELIB) -name \*.pm -or -name \*.pl | \ xargs -r sed -i \ - -e '/^=\(head\|pod\|item\|over\|back\)/,/^=cut/d' \ - -e '/^=\(head\|pod\|item\|over\|back\)/,$$$$d' \ + -e '/^=\(head\|pod\|item\|over\|back\|encoding\)/,/^=cut/d' \ + -e '/^=\(head\|pod\|item\|over\|back\|encoding\)/,$$$$d' \ -e '/^#$$$$/d' \ -e '/^#[^!"'"'"']/d' endef