clucene-2.3.3.4-contribs_lib-1.patch 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. Submitted By: Igor Živković <contact@igor-zivkovic.from.hr>
  2. Date: 2013-10-17
  3. Initial Package Version: 2.3.3.4
  4. Upstream Status: Reported
  5. Origin: Debian
  6. Description: Fixed building and installing of contribs-lib if specified by config.
  7. diff -Naur clucene-2.3.3.4.orig/CMakeLists.txt clucene-2.3.3.4/CMakeLists.txt
  8. --- clucene-2.3.3.4.orig/CMakeLists.txt 2013-10-17 11:32:30.064546492 +0200
  9. +++ clucene-core-2.3.3.4/CMakeLists.txt 2013-10-17 11:33:58.559550441 +0200
  10. @@ -163,7 +163,7 @@
  11. SET(BUILD_CONTRIBS_LIB 1)
  12. ENDIF ( BUILD_CONTRIBS )
  13. IF ( BUILD_CONTRIBS_LIB )
  14. - ADD_SUBDIRECTORY (src/contribs-lib EXCLUDE_FROM_ALL)
  15. + ADD_SUBDIRECTORY (src/contribs-lib)
  16. ENDIF ( BUILD_CONTRIBS_LIB )
  17. diff -Naur clucene-2.3.3.4.orig/src/contribs-lib/CMakeLists.txt clucene-2.3.3.4/src/contribs-lib/CMakeLists.txt
  18. --- clucene-2.3.3.4.orig/src/contribs-lib/CMakeLists.txt 2013-10-17 11:32:30.076546493 +0200
  19. +++ clucene-core-2.3.3.4/src/contribs-lib/CMakeLists.txt 2013-10-17 11:33:58.560550441 +0200
  20. @@ -106,9 +106,26 @@
  21. )
  22. TARGET_LINK_LIBRARIES(clucene-contribs-lib ${clucene_contrib_extra_libs})
  23. +#install public headers.
  24. +FOREACH(file ${HEADERS})
  25. + get_filename_component(apath ${file} PATH)
  26. + get_filename_component(aname ${file} NAME)
  27. + file(RELATIVE_PATH relpath ${CMAKE_SOURCE_DIR}/src/contribs-lib ${apath})
  28. + IF ( NOT aname MATCHES "^_.*" )
  29. + install(FILES ${file}
  30. + DESTINATION include/${relpath}
  31. + COMPONENT development)
  32. + ENDIF ( NOT aname MATCHES "^_.*" )
  33. +ENDFOREACH(file)
  34. +
  35. #set properties on the libraries
  36. SET_TARGET_PROPERTIES(clucene-contribs-lib PROPERTIES
  37. VERSION ${CLUCENE_VERSION}
  38. SOVERSION ${CLUCENE_SOVERSION}
  39. COMPILE_DEFINITIONS_DEBUG _DEBUG
  40. )
  41. +
  42. +#and install library
  43. +install(TARGETS clucene-contribs-lib
  44. + DESTINATION ${LIB_DESTINATION}
  45. + COMPONENT runtime )