Ticket #22087: Portfile.diff

File Portfile.diff, 1.7 KB (added by adfernandes (Andrew Fernandes), 15 years ago)
  • Portfile

     
    55
    66name                pymol
    77version             1.2r2
     8revision            1
    89categories          science
    910maintainers         bromo.med.uc.edu:howarth
    1011description         Molecular graphics system
     
    3940
    4041post-configure {
    4142    copy ${worksrcpath}/setup/Rules.osx-fink ${worksrcpath}/Rules.delsci
     43    if { [variant_isset gcc43] || [variant_isset gcc44] } {
     44        reinplace  "s| -no-cpp-precomp||g"          ${worksrcpath}/Rules.delsci
     45        reinplace  "s|^BUILD = |BUILD = -lstdc++ |" ${worksrcpath}/Rules.delsci
     46    }
    4247}
    4348
    4449use_parallel_build  no
    4550build.args          -f Makefile.delsci \
    46                     CC=${configure.cc} \
    47                     CXX=${configure.cxx}
     51                    CC="${configure.cc}" CXX="${configure.cxx}"
    4852
     53variant gcc43 description conflicts gcc44 description {build using macports-gcc-4.3} {
     54    depends_build-append    port:gcc43
     55    build.args-delete       CC="${configure.cc}" CXX="${configure.cxx}"
     56    build.args-append       CC="${prefix}/bin/gcc-mp-4.3" CXX="${prefix}/bin/g++-mp-4.3"
     57    configure.compiler      macports-gcc-4.3
     58}
     59
     60variant gcc44 description conflicts gcc43 description {build using macports-gcc-4.4} {
     61    depends_build-append    port:gcc44
     62    build.args-delete       CC="${configure.cc}" CXX="${configure.cxx}"
     63    build.args-append       CC="${prefix}/bin/gcc-mp-4.4" CXX="${prefix}/bin/g++-mp-4.4"
     64    configure.compiler      macports-gcc-4.4
     65}
     66
    4967destroot {
    5068    file mkdir ${destroot}${prefix}/lib/pymol/bin
    5169    copy  ${worksrcpath}/setup/pymol.com.osx-fink ${destroot}${prefix}/lib/pymol/bin/pymol