]> git.pld-linux.org Git - packages/vigra.git/blame - vigra-1.8.0.lib_suffix.patch
- release 6
[packages/vigra.git] / vigra-1.8.0.lib_suffix.patch
CommitLineData
09f8ffa5
AM
1Note: for some reason vigra uses a non-standard LIBDIR_SUFFIX definition
2whereas usually this is LIB_SUFFIX. This patch fixes this since fedora expects
3to use the standard.
4
5diff -baur vigra-1.8.0/CMakeLists.txt vigra-1.8.0.new/CMakeLists.txt
6--- vigra-1.8.0/CMakeLists.txt 2011-09-20 19:38:36.000000000 +0100
7+++ vigra-1.8.0.new/CMakeLists.txt 2011-09-24 21:20:55.000000000 +0100
8@@ -128,6 +128,8 @@
9 ENDIF()
10
11
12+set(LIB_SUFFIX "" CACHE STRING "Define suffix of lib directory name (32/64)" )
13+
14 ##################################################
15 #
16 # global installation commands
17@@ -213,10 +215,10 @@
18
19 # export targets:
20 INSTALL(EXPORT vigra-targets
21- DESTINATION lib${LIBDIR_SUFFIX}/vigra)
22+ DESTINATION lib${LIB_SUFFIX}/vigra)
23 INSTALL(FILES ${PROJECT_BINARY_DIR}/lib/vigra/CMake/VigraConfig.cmake
24 ${PROJECT_BINARY_DIR}/lib/vigra/CMake/VigraConfigVersion.cmake
25- DESTINATION lib${LIBDIR_SUFFIX}/vigra)
26+ DESTINATION lib${LIB_SUFFIX}/vigra)
27 EXPORT(TARGETS vigraimpex FILE vigra-targets.cmake)
28
29 ##################################################
30@@ -289,7 +291,7 @@
31 MESSAGE( STATUS "---------------------------------------------------------" )
32
33 MESSAGE( STATUS " includes will be installed at: ${CMAKE_INSTALL_PREFIX}/include")
34-MESSAGE( STATUS " libraries will be installed at: ${CMAKE_INSTALL_PREFIX}/lib${LIBDIR_SUFFIX}")
35+MESSAGE( STATUS " libraries will be installed at: ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}")
36
37 IF (MSVC)
38 MESSAGE( STATUS " binaries and DLLs will be installed at: ${CMAKE_INSTALL_PREFIX}/bin")
39diff -baur vigra-1.8.0/doc/vigra/Installation.html vigra-1.8.0.new/doc/vigra/Installation.html
40--- vigra-1.8.0/doc/vigra/Installation.html 2011-09-20 19:43:37.000000000 +0100
41+++ vigra-1.8.0.new/doc/vigra/Installation.html 2011-09-24 21:21:39.000000000 +0100
42@@ -58,8 +58,8 @@
43 <dd>build VIGRA Python bindings (default: 1). Pass -DWITH_VIGRANUMPY=0 to suppress vigranumpy. </dd>
44 <dt>-DWITH_HDF5=1 </dt>
45 <dd>build VIGRA with HDF5 support (default: 1). Pass -DDWITH_HDF5=0 to compile without HDF5. </dd>
46-<dt>-DLIBDIR_SUFFIX=64 </dt>
47-<dd>define suffix of lib directory name (default: empty string, i.e. no suffix). Use -DLIBDIR_SUFFIX=64 when you want to install libraries in $CMAKE_INSTALL_PREFIX/lib64. </dd>
48+<dt>-DLIB_SUFFIX=64 </dt>
49+<dd>define suffix of lib directory name (default: empty string, i.e. no suffix). Use -DLIB_SUFFIX=64 when you want to install libraries in $CMAKE_INSTALL_PREFIX/lib64. </dd>
50 </dl>
51 <p>More fine-grained customization (e.g. specification of explicit paths for all dependencies, customization of compiler flags) is possible by editing the file &lt;vigra_build_path&gt;/CMakeCache.txt. This is best done by means of the interactive programs <b>ccmake</b> or <b>cmake-gui</b>. Consult the <a href="http://www.cmake.org/cmake/help/documentation.html">cmake documentation</a> for more detailed help.</p>
52 <p>For using VIGRA in another CMake-built project, you can use the CMake command FIND_PACKAGE(Vigra), which will set the CMake variables ${Vigra_INCLUDE_DIRS} with the correct include path, and import the binary targets (currently vigraimpex) to link against (e.g., TARGET_LINK_LIBRARIES(targetname vigraimpex)). For this mechanism to work, CMake reads a config file VigraConfig.cmake, which is installed along with the library in CMAKE_INSTALL_PREFIX/lib/vigra. Alternatively, you can point CMake (cache entry Vigra_DIR) to VIGRA's build directory, where a corresponding VigraConfig.cmake resides for using the build version directly without installation. </p>
53diff -baur vigra-1.8.0/docsrc/installation.dxx vigra-1.8.0.new/docsrc/installation.dxx
54--- vigra-1.8.0/docsrc/installation.dxx 2011-09-20 19:38:36.000000000 +0100
55+++ vigra-1.8.0.new/docsrc/installation.dxx 2011-09-24 21:19:52.000000000 +0100
56@@ -53,9 +53,9 @@
57 vigranumpy.
58 <DT> -DWITH_HDF5=1
59 <DD> build VIGRA with HDF5 support (default: 1). Pass -DDWITH_HDF5=0 to compile without HDF5.
60- <DT> -DLIBDIR_SUFFIX=64
61+ <DT> -DLIB_SUFFIX=64
62 <DD> define suffix of lib directory name (default: empty string, i.e. no suffix). Use
63- -DLIBDIR_SUFFIX=64 when you want to install libraries in $CMAKE_INSTALL_PREFIX/lib64.
64+ -DLIB_SUFFIX=64 when you want to install libraries in $CMAKE_INSTALL_PREFIX/lib64.
65 </DL>
66
67 More fine-grained customization (e.g. specification of explicit paths for all dependencies, customization of compiler flags) is possible by editing the file &lt;vigra_build_path&gt;/CMakeCache.txt. This is best done by means of the interactive programs <b>ccmake</b> or <b>cmake-gui</b>. Consult the <a href="http://www.cmake.org/cmake/help/documentation.html">cmake documentation</a> for more detailed help.
68diff -baur vigra-1.8.0/src/impex/CMakeLists.txt vigra-1.8.0.new/src/impex/CMakeLists.txt
69--- vigra-1.8.0/src/impex/CMakeLists.txt 2011-09-20 19:38:36.000000000 +0100
70+++ vigra-1.8.0.new/src/impex/CMakeLists.txt 2011-09-24 21:19:52.000000000 +0100
71@@ -80,5 +80,5 @@
72 INSTALL(TARGETS vigraimpex
73 EXPORT vigra-targets
74 RUNTIME DESTINATION bin
75- LIBRARY DESTINATION lib${LIBDIR_SUFFIX}
76- ARCHIVE DESTINATION lib${LIBDIR_SUFFIX})
77+ LIBRARY DESTINATION lib${LIB_SUFFIX}
78+ ARCHIVE DESTINATION lib${LIB_SUFFIX})
This page took 0.073286 seconds and 4 git commands to generate.