glpng patch

Thomas Klausner tk at giga.or.at
Fri Sep 11 02:56:29 PDT 2009


Hi!

After I imported a glpng package into pkgsrc based on the freedesktop
git repository, the attached patch was added by David Sainty
<dsainty at netbsd.org> with the commit message:

The cmake utility recommends using OPENGL_gl_LIBRARY if GLU is not
required.  This also fixes the build in some circumstances: if cmake
finds an installed libGLU the build will fail, because we don't
buildlink it.

Ok to add it to the repo, when I find out how to do it? :)
(Assumedly I already have commit privs.)
 Thomas
-------------- next part --------------
$NetBSD: patch-aa,v 1.1 2009/09/11 06:19:21 dsainty Exp $

The cmake utility recommends using OPENGL_gl_LIBRARY if GLU is not required.
This also fixes the build in some circumstances: if cmake finds an installed
libGLU the build will fail, because we don't buildlink it.

--- src/CMakeLists.txt.orig	2009-09-11 18:03:37.198417478 +1200
+++ src/CMakeLists.txt	2009-09-11 18:03:47.708888770 +1200
@@ -5,7 +5,7 @@
 INCLUDE_DIRECTORIES ( ${ZLIB_INCLUDE_DIR} ${PNG_INCLUDE_DIR}
 		${OPENGL_INCLUDE_DIR}  ${CMAKE_SOURCE_DIR}/include/ )
 LINK_LIBRARIES ( ${CMAKE_DL_LIBS} ${ZLIB_LIBRARIES} ${PNG_LIBRARY}
-		${OPENGL_LIBRARIES} )
+		${OPENGL_gl_LIBRARY} )
 SET ( SRCS ${APPNAME}.c
 )
 SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC")


More information about the Games mailing list