Ticket #33893: Portfile-wcslib.3.diff

File Portfile-wcslib.3.diff, 3.3 KB (added by jdswinbank (John Swinbank), 12 years ago)
  • Portfile

    old new  
    1 # $Id: Portfile 90301 2012-03-01 17:27:30Z jmr@macports.org $
     1# $Id$
    22
    33PortSystem          1.0
    44
    55name                wcslib
    6 version             4.8.4
     6version             4.14
    77categories          science
    88license             LGPL-3+
    99platforms           darwin
     
    1616master_sites        gentoo \
    1717                    ftp://ftp.atnf.csiro.au/pub/software/wcslib/
    1818use_bzip2           yes
    19 checksums           md5     e11147f58feca75110ffe770c0f53a3b \
    20                     sha1    66c0be7b71aa66d0db7e68bb75c02e9f406c18c5 \
    21                     rmd160  23e9e4439eced5427986582ae534241499a7d560
     19checksums           md5     b68fb5a980c5e7b446a452f85f53c7fc \
     20                    sha1    8c530c29866ca3414f62d27f439b3d5e6dcb39a1 \
     21                    rmd160  9a509e1ca1668ff4f1277efdd5df5c0e1e0d762f
    2222depends_lib         port:cfitsio
    2323configure.args      --disable-fortran
    2424
     
    2626livecheck.url       http://www.atnf.csiro.au/people/mcalabre/WCS/CHANGES
    2727livecheck.regex     "WCSLIB version (\\d+\\.\\d+\(\\.\\d+\)?)"
    2828
    29 variant gcc44 conflicts gcc45 gcc46 description {Build with GCC 4.4; enables Fortran support}  {
     29variant gcc44 conflicts gcc45 gcc46 gcc47 description {Build with GCC 4.4; enables Fortran support}  {
    3030    configure.compiler      macports-gcc-4.4
    3131    depends_lib-append      port:gcc44 \
    3232                            port:pgplot
    3333    configure.args-delete   --disable-fortran
     34    post-destroot {
     35        system "install_name_tool -change libwcs.${version}.dylib ${prefix}/lib/libwcs.${version}.dylib ${destroot}${prefix}/lib/libpgsbox.${version}.dylib"
     36    }
    3437}
    3538
    36 variant gcc45 conflicts gcc44 gcc46 description {Build with GCC 4.5; enables Fortran support}  {
     39variant gcc45 conflicts gcc44 gcc46 gcc47 description {Build with GCC 4.5; enables Fortran support}  {
    3740    configure.compiler      macports-gcc-4.5
    3841    depends_lib-append      port:gcc45 \
    3942                            port:pgplot
    4043    configure.args-delete   --disable-fortran
     44    post-destroot {
     45        system "install_name_tool -change libwcs.${version}.dylib ${prefix}/lib/libwcs.${version}.dylib ${destroot}${prefix}/lib/libpgsbox.${version}.dylib"
     46    }
    4147}
    4248
    43 variant gcc46 conflicts gcc44 gcc45 description {Build with GCC 4.6; enables Fortran support}  {
     49variant gcc46 conflicts gcc44 gcc45 gcc47 description {Build with GCC 4.6; enables Fortran support}  {
    4450    configure.compiler      macports-gcc-4.6
    4551    depends_lib-append      port:gcc46 \
    4652                            port:pgplot
    4753    configure.args-delete   --disable-fortran
     54    post-destroot {
     55        system "install_name_tool -change libwcs.${version}.dylib ${prefix}/lib/libwcs.${version}.dylib ${destroot}${prefix}/lib/libpgsbox.${version}.dylib"
     56    }
     57}
     58
     59variant gcc47 conflicts gcc44 gcc45 gcc46 description {Build with GCC 4.7; enables Fortran support}  {
     60    configure.compiler      macports-gcc-4.7
     61    depends_lib-append      port:gcc47 \
     62                            port:pgplot
     63    configure.args-delete   --disable-fortran
     64    post-destroot {
     65        system "install_name_tool -change libwcs.${version}.dylib ${prefix}/lib/libwcs.${version}.dylib ${destroot}${prefix}/lib/libpgsbox.${version}.dylib"
     66    }
    4867}