Path: blob/main/emulators/amiberry/files/patch-CMakeLists.txt
46590 views
--- CMakeLists.txt.orig 2026-04-22 13:26:02 UTC1+++ CMakeLists.txt2@@ -142,7 +142,7 @@ include(cmake/Dependencies.cmake)34# Install rules may need dependency targets, such as SDL3 and SDL3_image,5# so include them after dependency discovery.6-if (CMAKE_SYSTEM_NAME STREQUAL "Linux")7+if (CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")8include(cmake/linux/install.cmake)9elseif (IOS)10include(cmake/ios/install.cmake)11@@ -153,25 +153,3 @@ include(packaging/CMakeLists.txt)12endif ()1314include(packaging/CMakeLists.txt)15-16-# Link libraries (FreeBSD needs correct order)17-if(TARGET amiberry AND CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")18- target_link_options(amiberry PRIVATE -L/usr/local/lib)19- # Apply FreeBSD pkg-config include/link dirs20- if(FREEBSD_INCLUDE_DIRS)21- target_include_directories(amiberry PRIVATE ${FREEBSD_INCLUDE_DIRS})22- endif()23- if(FREEBSD_LIBRARIES)24- target_link_libraries(amiberry PRIVATE ${FREEBSD_LIBRARIES})25- endif()26-27- # forkpty() lives in libutil on FreeBSD28- target_link_libraries(amiberry PRIVATE util)29-30- # libiconv_* symbols come from ports/converters/libiconv31- find_library(LIBICONV_LIBRARY NAMES iconv PATHS /usr/local/lib REQUIRED)32- target_link_libraries(amiberry PRIVATE ${LIBICONV_LIBRARY})33-34- # existing libs35- target_link_libraries(amiberry PRIVATE ${LIBUSB_LIBRARY} serialport ${EXTRA_LIBS})36-endif()373839