blob: 72bac95299ed6a69e0244f53c8d6eab482b280e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Description: Langage de programmation PERL (Practical Extraction and Report Language)
# URL: http://www.perl.org/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: db, gdbm
name=perl
version=5.10.0
release=2
source=(ftp://ftp.funet.fi/pub/CPAN/src/$name-$version.tar.gz \
http://www.linuxfromscratch.org/patches/lfs/development/perl-$version-consolidated-1.patch\
perl-5.10.0-debian-23.patch perl-5.8.6-picdl.patch0)
build() {
cd $name-$version
patch -Np1 -i ../perl-5.10.0-debian-23.patch
if [ "`uname -m`" == "x86_64" ]; then
_ARCH="-Dcccdlflags='-fPIC'"
patch -Np0 -i ../perl-5.8.6-picdl.patch0
else
_ARCH=""
fi
sed -i -e "s|BUILD_ZLIB\s*= True|BUILD_ZLIB = False|" \
-e "s|INCLUDE\s*= ./zlib-src|INCLUDE = /usr/include|" \
-e "s|LIB\s*= ./zlib-src|LIB = /usr/lib|" \
ext/Compress/Raw/Zlib/config.in
sh Configure -des -Dusethreads \
-Dprefix=/usr \
-Dman1dir=/usr/share/man/man1 \
-Dman3dir=/usr/share/man/man3 \
-Dpager="/usr/bin/less isR" \
-Doptimize="$CFLAGS" ${_ARCH}
make
make DESTDIR=$PKG install
find $PKG -iname 'TODO*' -or \
-iname 'Change*' -or \
-iname 'README*' -or \
-name '*.bs' -or \
-name .packlist -or \
-name perllocal.pod | xargs rm
find $PKG -depth -empty -exec rmdir {} \;
chmod -R +w $PKG
}
|