openbsd-ports/graphics/hugin/patches/patch-CMakeModules_FindGLEW_cmake

15 lines
766 B
Plaintext

$OpenBSD: patch-CMakeModules_FindGLEW_cmake,v 1.1 2010/05/29 01:23:55 sthen Exp $
--- CMakeModules/FindGLEW.cmake.orig Sun Sep 6 12:20:05 2009
+++ CMakeModules/FindGLEW.cmake Sun Sep 6 21:47:04 2009
@@ -8,8 +8,8 @@ IF(WIN32)
# for dynamic build, it's glew32.lib and the dll must be copied into hugin's bin folder
SET(GLEW_LIBRARIES ${SOURCE_BASE_DIR}/glew/lib/glew32s.lib)
ELSE(WIN32)
- FIND_PATH(GLEW_INCLUDE_DIR GL/glew.h PATHS /usr/include /usr/local/include)
- FIND_LIBRARY(GLEW_LIBRARIES GLEW PATHS /usr/lib /usr/local/lib)
+ FIND_PATH(GLEW_INCLUDE_DIR GL/glew.h PATHS /usr/include ${LOCALBASE}/include)
+ FIND_LIBRARY(GLEW_LIBRARIES GLEW GL PATHS /usr/lib ${LOCALBASE}/lib ${X11BASE}/lib)
ENDIF(WIN32)
IF (GLEW_INCLUDE_DIR AND GLEW_LIBRARIES)