libwebp/libwebp-freeglut.patch
2019-10-04 07:38:33 -05:00

39 lines
1.3 KiB
Diff

--- a/CMakeLists.txt~ 2019-07-04 14:32:37.000000000 -0500
+++ a/CMakeLists.txt 2019-09-20 15:18:10.590042650 -0500
@@ -458,20 +458,20 @@
if(WEBP_BUILD_VWEBP)
# vwebp
- find_package(GLUT)
- if(GLUT_FOUND)
+ find_package(FreeGLUT)
+ if(FreeGLUT_FOUND)
include_directories(${WEBP_DEP_IMG_INCLUDE_DIRS})
parse_makefile_am(${CMAKE_CURRENT_SOURCE_DIR}/examples "VWEBP_SRCS" "vwebp")
add_executable(vwebp ${VWEBP_SRCS})
target_link_libraries(vwebp
${OPENGL_LIBRARIES}
exampleutil
- GLUT::GLUT
+ -lglut
imageioutil
webp
webpdemux)
target_include_directories(vwebp
- PRIVATE GLUT::GLUT
+ PRIVATE -lglut
${CMAKE_CURRENT_BINARY_DIR}/src
${OPENGL_INCLUDE_DIR})
install(TARGETS vwebp RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
--- a/examples/vwebp.c~ 2019-07-04 14:32:37.000000000 -0500
+++ a/examples/vwebp.c 2019-09-20 15:38:32.276641491 -0500
@@ -27,7 +27,7 @@
#if defined(HAVE_GLUT_GLUT_H)
#include <GLUT/glut.h>
#else
-#include <GL/glut.h>
+#include <GL/freeglut.h>
#ifdef FREEGLUT
#include <GL/freeglut.h>
#endif