CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
35bdd210436a7d9bc6278538fc973a97cc159267
[ports/core-arm.git] / perl / Pkgfile
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.12.4
8 release=1
9 source=(http://www.cpan.org/src/5.0/$name-$version.tar.bz2)
10
11 build() {
12 cd $name-$version
13
14 ./Configure -des \
15 -Dprefix=/usr \
16 -Dprivlib=/usr/lib/perl5/${version%.*} \
17 -Dsitelib=/usr/lib/perl5/site_perl/${version%.*} \
18 -Darchname=linux \
19 -Dman1ext=1pm \
20 -Dman3ext=3pm \
21 -Dman1dir=/usr/man/man1 \
22 -Dman3dir=/usr/man/man3 \
23 -Di_gdbm \
24 -Di_db \
25 -Duseshrplib \
26 -Dusethreads \
27 -Doptimize="$CFLAGS"
28 make
29 make DESTDIR=$PKG install
30
31 ln -sf perl$version $PKG/usr/bin/perl
32 ln -sf c2ph $PKG/usr/bin/pstruct
33 ln -sf s2p $PKG/usr/bin/psed
34 ln -sf c2ph.1pm $PKG/usr/man/man1/pstruct.1pm
35 ln -sf s2p.1pm $PKG/usr/man/man1/psed.1pm
36
37 find $PKG \
38 -iname 'TODO*' -or \
39 -iname 'Change*' -or \
40 -iname 'README*' -or \
41 -name '*.bs' -or \
42 -name '.packlist' -or \
43 -name 'perllocal.pod' | xargs rm
44
45 find $PKG -depth -empty -exec rmdir {} \;
46 chmod -R +w $PKG
47 }