# HG changeset patch # User Antoine Bodin # Date 1296084050 -3600 # Node ID 32156be0a770bb3f93b7bcb8b7e06dc7630b4553 # Parent ead12adce9b46b3d4710fa08fac603ed350a473b imported patch toolchain/perl.patch diff -r ead12adce9b4 -r 32156be0a770 perl/receipt --- a/perl/receipt Thu Jan 27 00:20:50 2011 +0100 +++ b/perl/receipt Thu Jan 27 00:20:50 2011 +0100 @@ -6,19 +6,36 @@ SHORT_DESC="Full Perl interpreter and modules." MAINTAINER="pankso@slitaz.org" TARBALL="$PACKAGE-$VERSION.tar.bz2" -DEPENDS="libdb gdbm" +DEPENDS="libdb gdbm zlib" +BUILD_DEPENDS="db gdbm zlib" WEB_SITE="http://www.perl.org/" WGET_URL="http://ftp.funet.fi/pub/CPAN/src/$TARBALL" PROVIDE="microperl" +# Rules to compile & install the temporary toolchain. +cook_tmp_toolchain() +{ + cd $src + { sh Configure -des -Dprefix=/tools \ + -Dstatic_ext='Data/Dumper Fcntl IO' && + + # Only few tools are needed in the tmp toolchain. + make perl utilities ext/Errno/pm_to_blib + } || return 1 + cp perl pod/pod2man /tools/bin + mkdir -p /tools/lib/perl5/5.12.3 + cp -R lib/* /tools/lib/perl5/5.12.3 +} + + # Rules to configure and make the package. # compile_rules() { cd $src ./configure.gnu --prefix=/usr && - make -j 4 && - make DESTDIR=$PWD/_pkg install + make && + make install # make microperl here # patch to fix compiling microperl @@ -28,7 +45,7 @@ # Sed to search mods in /usr/lib/perl5. sed -i s/'perl5\/5.12'/'perl5'/ uconfig.sh # Optimisation. - sed -i s/'unknown'/'i486-pc-linux-gnu'/ uconfig.sh + sed -i s/'unknown'/'$BUILD_HOST'/ uconfig.sh # Make it! make -f Makefile.micro regen_uconfig && make -f Makefile.micro &&