Ticket #43766: Portfile-wcslib.diff

File Portfile-wcslib.diff, 2.6 KB (added by john@…, 10 years ago)
  • Portfile

    old new  
    55
    66name                wcslib
    77version             4.23
     8revision            1
    89categories          science
    910license             LGPL-3+
    1011platforms           darwin
     
    2425configure.args      --disable-fortran
    2526
    2627universal_variant   no
     28use_parallel_build  no
     29
     30patchfiles          patch-configure.diff
     31post-patch {
     32    reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/configure
     33}
    2734
    2835livecheck.type      regex
    2936livecheck.url       http://www.atnf.csiro.au/people/mcalabre/WCS/CHANGES
     
    3340    configure.compiler      macports-gcc-4.4
    3441    depends_lib-append      port:pgplot
    3542    configure.args-delete   --disable-fortran
    36     post-destroot {
    37         system "install_name_tool -change libwcs.${version}.dylib ${prefix}/lib/libwcs.${version}.dylib ${destroot}${prefix}/lib/libpgsbox.${version}.dylib"
    38     }
    3943}
    4044
    4145variant gcc45 conflicts gcc44 gcc46 gcc47 gcc48 description {Build with GCC 4.5; enables Fortran support}  {
    4246    configure.compiler      macports-gcc-4.5
    4347    depends_lib-append      port:pgplot
    4448    configure.args-delete   --disable-fortran
    45     post-destroot {
    46         system "install_name_tool -change libwcs.${version}.dylib ${prefix}/lib/libwcs.${version}.dylib ${destroot}${prefix}/lib/libpgsbox.${version}.dylib"
    47     }
    4849}
    4950
    5051variant gcc46 conflicts gcc44 gcc45 gcc47 gcc48 description {Build with GCC 4.6; enables Fortran support}  {
    5152    configure.compiler      macports-gcc-4.6
    5253    depends_lib-append      port:pgplot
    5354    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     }
    5755}
    5856
    5957variant gcc47 conflicts gcc44 gcc45 gcc46 gcc48 description {Build with GCC 4.7; enables Fortran support}  {
    6058    configure.compiler      macports-gcc-4.7
    6159    depends_lib-append      port:pgplot
    6260    configure.args-delete   --disable-fortran
    63     post-destroot {
    64         system "install_name_tool -change libwcs.${version}.dylib ${prefix}/lib/libwcs.${version}.dylib ${destroot}${prefix}/lib/libpgsbox.${version}.dylib"
    65     }
    6661}
    6762
    6863variant gcc48 conflicts gcc44 gcc45 gcc46 gcc47 description {Build with GCC 4.8; enables Fortran support}  {
    6964    configure.compiler      macports-gcc-4.8
    7065    depends_lib-append      port:pgplot
    7166    configure.args-delete   --disable-fortran
    72     post-destroot {
    73         system "install_name_tool -change libwcs.${version}.dylib ${prefix}/lib/libwcs.${version}.dylib ${destroot}${prefix}/lib/libpgsbox.${version}.dylib"
    74     }
    7567}