logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: ad7edd95f3bf7ab8cee3da8f61512b24a71ec784
parent 653f749da586017b73651d5435826de9a97e5bae
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed, 22 Feb 2023 05:28:37 +0100

media-libs/freeglut: Fix patch for 3.4.0

Diffstat:

Mmedia-libs/freeglut/files/freeglut-3.2.1-opengl-cmake.patch16++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/media-libs/freeglut/files/freeglut-3.2.1-opengl-cmake.patch b/media-libs/freeglut/files/freeglut-3.2.1-opengl-cmake.patch @@ -3,13 +3,13 @@ index 771a52b..50c5cb9 100644 --- a/CMakeLists.txt.old +++ b/CMakeLists.txt @@ -259,8 +259,8 @@ IF(FREEGLUT_GLES) - LIST(APPEND PUBLIC_DEFINITIONS -DFREEGLUT_GLES) - LIST(APPEND LIBS GLESv2 GLESv1_CM EGL) - ELSE() -- FIND_PACKAGE(OpenGL REQUIRED) -- LIST(APPEND LIBS ${OPENGL_gl_LIBRARY}) -+ FIND_PACKAGE(OpenGL COMPONENTS OpenGL REQUIRED) -+ LIST(APPEND LIBS ${OPENGL_opengl_LIBRARY}) - INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR}) + find_library(OPENGL_glu_LIBRARY NAME GLU HINTS ${X11_LIB_PATH}) + endif() + +- FIND_PACKAGE(OpenGL REQUIRED) +- LIST(APPEND LIBS ${OPENGL_gl_LIBRARY}) ++ FIND_PACKAGE(OpenGL COMPONENTS OpenGL REQUIRED) ++ LIST(APPEND LIBS ${OPENGL_opengl_LIBRARY}) + INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR}) ENDIF()