Blame SOURCES/clucene-core-2.3.3.4-install_contribs_lib.patch

4ef32c
diff -NaurpBb clucene-core-2.3.3.4/CMakeLists.txt clucene-core-2.3.3.4-mod/CMakeLists.txt
4ef32c
--- clucene-core-2.3.3.4/CMakeLists.txt	2011-03-17 03:21:07.000000000 +0300
4ef32c
+++ clucene-core-2.3.3.4-mod/CMakeLists.txt	2011-08-16 16:56:55.968268152 +0400
4ef32c
@@ -163,7 +163,7 @@ IF ( BUILD_CONTRIBS )
4ef32c
   SET(BUILD_CONTRIBS_LIB 1)
4ef32c
 ENDIF ( BUILD_CONTRIBS )
4ef32c
 IF ( BUILD_CONTRIBS_LIB )
4ef32c
-  ADD_SUBDIRECTORY (src/contribs-lib EXCLUDE_FROM_ALL)
4ef32c
+  ADD_SUBDIRECTORY (src/contribs-lib)
4ef32c
 ENDIF ( BUILD_CONTRIBS_LIB )
4ef32c
 
4ef32c
 
4ef32c
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
4ef32c
--- clucene-core-2.3.3.4/src/contribs-lib/CMakeLists.txt	2011-03-17 03:21:07.000000000 +0300
4ef32c
+++ clucene-core-2.3.3.4-mod/src/contribs-lib/CMakeLists.txt	2011-08-16 17:14:13.499275499 +0400
4ef32c
@@ -106,9 +106,26 @@ add_library(clucene-contribs-lib SHARED
4ef32c
 )
4ef32c
 TARGET_LINK_LIBRARIES(clucene-contribs-lib ${clucene_contrib_extra_libs})
4ef32c
 
4ef32c
+#install public headers.
4ef32c
+FOREACH(file ${HEADERS})
4ef32c
+	get_filename_component(apath ${file} PATH)
4ef32c
+	get_filename_component(aname ${file} NAME)
4ef32c
+	file(RELATIVE_PATH relpath ${CMAKE_SOURCE_DIR}/src/contribs-lib ${apath})
4ef32c
+	IF ( NOT aname MATCHES "^_.*" )
4ef32c
+		install(FILES ${file} 
4ef32c
+		        DESTINATION include/${relpath}
4ef32c
+		        COMPONENT development)
4ef32c
+	ENDIF ( NOT aname MATCHES "^_.*" )
4ef32c
+ENDFOREACH(file)
4ef32c
+
4ef32c
 #set properties on the libraries
4ef32c
 SET_TARGET_PROPERTIES(clucene-contribs-lib PROPERTIES
4ef32c
     VERSION ${CLUCENE_VERSION}
4ef32c
     SOVERSION ${CLUCENE_SOVERSION}
4ef32c
     COMPILE_DEFINITIONS_DEBUG _DEBUG
4ef32c
 )
4ef32c
+
4ef32c
+#and install library
4ef32c
+install(TARGETS clucene-contribs-lib 
4ef32c
+        DESTINATION ${LIB_DESTINATION}  
4ef32c
+        COMPONENT runtime )