summaryrefslogtreecommitdiff
path: root/libraries/libtins/libdir.patch
diff options
context:
space:
mode:
authorNicolas Piatto <nico@lodpp.net>2018-04-11 23:47:32 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-04-14 07:06:29 +0700
commite484bcf1323ff3522eb386a4e40ba9209a116bbf (patch)
tree21ba579a2b78571a3e6441d29c329093c59f0396 /libraries/libtins/libdir.patch
parent211c52ca1ec3a070cbc07d777d72539a12c57fc7 (diff)
downloadslackbuilds-e484bcf1323ff3522eb386a4e40ba9209a116bbf.tar.gz
libraries/libtins: Added (network packet sniffing library).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'libraries/libtins/libdir.patch')
-rw-r--r--libraries/libtins/libdir.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/libraries/libtins/libdir.patch b/libraries/libtins/libdir.patch
new file mode 100644
index 0000000000..b1252d88ad
--- /dev/null
+++ b/libraries/libtins/libdir.patch
@@ -0,0 +1,49 @@
+--- 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})
+