Ticket #34452: Portfile.diff

File Portfile.diff, 1.5 KB (added by howarth@…, 13 years ago)

Portfile.diff to fix image plots on darwin12 and add gcc45, gcc46 and gcc47 variants

  • Portfile

    old new  
    55
    66name                molmol
    77version             2k.2.0
    8 revision            4
     8revision            5
    99categories          science
    1010maintainers         bromo.med.uc.edu:howarth
    1111description         Molecular graphics display program
     
    4242    reinplace  "s|@PREFIX@|${prefix}|g" ${worksrcpath}/makedef \
    4343                                        ${worksrcpath}/molmol
    4444    reinplace  "s|@CC@|${configure.cc}|g" ${worksrcpath}/makedef
     45    if {${os.major} == 12} {
     46      reinplace  "s|SYSLIB = |SYSLIB = -isysroot `xcode-select --print-path`/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk |g" ${worksrcpath}/makedef
     47    }
    4548}
    4649destroot {
    4750    # prune installed files
     
    6164    ln -s ${prefix}/share/${name}/COPYING ${destroot}${prefix}/share/doc/${name}/COPYING
    6265    ln -s ${prefix}/share/${name}/man ${destroot}${prefix}/share/doc/${name}/man
    6366}
     67variant gcc45 description conflicts gcc46 gcc47 description {build using macports-gcc-4.5} {
     68    depends_lib-append  port:gcc45
     69    configure.compiler  macports-gcc-4.5
     70}
     71variant gcc46 description conflicts gcc45 gcc47 description {build using macports-gcc-4.6} {
     72    depends_lib-append  port:gcc46
     73    configure.compiler  macports-gcc-4.6
     74}
     75variant gcc47 description conflicts gcc45 gcc46 description {build using macports-gcc-4.7} {
     76    depends_lib-append  port:gcc47
     77    configure.compiler  macports-gcc-4.7
     78}