freebsd-ports/graphics/waffle/files/patch-cmake_Modules_WaffleDefineCompilerFlags.cmake
Koop Mast 32579890bf Update waffle to 1.5.1.
Use USES=compiler:c11 to allow it to build on older FreeBSD versions.
Enable GLX support.
Fix plist when cmake is in debug build mode.

Submitted by:	dumbbell@
2015-02-22 20:21:48 +00:00

20 lines
757 B
CMake

--- cmake/Modules/WaffleDefineCompilerFlags.cmake.orig 2015-01-22 20:00:17 UTC
+++ cmake/Modules/WaffleDefineCompilerFlags.cmake
@@ -50,7 +50,7 @@ if (NOT MSVC)
waffle_add_c_flag("-Werror=int-conversion" WERROR_INT_CONVERSION)
waffle_add_c_flag("-fvisibility=hidden" WITH_VISIBILITY_HIDDEN)
- if(waffle_on_linux)
+ if(waffle_on_linux OR waffle_on_freebsd)
# On MacOS, the SSE2 headers trigger this error.
waffle_add_c_flag("-Werror=missing-prototypes" WERROR_MISSING_PROTOTYPES)
endif()
@@ -97,7 +97,7 @@ if(waffle_on_mac)
add_definitions(-DWAFFLE_HAS_CGL)
endif()
-if(waffle_on_linux)
+if(waffle_on_linux OR waffle_on_freebsd)
if(waffle_has_glx)
add_definitions(-DWAFFLE_HAS_GLX)
endif()