From e96c649294fd763fa8631b866397a07b9434bbd3 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 6 Jan 2014 10:01:31 +0100 Subject: add full perl, first half of supported archs --- package/perl/Makefile | 56 ++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 47 insertions(+), 9 deletions(-) (limited to 'package/perl/Makefile') diff --git a/package/perl/Makefile b/package/perl/Makefile index 7fe7fb3fd..30d579b22 100644 --- a/package/perl/Makefile +++ b/package/perl/Makefile @@ -4,30 +4,68 @@ include ${TOPDIR}/rules.mk PKG_NAME:= perl -PKG_VERSION:= 5.12.3 -PKG_RELEASE:= 2 -PKG_MD5SUM:= 29975a69dce54e47fcd6331c085c6c99 -PKG_DESCR:= full-blown Perl +PKG_VERSION:= 5.18.1 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 304cb5bd18e48c44edd6053337d3386d +PKG_DESCR:= Perl interpreter PKG_SECTION:= lang +PKG_BUILDDEP:= perl-host PKG_URL:= http://www.perl.org/ PKG_SITES:= http://www.cpan.org/src/ -PKG_ARCH_DEPENDS:= native - +include ${TOPDIR}/mk/host.mk include ${TOPDIR}/mk/package.mk +$(eval $(call HOST_template,PERL,perl,${PKG_VERSION}-${PKG_RELEASE})) $(eval $(call PKG_template,PERL,perl,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) +HOST_STYLE:= manual CONFIG_STYLE:= manual +BUILD_STYLE:= manual +INSTALL_STYLE:= manual + +host-configure: + (cd ${WRKBUILD}; ./Configure -der -Uusedl) + +host-build: + cd ${WRKBUILD} && env CC_FOR_BUILD="gcc" ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \ + ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET} $(MAKE_TRACE) + +perl-hostinstall: + $(CP) ${WRKBUILD}/miniperl $(STAGING_HOST_DIR)/usr/bin + $(CP) ${WRKBUILD}/perl $(STAGING_HOST_DIR)/usr/bin + +do-configure: + sed \ + -e 's!%%CC%%!$(TARGET_CC)!g' \ + -e 's!%%CFLAGS%%!$(TARGET_CFLAGS) -DUSE_CROSS_COMPILE $(TARGET_CPPFLAGS)!g' \ + -e 's!%%CPP%%!$(TARGET_CROSS)gcc -E!g' \ + -e 's!%%AR%%!$(TARGET_CROSS)ar!g' \ + -e 's!%%LD%%!$(TARGET_CROSS)gcc!g' \ + -e 's!%%LDFLAGS%%!-rdynamic $(TARGET_LDFLAGS)!g' \ + -e 's!%%CPPFLAGS%%!$(TARGET_CPPFLAGS)!g' \ + -e 's!%%LIBDIRS%%!$(STAGING_TARGET_DIR)/lib $(STAGING_TARGET_DIR)/usr/lib!g' \ + -e 's!%%INCDIRS%%!$(STAGING_TARGET_DIR)/include $(STAGING_TARGET_DIR)/usr/include!g' \ + ./files/config.sh.$(CPU_ARCH) > ${WRKBUILD}/config.sh + (cd ${WRKBUILD}; ./Configure -S) + +do-build: + (cd ${WRKBUILD}; $(CP) config.h xconfig.h; $(MAKE) miniperl) + (cd ${WRKBUILD}; $(CP) miniperl miniperl.target) + $(CP) $(STAGING_HOST_DIR)/usr/bin/miniperl ${WRKBUILD}/ + touch ${WRKBUILD}/miniperl + (cd ${WRKBUILD}; $(MAKE)) -pre-configure: - (cd ${WRKBUILD}; ./Configure -des -Dusethreads -Dcc=gcc -Dprefix=/usr -A ccflags="${TARGET_CFLAGS}"); +do-install: + (cd ${WRKBUILD}; $(CP) miniperl.target miniperl) + (cd ${WRKBUILD}; $(STAGING_HOST_DIR)/usr/bin/perl installperl --destdir=${WRKINST}) perl-install: ${INSTALL_DIR} ${IDIR_PERL}/usr/bin ${INSTALL_DIR} ${IDIR_PERL}/usr/lib/perl5/${PKG_VERSION} ${CP} ${WRKINST}/usr/lib/perl5/${PKG_VERSION}/* \ ${IDIR_PERL}/usr/lib/perl5/${PKG_VERSION} - ${INSTALL_BIN} ${WRKINST}/usr/bin/perl ${IDIR_PERL}/usr/bin/perl + ${INSTALL_BIN} ${WRKINST}/usr/bin/perl ${IDIR_PERL}/usr/bin/ +include ${TOPDIR}/mk/host-bottom.mk include ${TOPDIR}/mk/pkg-bottom.mk -- cgit v1.2.3 From 389e67da44097077ce8bfa775a359bcdb0b60601 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 7 Jan 2014 19:33:30 +0100 Subject: add i686 and sparc support for perl package, use miniconfig --- package/perl/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'package/perl/Makefile') diff --git a/package/perl/Makefile b/package/perl/Makefile index 30d579b22..65be2d37c 100644 --- a/package/perl/Makefile +++ b/package/perl/Makefile @@ -24,6 +24,9 @@ CONFIG_STYLE:= manual BUILD_STYLE:= manual INSTALL_STYLE:= manual +# ld memory exhausted problem +TARGET_CFLAGS:= $(subst g3,g,$(TARGET_CFLAGS)) + host-configure: (cd ${WRKBUILD}; ./Configure -der -Uusedl) @@ -46,7 +49,7 @@ do-configure: -e 's!%%CPPFLAGS%%!$(TARGET_CPPFLAGS)!g' \ -e 's!%%LIBDIRS%%!$(STAGING_TARGET_DIR)/lib $(STAGING_TARGET_DIR)/usr/lib!g' \ -e 's!%%INCDIRS%%!$(STAGING_TARGET_DIR)/include $(STAGING_TARGET_DIR)/usr/include!g' \ - ./files/config.sh.$(CPU_ARCH) > ${WRKBUILD}/config.sh + ./files/config.sh.$(CPU_ARCH).$(ADK_TARGET_LIBC) > ${WRKBUILD}/config.sh (cd ${WRKBUILD}; ./Configure -S) do-build: -- cgit v1.2.3 From 5f3c1c3b4c75409070f8a0f32b27650ef4d39864 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 7 Jan 2014 20:47:27 +0100 Subject: avoid usage of host perl by f.e. firefox --- package/perl/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'package/perl/Makefile') diff --git a/package/perl/Makefile b/package/perl/Makefile index 30d579b22..ed5090ea2 100644 --- a/package/perl/Makefile +++ b/package/perl/Makefile @@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk PKG_NAME:= perl PKG_VERSION:= 5.18.1 -PKG_RELEASE:= 1 +PKG_RELEASE:= 2 PKG_MD5SUM:= 304cb5bd18e48c44edd6053337d3386d PKG_DESCR:= Perl interpreter PKG_SECTION:= lang @@ -33,7 +33,7 @@ host-build: perl-hostinstall: $(CP) ${WRKBUILD}/miniperl $(STAGING_HOST_DIR)/usr/bin - $(CP) ${WRKBUILD}/perl $(STAGING_HOST_DIR)/usr/bin + $(CP) ${WRKBUILD}/perl $(STAGING_HOST_DIR)/usr/bin/perl.host do-configure: sed \ @@ -58,7 +58,7 @@ do-build: do-install: (cd ${WRKBUILD}; $(CP) miniperl.target miniperl) - (cd ${WRKBUILD}; $(STAGING_HOST_DIR)/usr/bin/perl installperl --destdir=${WRKINST}) + (cd ${WRKBUILD}; $(STAGING_HOST_DIR)/usr/bin/perl.host installperl --destdir=${WRKINST}) perl-install: ${INSTALL_DIR} ${IDIR_PERL}/usr/bin -- cgit v1.2.3