2023-08-16 22:26:55 +00:00
|
|
|
Index: Modules/FindSDL.cmake
|
|
|
|
--- Modules/FindSDL.cmake.orig
|
|
|
|
+++ Modules/FindSDL.cmake
|
2024-08-02 03:25:04 +00:00
|
|
|
@@ -127,6 +127,11 @@ else()
|
2023-08-16 22:26:55 +00:00
|
|
|
set(VC_LIB_PATH_SUFFIX lib/x86)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
+# On OpenBSD SDL depends on libiconv and SDL_stdinc.h includes iconv.h,
|
|
|
|
+# which is located in ${LOCALBASE}/include. Append ${LOCALBASE}/include
|
|
|
|
+# to the SDL_INCLUDE_DIR, thus allow to build SDL apps out of box.
|
|
|
|
+list(APPEND SDL_INCLUDE_DIR ${LOCALBASE}/include)
|
|
|
|
+
|
|
|
|
# SDL-1.1 is the name used by FreeBSD ports...
|
|
|
|
# don't confuse it for the version number.
|
|
|
|
find_library(SDL_LIBRARY_TEMP
|