From owner-svn-ports-head@FreeBSD.ORG Sat Aug 3 21:15:55 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 6F018EFF; Sat, 3 Aug 2013 21:15:55 +0000 (UTC) (envelope-from rakuco@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4231E2E36; Sat, 3 Aug 2013 21:15:55 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r73LFs2c069449; Sat, 3 Aug 2013 21:15:54 GMT (envelope-from rakuco@svn.freebsd.org) Received: (from rakuco@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r73LFseI069447; Sat, 3 Aug 2013 21:15:54 GMT (envelope-from rakuco@svn.freebsd.org) Message-Id: <201308032115.r73LFseI069447@svn.freebsd.org> From: Raphael Kubo da Costa Date: Sat, 3 Aug 2013 21:15:54 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r324203 - in head/devel/cmake: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Aug 2013 21:15:55 -0000 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.")