svn commit: r324203 - in head/devel/cmake: . files

Raphael Kubo da Costa rakuco at FreeBSD.org
Sat Aug 3 21:15:55 UTC 2013


Author: rakuco
Date: Sat Aug  3 21:15:54 2013
New Revision: 324203
URL: http://svnweb.freebsd.org/changeset/ports/324203

Log:
  Add an initial cache file for CMake to use at build-time.
  
  Provide a cache file with additional CMake commands that CMake reads when
  bootstrapping. For now it just sets the BUILD_TESTING cache variable to OFF,
  so that most tests are not processed when building the port.
  
  Building the tests was particularly troublesome in Qt 4's case: since we
  have separate ports for each part, one could have devel/qmake-qt4 installed
  and not, say, devel/qt4-corelib, which would make CMake fail.
  
  See https://mail.kde.org/pipermail/kde-freebsd/2013-July/015703.html for an
  example.
  
  No PORTREVISION bump since package creation was not broken.

Added:
  head/devel/cmake/files/InitialCache.cmake   (contents, props changed)
Modified:
  head/devel/cmake/Makefile

Modified: head/devel/cmake/Makefile
==============================================================================
--- head/devel/cmake/Makefile	Sat Aug  3 20:33:45 2013	(r324202)
+++ head/devel/cmake/Makefile	Sat Aug  3 21:15:54 2013	(r324203)
@@ -14,7 +14,8 @@ LICENSE=	BSD
 CONFIGURE_ENV=	MAKE=make
 CONFIGURE_ARGS=	--prefix=${PREFIX} \
 		--datadir="/${DATADIR_REL}" \
-		--docdir="/${DOCSDIR_REL}"
+		--docdir="/${DOCSDIR_REL}" \
+		--init="${PATCHDIR}/InitialCache.cmake"
 MAKE_JOBS_SAFE=	yes
 
 .if defined(STRIP) && ${STRIP} != ""

Added: head/devel/cmake/files/InitialCache.cmake
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/cmake/files/InitialCache.cmake	Sat Aug  3 21:15:54 2013	(r324203)
@@ -0,0 +1,6 @@
+# Disable CMake's tests while building. We are not interested in them when
+# building packages/ports, and it may create problems if part of some
+# dependencies are installed (for example, devel/qmake4 is installed, but
+# devel/qt4-corelib is not).
+# See https://mail.kde.org/pipermail/kde-freebsd/2013-July/015703.html
+set(BUILD_TESTING OFF CACHE BOOL "Build the testing tree.")


More information about the svn-ports-head mailing list