$NetBSD: patch-ai,v 1.2 2009/08/28 20:46:19 hasso Exp $ --- CMakeLists.txt.orig 2009-05-18 22:14:15 +0300 +++ CMakeLists.txt 2009-08-28 22:04:18 +0300 @@ -102,6 +102,7 @@ IF(UNIX) FIND_LIBRARY(INTL_LIBRARY NAMES intl PATHS + "${_CMAKE_INSTALL_DIR}/lib" /usr/local/lib /usr/lib /sw/lib @@ -112,6 +113,7 @@ IF(UNIX) FIND_LIBRARY(ICONV_LIBRARY NAMES iconv PATHS + "${_CMAKE_INSTALL_DIR}/lib" /usr/local/lib /usr/lib /sw/lib @@ -121,11 +123,14 @@ IF(UNIX) ) IF(INTL_LIBRARY AND ICONV_LIBRARY) SET(GETTEXT_LIB ${INTL_LIBRARY} ${ICONV_LIBRARY}) + ELSEIF(INTL_LIBRARY) + SET(GETTEXT_LIB ${INTL_LIBRARY}) ENDIF(INTL_LIBRARY AND ICONV_LIBRARY) FIND_PATH(FREETYPE_INC freetype PATHS + "${_CMAKE_INSTALL_DIR}/include/freetype2" /usr/local/include/freetype2 /usr/include/freetype2 /sw/include/freetype2 @@ -150,6 +155,7 @@ IF(UNIX) FIND_PATH(OPENEXR_INC ImfXdr.h PATHS + "${_CMAKE_INSTALL_DIR}/include/OpenEXR" /usr/local/include/OpenEXR /usr/include/OpenEXR /sw/include/OpenEXR