Ticket #22087: Portfile.2.diff

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

     
    55
    66name                pymol
    77version             1.2r2
    8 revision            1
     8revision            2
    99categories          science
    1010maintainers         bromo.med.uc.edu:howarth
    1111description         Molecular graphics system
     
    4040
    4141post-configure {
    4242    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    }
    4347}
    4448
    4549use_parallel_build  no
    46 build.args          -f Makefile.delsci \
    47                     CC=${configure.cc} \
    48                     CXX=${configure.cxx}
     50pre-build {
     51    build.args  -f Makefile.delsci \
     52                CC="${configure.cc}" CXX="${configure.cxx}"
     53}
    4954
     55variant gcc43 description conflicts gcc44 description {build using macports-gcc-4.3} {
     56    depends_lib-append  port:gcc43
     57    # the current pymol makefile does not honour CC and CXX environment variables
     58    build.args-delete   CC="${configure.cc}" CXX="${configure.cxx}"
     59    build.args-append   CC="${prefix}/bin/gcc-mp-4.3" CXX="${prefix}/bin/g++-mp-4.3"
     60    configure.compiler  macports-gcc-4.3
     61}
     62
     63variant gcc44 description conflicts gcc43 description {build using macports-gcc-4.4} {
     64    depends_lib-append  port:gcc44
     65    # the current pymol makefile does not honour CC and CXX environment variables
     66    build.args-delete   CC="${configure.cc}" CXX="${configure.cxx}"
     67    build.args-append   CC="${prefix}/bin/gcc-mp-4.4" CXX="${prefix}/bin/g++-mp-4.4"
     68    configure.compiler  macports-gcc-4.4
     69}
     70
    5071destroot {
    5172    file mkdir ${destroot}${prefix}/lib/pymol/bin
    5273    copy  ${worksrcpath}/setup/pymol.com.osx-fink ${destroot}${prefix}/lib/pymol/bin/pymol