27 | | post-patch { |
28 | | reinplace "s|/usr|${prefix}|" \ |
29 | | ${worksrcpath}/Makefile.osx |
30 | | reinplace \ |
31 | | "s|dynamiclib|dynamiclib -install_name ${prefix}/lib/libopenjpeg-2.1.2.0.dylib -compatibility_version 2.0.0 -current_version 2.1.2|" \ |
32 | | ${worksrcpath}/Makefile.osx |
33 | | } |
34 | | |
35 | | use_configure no |
36 | | |
37 | | build.target osx |
38 | | destroot.target osxinstall |
| 27 | configure { system "cd ${worksrcpath} && cmake ${configure.args} ${worksrcpath}" } |
| 28 | configure.args -D BUILD_SHARED_LIBS:BOOL=ON \ |
| 29 | -D CMAKE_VERBOSE_MAKEFILE:BOOL=ON \ |
| 30 | -D CMAKE_INSTALL_PREFIX:PATH=${prefix} \ |
| 31 | -D CMAKE_INSTALL_RPATH:PATH=${prefix} \ |
| 32 | -D CMAKE_INSTALL_NAME_DIR=${prefix} \ |
| 33 | -D BUILD_EXAMPLES:BOOL=ON |