| --- openjpeg-1.5.2/CMakeLists.txt.orig 2014-03-27 14:58:08.000000000 +0400 |
| +++ openjpeg-1.5.2/CMakeLists.txt 2014-04-16 21:38:07.250600000 +0400 |
| @@ -183,15 +183,15 @@ |
| |
| #----------------------------------------------------------------------------- |
| # pkgconfig support |
| -IF(UNIX) |
| +IF(UNIX OR MINGW) |
| # install in lib and not share (see multi-arch note above) |
| CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/libopenjpeg1.pc.cmake |
| ${CMAKE_CURRENT_BINARY_DIR}/libopenjpeg1.pc @ONLY) |
| INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/libopenjpeg1.pc DESTINATION |
| ${OPENJPEG_INSTALL_LIB_DIR}/pkgconfig ) |
| - INSTALL( CODE "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink |
| - \"libopenjpeg1.pc\" |
| - \"\$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${OPENJPEG_INSTALL_SHARE_DIR}/pkgconfig/libopenjpeg.pc\")") |
| + INSTALL( CODE "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E copy |
| + \"\$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${OPENJPEG_INSTALL_LIB_DIR}/pkgconfig/libopenjpeg1.pc\" |
| + \"\$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${OPENJPEG_INSTALL_LIB_DIR}/pkgconfig/libopenjpeg.pc\")") |
| ENDIF(UNIX) |
| |
| #----------------------------------------------------------------------------- |