Ticket #17803: Portfile.diff
File Portfile.diff, 3.1 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 16 years ago) |
---|
-
Portfile
old new 1 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 1 2 # $Id: Portfile 42001 2008-11-13 13:35:36Z nox@macports.org $ 2 3 3 4 PortSystem 1.0 4 5 5 6 name perl5.8 6 version 5.8.8 7 revision 3 7 version 5.8.9 8 8 categories lang 9 9 platforms darwin freebsd linux 10 10 maintainers ricci openmaintainer … … 19 19 distname perl-${version} 20 20 use_bzip2 yes 21 21 homepage http://www.perl.org/ 22 master_sites http://www.cpan.org/src/ 5.0/22 master_sites http://www.cpan.org/src/ 23 23 24 checksums md5 a377c0c67ab43fd96eeec29ce19e8382 \ 25 sha1 4aab490040727ca4419098720eca2ba4367df539 \ 26 rmd160 e78f26d9b96e6db35f946ad4ff55e3a69385c71b 24 checksums \ 25 md5 1cb52a76ce77fa300218da96577793ec \ 26 sha1 19843b5a7585cf35d96c07dbcd419bbdd5813617 \ 27 rmd160 680004238d626ec985075e1b4519b7f0b34f57e5 27 28 28 patchfiles patch-makedepend.diff 29 30 platform darwin { 31 patchfiles-append patch-hints_darwin.diff 32 33 pre-configure { 34 reinplace "s|ld=\"MACOSX_DEPLOYMENT_TARGET=10.3|ld=\"env MACOSX_DEPLOYMENT_TARGET=10.3|g" "${worksrcpath}/hints/darwin.sh" 35 } 36 } 37 38 pre-configure { 29 post-patch { 39 30 reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/Configure 31 # Ensure that the ld value set in configure.args is used 32 reinplace "s|ld='cc';||" ${worksrcpath}/hints/darwin.sh 40 33 } 41 34 42 35 configure.env LC_ALL=C 43 configure.cmd sh Configure36 configure.cmd /bin/sh Configure 44 37 configure.pre_args 45 configure.post_args -des -Dprefix='${prefix}' -Dccflags="-I'${prefix}/include'"\ 46 -Dldflags=-L'${prefix}/lib' \ 47 -Dvendorprefix='${prefix}' 38 configure.args \ 39 -des \ 40 -D prefix='${prefix}' \ 41 -D ldflags=\${LDFLAGS} \ 42 -D vendorprefix='${prefix}' \ 43 -D man3ext='3pm' \ 44 -D cc=\${CC} \ 45 -D ld=\${CC} 48 46 49 47 universal_variant no 50 48 … … 52 50 53 51 post-destroot { 54 52 ln -s ${prefix}/bin/perl${version} ${destroot}${prefix}/bin/$name 55 56 foreach man3File [glob ${destroot}${prefix}/share/man/man3/*] {57 file rename ${man3File} ${man3File}pm58 }59 53 } 60 54 61 55 variant threads description {Build with thread support} { … … 66 60 configure.args-append -Duseshrplib 67 61 } 68 62 69 platform darwin 8 {70 configure.post_args-append -Dcc=/usr/bin/gcc-4.071 }72 73 platform darwin 9 {74 post-patch {75 if {[variant_isset shared]} {76 reinplace \77 "s|\$(CC) \$(CLDFLAGS) \$(NAMESPACEFLAGS) -o miniperl |\$(CC) \$(CLDFLAGS) -o miniperl |g" \78 ${worksrcpath}/Makefile.SH79 reinplace \80 "s|miniperlmain\$(OBJ_EXT) opmini\$(OBJ_EXT) \$(LLIBPERL) \$(libs)|miniperlmain\$(OBJ_EXT) opmini\$(OBJ_EXT) perl\$(OBJ_EXT) \$(filter-out op\$(OBJ_EXT),\$(obj)) \$(libs)|g" \81 ${worksrcpath}/Makefile.SH82 }83 }84 }85 86 63 livecheck.check regex 87 64 livecheck.url http://www.cpan.org/src 88 65 livecheck.regex {perl-(5\.8\.\d)\.}