perl: update to 5.10.1, enable shared libperl.

Fixed compatibility with packages built under previous version,
thanks to code taken from NetBSD/pkgsrc.

--HG--
extra : convert_revision : e463c7fcdc7e043c417fccfde26dd9f9f8a5a3cb
This commit is contained in:
Juan RP 2009-10-16 00:57:59 +02:00
parent e2b0ef2e2d
commit 10b9e57c61

View file

@ -1,17 +1,12 @@
# Template build file for 'perl'.
pkgname=perl
version=5.10.0
version=5.10.1
distfiles="http://www.cpan.org/src/$pkgname-$version.tar.gz"
configure_script="./Configure"
configure_args="-Dusethreads -des -Dprefix=$XBPS_DESTDIR/$pkgname-$version/usr
-Duselargefiles -Uusesfio -Dinstallstyle=lib/perl5 -Uinstallusrbinperl
-Dman1dir=$XBPS_DESTDIR/$pkgname-$version/usr/share/man/man1
-Dman3dir=$XBPS_DESTDIR/$pkgname-$version/usr/share/man/man3"
build_style=configure
make_install_target="install"
configure_script="./Configure"
short_desc="Practical Extraction and Report Language"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=94464a0d374fa63226eee56e0bb3d35564f9d8391a1a8d9f0055805ec25f3b2e
checksum=cb7f26ea4b2b28d6644354d87a269d01cac1b635287dae64e88eeafa24b44f35
long_desc="
Perl is a general-purpose programming language originally developed
for text manipulation and now used for a wide range of tasks including
@ -24,6 +19,31 @@ long_desc="
collections of third-party modules."
Add_dependency full glibc
Add_dependency full gdbm
Add_dependency full db
pre_configure()
{
local p5_base p5_apiver args
cd $wrksrc || return 1
# Taken from NetBSD.
p5_base="/usr/lib/perl5"
p5_apiver="$(awk '/\#define[ ]*PERL_API_REVISION/ { R = $3 } \
/\#define[ ]*PERL_API_VERSION/ { r = "."$3 } \
/\#define[ ]*PERL_API_SUBVERSION/ { s = "."$3 } \
END { printf "%s%s%s\n", R, r, s }' patchlevel.h)"
args="-Dusethreads -des -Dprefix=/usr \
-Duselargefiles -Uusesfio -Dinstallstyle=lib/perl5 \
-Uinstallusrbinperl -Duseshrplib \
-Dman1dir=/usr/share/man/man1 \
-Dman3dir=/usr/share/man/man3 \
-Dprivlib=${p5_base}/${p5_apiver} \
-Dsitelib=${p5_base}/site_perl/${p5_apiver} \
-Dvendorlib=${p5_base}/vendor_perl/${p5_apiver}"
export configure_args="${args}"
}
pre_build()
{