Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@2418 d073be05-634f-4543-b044-5fe20cf6d1d6
- Loading branch information
Michael Maibaum
committed
Apr 7, 2003
1 parent
2b8559a
commit 28e4bc4
Showing
1 changed file
with
17 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,44 +1,40 @@ | |||
# $Id: Portfile,v 1.20 2003/03/12 03:03:46 michaelm Exp $ | # $Id: Portfile,v 1.21 2003/04/07 14:05:50 michaelm Exp $ | ||
|
|
||
PortSystem 1.0 | PortSystem 1.0 | ||
name perl5.8 | name perl5.8 | ||
version 5.8.0 | version 5.8.0 | ||
revision 2 | revision 3 | ||
categories lang | categories lang | ||
maintainers michaelm@opendarwin.org | maintainers michaelm@opendarwin.org | ||
description Perl 5.8.0 | description Perl 5.8.0 | ||
platforms darwin freebsd | platforms darwin freebsd | ||
distname perl-${version} | distname perl-${version} | ||
master_sites http://www.cpan.org/src/5.0/ | master_sites http://www.cpan.org/src/5.0/ | ||
checksums md5 d9bdb180620306023fd35901a2878b62 | checksums md5 d9bdb180620306023fd35901a2878b62 | ||
global platform_dir | |||
configure.cmd sh Configure | configure.cmd sh Configure | ||
unset configure.pre_args | unset configure.pre_args | ||
variant darwin { patchfiles patch-perlio-darwin.diff } | |||
configure.post_args -des -Dinstallprefix=${destroot}/${prefix} \ | configure.post_args -des -Dinstallprefix=${destroot}/${prefix} \ | ||
-Dprefix='${prefix}' -Dccflags="-I'${prefix}/include'\ | -Dprefix='${prefix}' -Dccflags="-I'${prefix}/include'\ | ||
-I'${prefix}/include/db4' -Dldflags=-L'${prefix}/lib'" | -I'${prefix}/include/db4' -Dldflags=-L'${prefix}/lib'" | ||
|
|
||
variant threads { configure.args-append -Dusethreads } | variant threads { configure.args-append -Dusethreads } | ||
|
|
||
|
|
||
#fix to set install* variables.... | # set install* variables.... | ||
variant freebsd { | variant freebsd { | ||
post-install { | set platform_dir freebsd | ||
cd ${destroot}/${prefix}/lib/perl5/${version}/freebsd | } | ||
system "cat Config.pm |sed s#${destroot}/##g >Config.pm.new" | variant darwin { | ||
system "cat .packlist | sed s#${destroot}/##g >.packlist.new" | set platform_dir darwin | ||
system "mv Config.pm.new Config.pm && \ | patchfiles patch-perlio-darwin.diff | ||
mv .packlist.new .packlist" | |||
} | |||
} | } | ||
#fix to set install* variables.... | |||
variant darwin { | |||
post-install { | |||
cd ${destroot}/${prefix}/lib/perl5/${version}/darwin | |||
system "cat Config.pm |sed s#${destroot}/##g >Config.pm.new" | |||
system "cat .packlist | sed s#${destroot}/##g > .packlist.new" | |||
system "mv Config.pm.new Config.pm && \ | |||
mv .packlist.new .packlist" | |||
} | |||
} | |||
|
|
||
# fix install variables | |||
post-install { | |||
cd ${destroot}/${prefix}/lib/perl5/${version}/${platform_dir} | |||
system "cat Config.pm |sed s#${destroot}/##g >Config.pm.new" | |||
system "cat .packlist | sed s#${destroot}/##g >.packlist.new" | |||
system "mv Config.pm.new Config.pm && \ | |||
mv .packlist.new .packlist" | |||
} |