Ticket #51551: Portfile-oce.diff
File Portfile-oce.diff, 2.0 KB (added by Schamschula (Marius Schamschula), 8 years ago) |
---|
-
Portfile
old new 5 5 PortGroup cmake 1.0 6 6 PortGroup github 1.0 7 7 8 github.setup tpaviot oce 0.17 OCE- 8 github.setup tpaviot oce 0.17.2 OCE- 9 set branch [join [lrange [split ${version} .] 0 1] .] 9 10 categories graphics 10 11 platforms darwin 11 12 maintainers gmail.com:mark.brethen openmaintainer … … 15 16 16 17 long_description ${description} 17 18 18 checksums rmd160 6f9b957423bd7de7f16e2fa19fce2934be829289 \19 sha256 0bcc76d067cd5cbbdfe4ad477093fbdf9d08a01cfe5b4afe0e296632afaeffde19 checksums rmd160 0894502fe6dec7dc6be566dddc00bc0914e0b9a9 \ 20 sha256 e73f1cb3bfd087abb903296944ea159d51266748a6b05162d0ee927ec3bb40cf 20 21 21 22 depends_lib-append port:freetype 22 23 … … 60 61 post-destroot { 61 62 # modify installation paths relative to ${prefix}/Library/Frameworks 62 63 reinplace "s|\\\${SELF_DIR}/../../../../include/oce|${prefix}/include/oce|g" \ 63 ${destroot}${prefix}/OCE.framework/Versions/${ version}/Resources/OCEConfig.cmake64 ${destroot}${prefix}/OCE.framework/Versions/${branch}/Resources/OCEConfig.cmake 64 65 65 66 reinplace "s|^get.*_IMPORT_PREFIX.*CMAKE.*|set(_IMPORT_PREFIX \\\"${prefix}\\\")|" \ 66 ${destroot}${prefix}/OCE.framework/Versions/${ version}/Resources/OCE-libraries.cmake67 ${destroot}${prefix}/OCE.framework/Versions/${branch}/Resources/OCE-libraries.cmake 67 68 68 69 reinplace {/^get.*_IMPORT_PREFIX.*/d} \ 69 ${destroot}${prefix}/OCE.framework/Versions/${ version}/Resources/OCE-libraries.cmake70 ${destroot}${prefix}/OCE.framework/Versions/${branch}/Resources/OCE-libraries.cmake 70 71 71 72 # installing OCE.framework in ${prefix} violates the layout of the ports-filesystems! 72 73 # move it to ${prefix}/Library/Frameworks