openbsd-ports/devel/cmake/patches/patch-Modules_Qt4ConfigDependentSettings_cmake
2010-11-22 16:26:30 +00:00

46 lines
1.4 KiB
Plaintext

$OpenBSD: patch-Modules_Qt4ConfigDependentSettings_cmake,v 1.5 2010/11/22 16:26:30 dcoppa Exp $
--- Modules/Qt4ConfigDependentSettings.cmake.orig Wed Nov 3 20:58:27 2010
+++ Modules/Qt4ConfigDependentSettings.cmake Fri Nov 19 17:14:55 2010
@@ -26,6 +26,9 @@
# if a user needs the dependencies, and they couldn't be found, they can set
# the variables themselves.
+INCLUDE(FindIconv)
+INCLUDE(FindLibintl)
+
SET(QT_QTGUI_LIB_DEPENDENCIES "")
SET(QT_QTCORE_LIB_DEPENDENCIES "")
SET(QT_QTNETWORK_LIB_DEPENDENCIES "")
@@ -60,14 +63,27 @@ IF(Q_WS_WIN AND NOT QT_IS_STATIC)
SET(QT_DEFINITIONS ${QT_DEFINITIONS} -DQT_DLL)
ENDIF(Q_WS_WIN AND NOT QT_IS_STATIC)
-IF(NOT QT_IS_STATIC)
- RETURN()
-ENDIF(NOT QT_IS_STATIC)
-
# QtOpenGL dependencies
find_package(OpenGL)
SET (QT_QTOPENGL_LIB_DEPENDENCIES ${OPENGL_glu_LIBRARY} ${OPENGL_gl_LIBRARY})
+## iconv
+IF(ICONV_FOUND)
+ FIND_LIBRARY(QT_ICONV_LIBRARY NAMES iconv)
+ MARK_AS_ADVANCED(QT_ICONV_LIBRARY)
+ IF(QT_ICONV_LIBRARY)
+ SET(QT_QTGUI_LIB_DEPENDENCIES ${QT_QTGUI_LIB_DEPENDENCIES} ${QT_ICONV_LIBRARY})
+ ENDIF(QT_ICONV_LIBRARY)
+ENDIF(ICONV_FOUND)
+
+## libintl
+IF(LIBINTL_FOUND)
+ FIND_LIBRARY(QT_INTL_LIBRARY NAMES intl)
+ MARK_AS_ADVANCED(QT_INTL_LIBRARY)
+ IF(QT_INTL_LIBRARY)
+ SET(QT_QTGUI_LIB_DEPENDENCIES ${QT_QTGUI_LIB_DEPENDENCIES} ${QT_INTL_LIBRARY})
+ ENDIF(QT_INTL_LIBRARY)
+ENDIF(LIBINTL_FOUND)
## system png
IF(QT_QCONFIG MATCHES "system-png")