mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-01-06 07:44:52 +01:00
capstone: commit a better patch
This commit is contained in:
parent
6d7bf39ad4
commit
52d59f6988
2 changed files with 28 additions and 1 deletions
|
|
@ -20,6 +20,6 @@ DEPEND="${RDEPEND}"
|
|||
#TODO: add java and ocaml bindings
|
||||
|
||||
src_prepare() {
|
||||
sed -i "s|lib/|lib\${LIBSUFFIX}/|" CMakeLists.txt || die
|
||||
eapply ${FILESDIR}/capstone-cmake.patch
|
||||
cmake-utils_src_prepare
|
||||
}
|
||||
|
|
|
|||
27
dev-libs/capstone/files/capstone-cmake.patch
Normal file
27
dev-libs/capstone/files/capstone-cmake.patch
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
--- a/CMakeLists.txt.orig 2019-01-10 21:45:56.000000000 +0800
|
||||
+++ b/CMakeLists.txt 2019-02-19 21:56:11.651398683 +0800
|
||||
@@ -576,15 +576,9 @@
|
||||
source_group("Include\\EVM" FILES ${HEADERS_EVM})
|
||||
|
||||
### test library 64bit routine:
|
||||
-get_property(LIB64 GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS)
|
||||
+include("GNUInstallDirs")
|
||||
|
||||
-if (NOT APPLE AND "${LIB64}" STREQUAL "TRUE")
|
||||
- set(LIBSUFFIX 64)
|
||||
-else()
|
||||
- set(LIBSUFFIX "")
|
||||
-endif()
|
||||
-
|
||||
-set(INSTALL_LIB_DIR lib${LIBSUFFIX} CACHE PATH "Installation directory for libraries")
|
||||
+set(INSTALL_LIB_DIR ${CMAKE_INSTALL_LIBDIR} CACHE PATH "Installation directory for libraries")
|
||||
mark_as_advanced(INSTALL_LIB_DIR)
|
||||
|
||||
## installation
|
||||
@@ -611,5 +605,5 @@
|
||||
target_link_libraries(cstool ${default-target})
|
||||
|
||||
install(TARGETS cstool DESTINATION bin)
|
||||
-install(FILES ${CMAKE_BINARY_DIR}/capstone.pc DESTINATION lib/pkgconfig)
|
||||
+install(FILES ${CMAKE_BINARY_DIR}/capstone.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
||||
endif ()
|
||||
Loading…
Reference in a new issue