Subversion Repository

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10 - (show annotations)
Sun Oct 4 13:26:45 2009 UTC (3 years, 8 months ago) by cjg
File size: 1369 byte(s)
perl: downgrade to 5.8.8 to get aligned with x86
1 # Description: Perl programming language
2 # URL: http://www.perl.org/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Depends on: db, gdbm
5
6 name=perl
7 version=5.8.8
8 release=1
9 source=(ftp://ftp.perl.org/pub/CPAN/src/$name-$version.tar.gz \
10 $name-$version-CVE-2005-3962.patch \
11 $name-$version-gcc42.patch)
12
13 build() {
14 cd $name-$version
15 patch -p4 < $SRC/$name-$version-CVE-2005-3962.patch
16 patch -p1 < $SRC/$name-$version-gcc42.patch
17 ./Configure -des \
18 -Dprefix=/usr \
19 -Darchname=linux \
20 -Dman1ext=1pm \
21 -Dman3ext=3pm \
22 -Dman1dir=/usr/man/man1 \
23 -Dman3dir=/usr/man/man3 \
24 -Di_gdbm \
25 -Di_db \
26 -Duseshrplib=true \
27 -Doptimize="$CFLAGS"
28 make -j1
29 make DESTDIR=$PKG install
30 ln -sf perl$version $PKG/usr/bin/perl
31 ln -sf c2ph $PKG/usr/bin/pstruct
32 ln -sf s2p $PKG/usr/bin/psed
33 ln -sf c2ph.1pm $PKG/usr/man/man1/pstruct.1pm
34 ln -sf s2p.1pm $PKG/usr/man/man1/psed.1pm
35 find $PKG \
36 -iname 'TODO*' -or \
37 -iname 'Change*' -or \
38 -iname 'README*' -or \
39 -name '*.bs' -or \
40 -name .packlist -or \
41 -name perllocal.pod | xargs rm
42 find $PKG -depth -empty -exec rmdir {} \;
43 chmod -R +w $PKG
44 }