ports/devel/cmake-core/files/patch-Modules_FindSDL.cmake
Daniel Engberg b23ea4e2d2 devel/cmake: Create a meta-port for CMake
Create a meta-port for CMake to make it easier for the end user and
better handling of build dependencies.

This pushes devel/cmake into /devel/cmake-core and splits manpages and
its dependencies to /devel/cmake-man

Approved by:	kde (tcberner)
Differential Revision:	https://reviews.freebsd.org/D34957
2022-09-08 22:14:05 +02:00

14 lines
542 B
CMake

--- Modules/FindSDL.cmake.orig 2021-03-23 15:43:17 UTC
+++ Modules/FindSDL.cmake
@@ -124,6 +124,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