+++ /dev/null
-$NetBSD$
-
---- CMakeLists.txt.orig 2017-02-27 02:30:49.000000000 +0000
-+++ CMakeLists.txt
-@@ -33,11 +33,11 @@ if(X11_FOUND)
- add_definitions(-DPIGLIT_HAS_X11)
- endif()
-
--if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
-+#if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
- set(PIGLIT_BUILD_GLES_TESTS_DEFAULT ON)
--else()
-- set(PIGLIT_BUILD_GLES_TESTS_DEFAULT OFF)
--endif()
-+#else()
-+# set(PIGLIT_BUILD_GLES_TESTS_DEFAULT OFF)
-+#endif()
-
- option(PIGLIT_BUILD_GL_TESTS "Build tests for OpenGL" ON)
- option(PIGLIT_BUILD_GLES1_TESTS "Build tests for OpenGL ES1" ${PIGLIT_BUILD_GLES_TESTS_DEFAULT})
-@@ -49,11 +49,11 @@ if(PIGLIT_BUILD_GL_TESTS)
- find_package(OpenGL REQUIRED)
- endif()
-
--if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
-+#if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
- option(PIGLIT_USE_WAFFLE "Use Waffle in place of GLUT" ON)
--else()
-- option(PIGLIT_USE_WAFFLE "Use Waffle in place of GLUT" OFF)
--endif()
-+#else()
-+# option(PIGLIT_USE_WAFFLE "Use Waffle in place of GLUT" OFF)
-+#endif()
-
- if(PIGLIT_USE_WAFFLE)
- if (NOT WIN32)
-@@ -128,7 +128,8 @@ if(PIGLIT_BUILD_CL_TESTS)
- find_package(OpenCL REQUIRED)
- endif(PIGLIT_BUILD_CL_TESTS)
-
--IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
-+#IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
-+IF("Linux" MATCHES "Linux")
- if(X11_FOUND AND OPENGL_gl_LIBRARY)
- # Assume the system has GLX. In the future, systems may exist
- # with libGL and libX11 but no GLX, but that world hasn't
-@@ -418,7 +419,7 @@ if(HAVE_LIBCACA)
- endif(HAVE_LIBCACA)
- endif(GBM_FOUND)
-
--if(PIGLIT_USE_WAFFLE AND ${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
-+if(PIGLIT_USE_WAFFLE)
- pkg_check_modules(EGL egl>=11.0)
- endif()
-
+++ /dev/null
-$NetBSD$
-
---- tests/util/CMakeLists.txt.orig 2017-02-27 02:30:50.000000000 +0000
-+++ tests/util/CMakeLists.txt
-@@ -119,7 +119,7 @@ else()
- )
- endif()
-
--if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
-+#if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
- # One needs to have at least one hardware driver present, otherwise
- # there is no point compiling just the dispatcher.
- if(PIGLIT_BUILD_DMA_BUF_TESTS)
-@@ -158,6 +158,6 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
- list(APPEND UTIL_GL_LIBS ${WAYLAND_LIBRARIES})
- endif()
-
--endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
-+#endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
-
- piglit_include_target_api()