openjpeg-svn480-cmake.patch 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. diff -urN -x '*.orig' -x '*.rej' -x '*~' -x '.*' OpenJPEG.orig/CMakeLists.txt OpenJPEG.patched/CMakeLists.txt
  2. --- OpenJPEG.orig/CMakeLists.txt 2007-09-25 09:54:49.000000000 -0500
  3. +++ OpenJPEG.patched/CMakeLists.txt 2007-09-26 00:34:22.000000000 -0500
  4. @@ -24,6 +24,7 @@
  5. #-----------------------------------------------------------------------------
  6. # OPENJPEG version number, useful for packaging and doxygen doc:
  7. +SET(OPENJPEG_SOVERSION 2)
  8. SET(OPENJPEG_VERSION_MAJOR 1)
  9. SET(OPENJPEG_VERSION_MINOR 2)
  10. SET(OPENJPEG_VERSION_BUILD 0)
  11. @@ -33,8 +34,8 @@
  12. # This setting of SOVERSION assumes that any API change
  13. # will increment either the minor or major version number of openjpeg
  14. SET(OPENJPEG_LIBRARY_PROPERTIES
  15. - VERSION "${OPENJPEG_VERSION_MAJOR}.${OPENJPEG_VERSION_MINOR}.${OPENJPEG_VERSION_BUILD}"
  16. - SOVERSION "${OPENJPEG_VERSION_MAJOR}.${OPENJPEG_VERSION_MINOR}"
  17. + VERSION "${OPENJPEG_SOVERSION}.${OPENJPEG_VERSION_MAJOR}.${OPENJPEG_VERSION_MINOR}.${OPENJPEG_VERSION_BUILD}"
  18. + SOVERSION ${OPENJPEG_SOVERSION}
  19. )
  20. @@ -116,6 +117,10 @@
  21. $ENV{JPEG2000_CONFORMANCE_DATA_ROOT}
  22. )
  23. +IF(NOT CMAKE_INSTALL_LIBDIR)
  24. +SET(CMAKE_INSTALL_LIBDIR lib)
  25. +ENDIF(NOT CMAKE_INSTALL_LIBDIR)
  26. +
  27. #-----------------------------------------------------------------------------
  28. # Compiler specific flags:
  29. IF(CMAKE_COMPILER_IS_GNUCC)
  30. diff -urN -x '*.orig' -x '*.rej' -x '*~' -x '.*' OpenJPEG.orig/libopenjpeg/CMakeLists.txt OpenJPEG.patched/libopenjpeg/CMakeLists.txt
  31. --- OpenJPEG.orig/libopenjpeg/CMakeLists.txt 2007-09-25 09:54:49.000000000 -0500
  32. +++ OpenJPEG.patched/libopenjpeg/CMakeLists.txt 2007-09-26 00:31:12.000000000 -0500
  33. @@ -37,7 +37,7 @@
  34. # Install library
  35. INSTALL(TARGETS ${OPENJPEG_LIBRARY_NAME}
  36. - DESTINATION lib)
  37. + DESTINATION ${CMAKE_INSTALL_LIBDIR})
  38. # Install includes files
  39. INSTALL(FILES openjpeg.h