mirror of
https://git.freebsd.org/ports.git
synced 2025-06-04 12:26:27 -04:00
Urho3D is a free lightweight, cross-platform 2D and 3D game engine implemented in C++ and released under the MIT license. Greatly inspired by OGRE and Horde3D. WWW: https://urho3d.github.io/
10 lines
740 B
CMake
10 lines
740 B
CMake
--- Source/ThirdParty/SDL/cmake/sdlchecks.cmake.orig 2019-05-24 15:51:45 UTC
|
|
+++ Source/ThirdParty/SDL/cmake/sdlchecks.cmake
|
|
@@ -356,6 +356,7 @@ endmacro()
|
|
macro(CheckX11)
|
|
if(VIDEO_X11)
|
|
# Urho3D - bug fix - in order to make these checks below work on both native and cross-compiling builds we need to add the '-shared' compiler flags to ensure the linker does not attempt to statically link against X11 shared libs which would otherwise fail the test when in cross-compiling mode
|
|
+ set(CMAKE_REQUIRED_INCLUDES "/usr/local/include")
|
|
set(CMAKE_REQUIRED_FLAGS "-fPIC -shared ${ORIG_CMAKE_REQUIRED_FLAGS}")
|
|
foreach (NAME X11 Xext Xcursor Xinerama Xi Xrandr Xrender Xss Xxf86vm)
|
|
string (TOUPPER ${NAME} UPCASE_NAME)
|