File: multiarch.patch

package info (click to toggle)
clucene-core 2.3.3.4%2Bdfsg-1.1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 7,944 kB
  • sloc: cpp: 70,728; ansic: 39,655; sh: 338; makefile: 17; php: 5
file content (28 lines) | stat: -rw-r--r-- 1,099 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Description: add multiarch support.
Author: Fathi Boudra <fabo@debian.org>

---
 CMakeLists.txt                    |    2 +-
 src/core/libclucene-core.pc.cmake |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -94,7 +94,7 @@ SET(LUCENE_SYS_INCLUDES "" CACHE PATH
       )
 #install path options
 SET(LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)" )
-SET(LIB_DESTINATION "lib${LIB_SUFFIX}")
+SET(LIB_DESTINATION "lib/${CMAKE_LIBRARY_ARCHITECTURE}")
 
 
 SET ( ENABLE_COMPILE_TESTS_VALUE ON )
--- a/src/core/libclucene-core.pc.cmake
+++ b/src/core/libclucene-core.pc.cmake
@@ -7,5 +7,5 @@ Name: libclucene
 Description: CLucene - a C++ search engine, ported from the popular Apache Lucene
 Version: @CLUCENE_VERSION_MAJOR@.@CLUCENE_VERSION_MINOR@.@CLUCENE_VERSION_REVISION@.@CLUCENE_VERSION_PATCH@
 Libs: -L${prefix}/@LIB_DESTINATION@/ -lclucene-core -lclucene-shared
-Cflags: -I${prefix}/include -I${prefix}/include/CLucene/ext
+Cflags: -I${prefix}/include -I${prefix}/include/CLucene/ext -I${prefix}/@LIB_DESTINATION@
 ~