summaryrefslogtreecommitdiff
path: root/devel/cmake
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2010-11-23 21:08:39 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2010-11-23 21:08:39 +0000
commit2ddc5f4cd8a1c73b3cb0116aac906d404a9bdeb7 (patch)
treed634311da73e4fbf0278e5b426afc113afc095a4 /devel/cmake
parentUpdate to webp 0.0.4 (diff)
Fix search for QT_PLUGIN_PATH when it is empty. This should fix
some ports after latest cmake update.
Notes
Notes: svn path=/head/; revision=265026
Diffstat (limited to 'devel/cmake')
-rw-r--r--devel/cmake/Makefile1
-rw-r--r--devel/cmake/files/patch-Modules_FindQt4.cmake21
2 files changed, 19 insertions, 3 deletions
diff --git a/devel/cmake/Makefile b/devel/cmake/Makefile
index f5a628d8c57f..bcdc51110b54 100644
--- a/devel/cmake/Makefile
+++ b/devel/cmake/Makefile
@@ -7,6 +7,7 @@
PORTNAME= cmake
PORTVERSION= 2.8.3
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.${PORTNAME}.org/files/v${PORTVERSION:C/\.[[:digit:]]+$//}/
diff --git a/devel/cmake/files/patch-Modules_FindQt4.cmake b/devel/cmake/files/patch-Modules_FindQt4.cmake
index 3c97ce18db88..4c02d1664d76 100644
--- a/devel/cmake/files/patch-Modules_FindQt4.cmake
+++ b/devel/cmake/files/patch-Modules_FindQt4.cmake
@@ -1,6 +1,6 @@
---- ./Modules/FindQt4.cmake.orig 2010-03-16 23:29:30.000000000 +0300
-+++ ./Modules/FindQt4.cmake 2010-03-26 22:48:58.291402760 +0300
-@@ -392,7 +392,7 @@
+--- ./Modules/FindQt4.cmake.orig 2010-11-03 22:58:27.000000000 +0300
++++ ./Modules/FindQt4.cmake 2010-11-23 18:09:33.486039056 +0300
+@@ -461,7 +461,7 @@
# check for qmake
# Debian uses qmake-qt4
# macports' Qt uses qmake-mac
@@ -9,3 +9,18 @@
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\4.0.0;InstallDir]/bin"
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Versions\\4.0.0;InstallDir]/bin"
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Versions\\${qt_install_version};InstallDir]/bin"
+@@ -705,13 +705,7 @@
+ # ask qmake for the plugins directory
+ IF (QT_LIBRARY_DIR AND NOT QT_PLUGINS_DIR OR QT_QMAKE_CHANGED)
+ _qt4_query_qmake(QT_INSTALL_PLUGINS qt_plugins_dir)
+- SET(QT_PLUGINS_DIR NOTFOUND)
+- foreach(qt_cross_path ${CMAKE_FIND_ROOT_PATH})
+- set(qt_cross_paths ${qt_cross_paths} "${qt_cross_path}/plugins")
+- endforeach(qt_cross_path)
+- FIND_PATH(QT_PLUGINS_DIR NAMES accessible imageformats sqldrivers codecs designer
+- HINTS ${qt_cross_paths} ${qt_plugins_dir}
+- DOC "The location of the Qt plugins")
++ SET(QT_PLUGINS_DIR ${qt_plugins_dir} CACHE PATH "The location of the Qt plugins" FORCE)
+ ENDIF (QT_LIBRARY_DIR AND NOT QT_PLUGINS_DIR OR QT_QMAKE_CHANGED)
+
+ # ask qmake for the translations directory