summaryrefslogtreecommitdiffstats
path: root/multimedia/uavs3d/fix-libdir.patch
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/uavs3d/fix-libdir.patch')
-rw-r--r--multimedia/uavs3d/fix-libdir.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/multimedia/uavs3d/fix-libdir.patch b/multimedia/uavs3d/fix-libdir.patch
new file mode 100644
index 0000000000..1a8dc3ed44
--- /dev/null
+++ b/multimedia/uavs3d/fix-libdir.patch
@@ -0,0 +1,25 @@
+--- CMakeLists.txt 2023-02-23 08:04:14.000000000 +0530
++++ CMakeListsn.txt 2024-04-29 23:03:55.252641340 +0530
+@@ -13,6 +13,8 @@
+ " Unexpected pointer size ${CMAKE_SIZEOF_VOID_P} for ${CMAKE_SYSTEM_PROCESSOR}\n")
+ endif()
+ elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "i386" OR
++ "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "i586" OR
++ "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "i686" OR
+ "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86")
+ set(UAVS3D_TARGET_CPU "x86")
+ elseif("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "aarch64" OR
+@@ -109,7 +111,13 @@
+ find_package(Threads REQUIRED)
+ set(prefix "${CMAKE_INSTALL_PREFIX}")
+ set(includedir "include")
++if(${CMAKE_SIZEOF_VOID_P} EQUAL 4)
+ set(libdir "lib")
++elseif(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
++set(libdir "lib64")
++else()
++message(FATAL_ERROR " Compiling for wrong architecture in Slackware GNU/Linux \n")
++endif()
+ set(pc_file "${CONFIG_DIR}/${LIBNAME}.pc")
+
+ set(CMAKE_INSTALL_INCLUDE_DIR "${CMAKE_INSTALL_PREFIX}/${includedir}")