Ticket #25498: Porfile.diff

File Porfile.diff, 2.8 KB (added by howarth@…, 14 years ago)

Portfile diff to build pymol 1.3

  • Portfile

    old new  
    44PortSystem          1.0
    55
    66name                pymol
    7 version             1.2r2
    8 revision            2
     7version             1.3
     8revision            1
    99categories          science
    1010maintainers         bromo.med.uc.edu:howarth
    1111description         Molecular graphics system
     
    2020master_sites        sourceforge
    2121fetch.type          svn
    2222svn.url             https://pymol.svn.sourceforge.net/svnroot/pymol/trunk/pymol
    23 svn.revision        3866
     23svn.revision        3911
    2424worksrcdir          pymol
    2525
    2626depends_lib         port:glut port:freetype port:libpng port:python26 port:py26-pmw port:py26-numeric port:mesa
    2727depends_run         port:xdpyinfo
    2828
    29 patchfiles          pymol-build.patch
     29patchfiles          pymol-build.patch pymol-build.patch2
    3030use_configure       no
    3131
    3232post-patch {
     
    4040
    4141post-configure {
    4242    copy ${worksrcpath}/setup/Rules.osx-fink ${worksrcpath}/Rules.delsci
    43     if { [variant_isset gcc43] || [variant_isset gcc44] } {
     43    if { [variant_isset gcc43] || [variant_isset gcc44] || [variant_isset gcc45] } {
    4444        reinplace  "s| -no-cpp-precomp||g"          ${worksrcpath}/Rules.delsci
    4545        reinplace  "s|^BUILD = |BUILD = -lstdc++ |" ${worksrcpath}/Rules.delsci
    4646    }
     
    5252                CC="${configure.cc}" CXX="${configure.cxx}"
    5353}
    5454
    55 variant gcc43 description conflicts gcc44 description {build using macports-gcc-4.3} {
     55variant gcc43 description conflicts gcc44 gcc45 description {build using macports-gcc-4.3} {
    5656    depends_lib-append  port:gcc43
    5757    # the current pymol makefile does not honour CC and CXX environment variables
    5858    build.args-delete   CC="${configure.cc}" CXX="${configure.cxx}"
     
    6060    configure.compiler  macports-gcc-4.3
    6161}
    6262
    63 variant gcc44 description conflicts gcc43 description {build using macports-gcc-4.4} {
     63variant gcc44 description conflicts gcc43 gcc45 description {build using macports-gcc-4.4} {
    6464    depends_lib-append  port:gcc44
    6565    # the current pymol makefile does not honour CC and CXX environment variables
    6666    build.args-delete   CC="${configure.cc}" CXX="${configure.cxx}"
     
    6868    configure.compiler  macports-gcc-4.4
    6969}
    7070
     71variant gcc44 description conflicts gcc43 gcc44 description {build using macports-gcc-4.5} {
     72    depends_lib-append  port:gcc45
     73    # the current pymol makefile does not honour CC and CXX environment variables
     74    build.args-delete   CC="${configure.cc}" CXX="${configure.cxx}"
     75    build.args-append   CC="${prefix}/bin/gcc-mp-4.5" CXX="${prefix}/bin/g++-mp-4.5"
     76    configure.compiler  macports-gcc-4.5
     77}
     78
    7179destroot {
    7280    file mkdir ${destroot}${prefix}/lib/pymol/bin
    7381    copy  ${worksrcpath}/setup/pymol.com.osx-fink ${destroot}${prefix}/lib/pymol/bin/pymol