slackbuilds_ponce/libraries/libtins/libdir.patch
Nicolas Piatto e484bcf132 libraries/libtins: Added (network packet sniffing library).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
2018-04-14 07:06:29 +07:00

49 lines
1.5 KiB
Diff

--- CMakeLists.txt.stock 2018-04-09 18:19:55.192971704 +0200
+++ CMakeLists.txt 2018-04-09 18:20:50.347434703 +0200
@@ -224,18 +224,19 @@
)
ENDIF(DOXYGEN_FOUND)
-# The library output directory
-SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
-SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
-
# Configuration file
CONFIGURE_FILE(
"${PROJECT_SOURCE_DIR}/include/tins/config.h.in"
"${PROJECT_SOURCE_DIR}/include/tins/config.h"
)
+IF(NOT CMAKE_INSTALL_LIBDIR)
+ set(CMAKE_INSTALL_LIBDIR lib)
+ENDIF()
+# The library output directory
+SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR})
+SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR})
# Support for pkg-config
-SET(CMAKE_INSTALL_LIBDIR lib)
SET(pkgconfig_prefix ${CMAKE_INSTALL_PREFIX})
SET(pkgconfig_exec_prefix ${CMAKE_INSTALL_PREFIX})
SET(pkgconfig_libdir ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR})
--- src/CMakeLists.txt.stock 2018-04-09 18:21:00.281518096 +0200
+++ src/CMakeLists.txt 2018-04-09 18:21:40.244853572 +0200
@@ -219,8 +219,8 @@
INSTALL(
TARGETS tins
EXPORT libtinsTargets
- LIBRARY DESTINATION lib
- ARCHIVE DESTINATION lib
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT dev
)
@@ -233,4 +233,4 @@
ENDFOREACH(HEADER)
ENDMACRO()
-INSTALL_HEADERS_WITH_DIRECTORY(${HEADERS})
\ No newline at end of file
+INSTALL_HEADERS_WITH_DIRECTORY(${HEADERS})