mirror of
https://git.freebsd.org/ports.git
synced 2025-06-01 10:56:27 -04:00
Thanks to antoine@ for the exp-run. Approved by: rakuco (mentor) Reviewed by: tcberner (mentor) Reviewed by: mat PR: 222000 (exp-run) Differential Revision: https://reviews.freebsd.org/D12299
14 lines
540 B
CMake
14 lines
540 B
CMake
--- Modules/FindSDL.cmake.orig 2017-05-31 14:00:09 UTC
|
|
+++ Modules/FindSDL.cmake
|
|
@@ -85,6 +85,11 @@ else()
|
|
set(VC_LIB_PATH_SUFFIX lib/x86)
|
|
endif()
|
|
|
|
+# On FreeBSD 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 /usr/local/include)
|
|
+
|
|
# SDL-1.1 is the name used by FreeBSD ports...
|
|
# don't confuse it for the version number.
|
|
find_library(SDL_LIBRARY_TEMP
|