wok-next annotate perl/receipt @ rev 17673

Add missing -ltinfo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 18 09:35:09 2015 +0100 (2015-02-18)
parents e5384ace4df2
children 9e01bc6321ea
rev   line source
pankso@18 1 # SliTaz package receipt.
pankso@18 2
pankso@18 3 PACKAGE="perl"
slaxemulator@8148 4 VERSION="5.12.3"
pankso@204 5 CATEGORY="development"
pankso@18 6 SHORT_DESC="Full Perl interpreter and modules."
pankso@18 7 MAINTAINER="pankso@slitaz.org"
pascal@14702 8 LICENSE="GPL"
slaxemulator@8148 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
gokhlayeh@8209 10 DEPENDS="libdb gdbm zlib"
pascal@15345 11 BUILD_DEPENDS="db gdbm zlib less"
pankso@18 12 WEB_SITE="http://www.perl.org/"
pankso@18 13 WGET_URL="http://ftp.funet.fi/pub/CPAN/src/$TARBALL"
pascal@2332 14 PROVIDE="microperl"
pankso@18 15
gokhlayeh@8209 16 # Rules to compile & install the temporary toolchain.
gokhlayeh@8209 17 cook_tmp_toolchain()
gokhlayeh@8209 18 {
gokhlayeh@8209 19 cd $src
gokhlayeh@8209 20 { sh Configure -des -Dprefix=/tools \
gokhlayeh@8209 21 -Dstatic_ext='Data/Dumper Fcntl IO' &&
gokhlayeh@8209 22
gokhlayeh@8209 23 # Only few tools are needed in the tmp toolchain.
gokhlayeh@8209 24 make perl utilities ext/Errno/pm_to_blib
gokhlayeh@8209 25 } || return 1
gokhlayeh@8209 26 cp perl pod/pod2man /tools/bin
gokhlayeh@8209 27 mkdir -p /tools/lib/perl5/5.12.3
gokhlayeh@8209 28 cp -R lib/* /tools/lib/perl5/5.12.3
gokhlayeh@8209 29 }
gokhlayeh@8209 30
gokhlayeh@8209 31
pankso@18 32 # Rules to configure and make the package.
pankso@18 33 #
pankso@18 34 compile_rules()
pankso@18 35 {
pankso@18 36 cd $src
pascal@15380 37 ./configure.gnu --prefix=/usr &&
gokhlayeh@8209 38 make &&
gokhlayeh@8209 39 make install
slaxemulator@6585 40
slaxemulator@6585 41 # make microperl here
slaxemulator@6585 42 # patch to fix compiling microperl
slaxemulator@9700 43 patch -p0 -i $stuff/miniperlmain.patch
slaxemulator@6585 44 # Install in /usr (default is /usr/local).
slaxemulator@6585 45 sed -i s/'usr\/local'/'usr'/ uconfig.sh
slaxemulator@6585 46 # Sed to search mods in /usr/lib/perl5.
slaxemulator@6585 47 sed -i s/'perl5\/5.12'/'perl5'/ uconfig.sh
slaxemulator@6585 48 # Optimisation.
slaxemulator@10423 49 sed -i s/'unknown'/'$HOST_SYSTEM'/ uconfig.sh
slaxemulator@6585 50 # Make it!
slaxemulator@6585 51 make -f Makefile.micro regen_uconfig &&
slaxemulator@6585 52 make -f Makefile.micro &&
slaxemulator@6585 53 strip microperl
pankso@18 54 }
pankso@18 55
pankso@18 56 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@18 57 genpkg_rules()
pankso@18 58 {
pankso@18 59 mkdir -p $fs/usr
pascal@14702 60 cp -a $install/usr/bin $fs/usr
pascal@14702 61 cp -a $install/usr/lib $fs/usr
pankso@18 62 }
pankso@18 63
pankso@18 64 # Pre install commands for Tazpkg.
pankso@18 65 # Remove perl link to microperl if any.
pankso@18 66 #
pankso@18 67 pre_install()
pankso@18 68 {
pankso@18 69 echo "Processing pre-install commands..."
pankso@18 70 rm -f $1/usr/bin/perl
pankso@18 71 }