summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/capstone/CMakeLists.txt.patch31
-rw-r--r--system/capstone/capstone.SlackBuild1
2 files changed, 7 insertions, 25 deletions
diff --git a/system/capstone/CMakeLists.txt.patch b/system/capstone/CMakeLists.txt.patch
index 123c94bd83..2107c99d1c 100644
--- a/system/capstone/CMakeLists.txt.patch
+++ b/system/capstone/CMakeLists.txt.patch
@@ -1,32 +1,13 @@
--- CMakeLists.txt 2017-04-17 07:31:11.000000000 -0600
-+++ CMakeLists_new.txt 2017-07-16 19:39:43.597509953 -0600
-@@ -460,21 +460,34 @@
- source_group("Include\\M68K" FILES ${HEADERS_M68K})
- source_group("Include\\TMS320C64x" FILES ${HEADERS_TMS320C64X})
-
-+### test library 64bit routine:
-+get_property(LIB64 GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS)
-+
-+if ("${LIB64}" STREQUAL "TRUE")
-+ set(LIBSUFFIX 64)
-+else()
-+ set(LIBSUFFIX "")
-+endif()
-+
-+set(INSTALL_LIB_DIR lib${LIBSUFFIX} CACHE PATH "Installation directory for libraries")
-+mark_as_advanced(INSTALL_LIB_DIR)
-+
-+
- ## installation
- install(FILES ${HEADERS_COMMON} DESTINATION include/capstone)
-
++++ CMakeLists_new.txt 2017-07-31 17:02:55.478190634 +0100
+@@ -466,15 +466,15 @@
if (CAPSTONE_BUILD_STATIC)
install(TARGETS capstone-static
RUNTIME DESTINATION bin
- LIBRARY DESTINATION lib
- ARCHIVE DESTINATION lib)
-+ LIBRARY DESTINATION ${INSTALL_LIB_DIR}
-+ ARCHIVE DESTINATION ${INSTALL_LIB_DIR})
++ LIBRARY DESTINATION lib${LIB_SUFFIX}
++ ARCHIVE DESTINATION lib${LIB_SUFFIX})
endif ()
if (CAPSTONE_BUILD_SHARED)
@@ -34,8 +15,8 @@
RUNTIME DESTINATION bin
- LIBRARY DESTINATION lib
- ARCHIVE DESTINATION lib)
-+ LIBRARY DESTINATION ${INSTALL_LIB_DIR}
-+ ARCHIVE DESTINATION ${INSTALL_LIB_DIR})
++ LIBRARY DESTINATION lib${LIB_SUFFIX}
++ ARCHIVE DESTINATION lib${LIB_SUFFIX})
endif ()
if (CAPSTONE_BUILD_SHARED)
diff --git a/system/capstone/capstone.SlackBuild b/system/capstone/capstone.SlackBuild
index faf4fa3070..23b45342e1 100644
--- a/system/capstone/capstone.SlackBuild
+++ b/system/capstone/capstone.SlackBuild
@@ -81,6 +81,7 @@ cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_SUFFIX="$LIBDIRSUFFIX" \
-DCAPSTONE_ARM_SUPPORT=1 \
-DCAPSTONE_ARM64_SUPPORT=1 \
-DCAPSTONE_M68K_SUPPORT=1 \