Ticket #34408: Portfile.diff

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

Portfile diff to solve breakage on Lion, updates png support and fixes clang warnings.

  • Portfile

    old new  
    55
    66name                molmol
    77version             2k.2.0
    8 revision            2
     8revision            3
    99categories          science
    1010maintainers         bromo.med.uc.edu:howarth
    1111description         Molecular graphics display program
     
    3333                    port:jpeg \
    3434                    port:libpng \
    3535                    port:xpm
    36 patchfiles          molmol-build.diff
     36patchfiles          molmol-build.diff molmol-warnings.diff molmol-png.diff
    3737use_configure       no
    3838use_parallel_build  no
    3939build.target-delete all
     
    4343                                        ${worksrcpath}/molmol
    4444}
    4545destroot {
     46    # prune installed files
     47    foreach d {main motif win} {
     48        system "cd ${worksrcpath}; rm -f src/${d}/*.h src/${d}/*.c src/${d}/*.o"
     49    }
    4650    # Install example files not installed by the Makefile
    47     file copy ${worksrcpath} \
    48         ${destroot}${prefix}/share/${name}
     51    file mkdir ${destroot}${prefix}/share/${name}/src
     52    foreach d {auxil COPYING data help HISTORY INSTALL macros man molmol README README.UNIX setup tips} {
     53        copy ${worksrcpath}/${d} ${destroot}${prefix}/share/${name}
     54    }
     55    foreach d {main motif win} {
     56        copy ${worksrcpath}/src/${d} ${destroot}${prefix}/share/${name}/src
     57    }
    4958    ln -s ${prefix}/share/${name}/${name} ${destroot}${prefix}/bin/${name}
    5059    file mkdir ${destroot}${prefix}/share/doc/${name}
    5160    ln -s ${prefix}/share/${name}/COPYING ${destroot}${prefix}/share/doc/${name}/COPYING