]> hackdaworld.org Git - hdw-linux/hdw-linux.git/blob - packages/base/perl/perl
improved openct package build
[hdw-linux/hdw-linux.git] / packages / base / perl / perl
1 # hdw - linux perl package
2 #
3 # author: hackbard@hackdaworld.dyndns.org
4 #
5 # [V] 5.8.7
6 # [S] 1-9 2-10
7 # [D] perl-5.8.7.tar.gz ftp://ftp.cpan.org/pub/CPAN/src/
8
9 e_ver=`echo $ver | awk -F. '{ print $1 }'`
10 confopt="--prefix=$prefix -Dstatic_ext='IO Fcntl POSIX'"
11
12 if [ "$hdw_status" = "1" ] ; then
13         build_main()    {
14                 ./configure.gnu $confopt
15                 make perl utilities
16                 cp perl pod/pod2man $prefix/bin
17                 mkdir -p $prefix/lib/perl${e_ver}/$ver
18                 cp -R lib/* $prefix/lib/perl${e_ver}/$ver
19                         }
20 else
21         build_main()    {
22                 ./configure.gnu $confopt -Dpager="/bin/less -isR" &&
23                 make &&
24                 make install
25                         }
26 fi