diff options
author | rakuco <rakuco@FreeBSD.org> | 2013-11-06 02:34:22 +0800 |
---|---|---|
committer | rakuco <rakuco@FreeBSD.org> | 2013-11-06 02:34:22 +0800 |
commit | 905304d05f3b7a9a489cd782748daf74e8d882e1 (patch) | |
tree | f32ee7b1238a5be5178c342fb367d0842295aaf9 /net-im/libjreen | |
parent | c863663a01f64ec3981c680ae99e6365fc7485fa (diff) | |
download | freebsd-ports-gnome-905304d05f3b7a9a489cd782748daf74e8d882e1.tar.gz freebsd-ports-gnome-905304d05f3b7a9a489cd782748daf74e8d882e1.tar.zst freebsd-ports-gnome-905304d05f3b7a9a489cd782748daf74e8d882e1.zip |
Welcome CMake 2.8.12!
With contributions from Schaich Alonso <alonsoschaich@fastmail.fm>,
including stage support for devel/cmake-gui.
This update took much longer than expected due to CMake changing the
arguments to an internal macro that ended up being used by some ports:
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=9ce60ff5
I have also started a discussion about this on CMake's development list:
http://article.gmane.org/gmane.comp.programming.tools.cmake.devel/8464
It required adjusting the affected ports, and these changes have approved by
portmgr (bdrewery).
PR: ports/182981
Approved by: portmgr (bdrewery)
Diffstat (limited to 'net-im/libjreen')
-rw-r--r-- | net-im/libjreen/files/patch-cmake__jreenMacros.cmake | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/net-im/libjreen/files/patch-cmake__jreenMacros.cmake b/net-im/libjreen/files/patch-cmake__jreenMacros.cmake new file mode 100644 index 000000000000..473fe3f80bde --- /dev/null +++ b/net-im/libjreen/files/patch-cmake__jreenMacros.cmake @@ -0,0 +1,43 @@ +CMake 2.8.12 fix. + +http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=9ce60ff509c4ff27fe861fc5b2080f50897a68c4 +changed the arguments of the internal macros QT4_EXTRACT_OPTIONS and +QT4_CREATE_MOC_COMMAND which the port uses directly, so we have to adapt. +--- cmake/jreenMacros.cmake.orig 2013-01-06 17:49:31.000000000 +0200 ++++ cmake/jreenMacros.cmake 2013-11-03 19:42:41.000000000 +0200 +@@ -19,7 +19,7 @@ + MACRO (JREEN_WRAP_CPP outfiles ) + # get include dirs + QT4_GET_MOC_FLAGS(moc_flags) +- QT4_EXTRACT_OPTIONS(moc_files moc_options ${ARGN}) ++ QT4_EXTRACT_OPTIONS(moc_files moc_options moc_target ${ARGN}) + + FOREACH (it ${moc_files}) + GET_FILENAME_COMPONENT(_abs_FILE ${it} ABSOLUTE) +@@ -39,7 +39,7 @@ + FOREACH (_current_MOC_INC ${_match}) + STRING(REGEX MATCH "moc_[^ <\"]+\\.cpp" _current_MOC "${_current_MOC_INC}") + SET(_moc ${CMAKE_CURRENT_BINARY_DIR}/${_current_MOC}) +- QT4_CREATE_MOC_COMMAND(${_abs_FILE} ${_moc} "${_moc_INCS}" "") ++ QT4_CREATE_MOC_COMMAND(${_abs_FILE} ${_moc} "${_moc_INCS}" "" "${moc_target}") + MACRO_ADD_FILE_DEPENDENCIES(${_abs_FILE} ${_moc}) + ENDFOREACH (_current_MOC_INC) + ENDIF() +@@ -47,7 +47,7 @@ + FOREACH (_current_MOC_INC ${_match2}) + STRING(REGEX MATCH "[^ <\"]+\\.moc" _current_MOC "${_current_MOC_INC}") + SET(_moc ${CMAKE_CURRENT_BINARY_DIR}/${_current_MOC}) +- QT4_CREATE_MOC_COMMAND(${_header} ${_moc} "${_moc_INCS}" "") ++ QT4_CREATE_MOC_COMMAND(${_header} ${_moc} "${_moc_INCS}" "" "${moc_target}") + MACRO_ADD_FILE_DEPENDENCIES(${_header} ${_moc}) + ENDFOREACH (_current_MOC_INC) + ENDIF() +@@ -57,7 +57,7 @@ + STRING(REGEX MATCHALL "Q_OBJECT|Q_GADGET" _match2 "${_contents}") + IF(_match2) + QT4_MAKE_OUTPUT_FILE(${_abs_FILE} moc_ cpp outfile) +- QT4_CREATE_MOC_COMMAND(${_abs_FILE} ${outfile} "${moc_flags}" "${moc_options}") ++ QT4_CREATE_MOC_COMMAND(${_abs_FILE} ${outfile} "${moc_flags}" "${moc_options}" "${moc_target}") + SET(${outfiles} ${${outfiles}} ${outfile}) + ENDIF() + ENDIF() |