Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/emulators/amiberry/files/patch-CMakeLists.txt
46590 views
1
--- CMakeLists.txt.orig 2026-04-22 13:26:02 UTC
2
+++ CMakeLists.txt
3
@@ -142,7 +142,7 @@ include(cmake/Dependencies.cmake)
4
5
# Install rules may need dependency targets, such as SDL3 and SDL3_image,
6
# so include them after dependency discovery.
7
-if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
8
+if (CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
9
include(cmake/linux/install.cmake)
10
elseif (IOS)
11
include(cmake/ios/install.cmake)
12
@@ -153,25 +153,3 @@ include(packaging/CMakeLists.txt)
13
endif ()
14
15
include(packaging/CMakeLists.txt)
16
-
17
-# Link libraries (FreeBSD needs correct order)
18
-if(TARGET amiberry AND CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
19
- target_link_options(amiberry PRIVATE -L/usr/local/lib)
20
- # Apply FreeBSD pkg-config include/link dirs
21
- if(FREEBSD_INCLUDE_DIRS)
22
- target_include_directories(amiberry PRIVATE ${FREEBSD_INCLUDE_DIRS})
23
- endif()
24
- if(FREEBSD_LIBRARIES)
25
- target_link_libraries(amiberry PRIVATE ${FREEBSD_LIBRARIES})
26
- endif()
27
-
28
- # forkpty() lives in libutil on FreeBSD
29
- target_link_libraries(amiberry PRIVATE util)
30
-
31
- # libiconv_* symbols come from ports/converters/libiconv
32
- find_library(LIBICONV_LIBRARY NAMES iconv PATHS /usr/local/lib REQUIRED)
33
- target_link_libraries(amiberry PRIVATE ${LIBICONV_LIBRARY})
34
-
35
- # existing libs
36
- target_link_libraries(amiberry PRIVATE ${LIBUSB_LIBRARY} serialport ${EXTRA_LIBS})
37
-endif()
38
39