OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
2.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../clucene/clucene-core-2.3.3.4-install_contribs_lib.patch
  5. # Copyright (C) 2013 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. diff -NaurpBb clucene-core-2.3.3.4/CMakeLists.txt clucene-core-2.3.3.4-mod/CMakeLists.txt
  17. --- clucene-core-2.3.3.4/CMakeLists.txt 2011-03-17 03:21:07.000000000 +0300
  18. +++ clucene-core-2.3.3.4-mod/CMakeLists.txt 2011-08-16 16:56:55.968268152 +0400
  19. @@ -163,7 +163,7 @@ IF ( BUILD_CONTRIBS )
  20. SET(BUILD_CONTRIBS_LIB 1)
  21. ENDIF ( BUILD_CONTRIBS )
  22. IF ( BUILD_CONTRIBS_LIB )
  23. - ADD_SUBDIRECTORY (src/contribs-lib EXCLUDE_FROM_ALL)
  24. + ADD_SUBDIRECTORY (src/contribs-lib)
  25. ENDIF ( BUILD_CONTRIBS_LIB )
  26. diff -NaurpBb clucene-core-2.3.3.4/src/contribs-lib/CMakeLists.txt clucene-core-2.3.3.4-mod/src/contribs-lib/CMakeLists.txt
  27. --- clucene-core-2.3.3.4/src/contribs-lib/CMakeLists.txt 2011-03-17 03:21:07.000000000 +0300
  28. +++ clucene-core-2.3.3.4-mod/src/contribs-lib/CMakeLists.txt 2011-08-16 17:14:13.499275499 +0400
  29. @@ -106,9 +106,26 @@ add_library(clucene-contribs-lib SHARED
  30. )
  31. TARGET_LINK_LIBRARIES(clucene-contribs-lib ${clucene_contrib_extra_libs})
  32. +#install public headers.
  33. +FOREACH(file ${HEADERS})
  34. + get_filename_component(apath ${file} PATH)
  35. + get_filename_component(aname ${file} NAME)
  36. + file(RELATIVE_PATH relpath ${CMAKE_SOURCE_DIR}/src/contribs-lib ${apath})
  37. + IF ( NOT aname MATCHES "^_.*" )
  38. + install(FILES ${file}
  39. + DESTINATION include/${relpath}
  40. + COMPONENT development)
  41. + ENDIF ( NOT aname MATCHES "^_.*" )
  42. +ENDFOREACH(file)
  43. +
  44. #set properties on the libraries
  45. SET_TARGET_PROPERTIES(clucene-contribs-lib PROPERTIES
  46. VERSION ${CLUCENE_VERSION}
  47. SOVERSION ${CLUCENE_SOVERSION}
  48. COMPILE_DEFINITIONS_DEBUG _DEBUG
  49. )
  50. +
  51. +#and install library
  52. +install(TARGETS clucene-contribs-lib
  53. + DESTINATION ${LIB_DESTINATION}
  54. + COMPONENT runtime )