Ticket #51551: Portfile-oce.diff

File Portfile-oce.diff, 2.0 KB (added by Schamschula (Marius Schamschula), 8 years ago)
  • Portfile

    old new  
    55PortGroup                   cmake 1.0
    66PortGroup                   github 1.0
    77
    8 github.setup                tpaviot oce 0.17 OCE-
     8github.setup                tpaviot oce 0.17.2 OCE-
     9set branch                  [join [lrange [split ${version} .] 0 1] .]
    910categories                  graphics
    1011platforms                   darwin
    1112maintainers                 gmail.com:mark.brethen openmaintainer
     
    1516
    1617long_description            ${description}
    1718
    18 checksums                   rmd160  6f9b957423bd7de7f16e2fa19fce2934be829289 \
    19                             sha256  0bcc76d067cd5cbbdfe4ad477093fbdf9d08a01cfe5b4afe0e296632afaeffde
     19checksums                   rmd160  0894502fe6dec7dc6be566dddc00bc0914e0b9a9 \
     20                            sha256  e73f1cb3bfd087abb903296944ea159d51266748a6b05162d0ee927ec3bb40cf
    2021
    2122depends_lib-append          port:freetype
    2223
     
    6061post-destroot {
    6162    # modify installation paths relative to ${prefix}/Library/Frameworks
    6263    reinplace "s|\\\${SELF_DIR}/../../../../include/oce|${prefix}/include/oce|g" \
    63         ${destroot}${prefix}/OCE.framework/Versions/${version}/Resources/OCEConfig.cmake
     64        ${destroot}${prefix}/OCE.framework/Versions/${branch}/Resources/OCEConfig.cmake
    6465
    6566    reinplace "s|^get.*_IMPORT_PREFIX.*CMAKE.*|set(_IMPORT_PREFIX \\\"${prefix}\\\")|" \
    66         ${destroot}${prefix}/OCE.framework/Versions/${version}/Resources/OCE-libraries.cmake
     67        ${destroot}${prefix}/OCE.framework/Versions/${branch}/Resources/OCE-libraries.cmake
    6768
    6869    reinplace {/^get.*_IMPORT_PREFIX.*/d} \
    69         ${destroot}${prefix}/OCE.framework/Versions/${version}/Resources/OCE-libraries.cmake
     70        ${destroot}${prefix}/OCE.framework/Versions/${branch}/Resources/OCE-libraries.cmake
    7071
    7172    # installing OCE.framework in ${prefix} violates the layout of the ports-filesystems!
    7273    # move it to ${prefix}/Library/Frameworks