1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-03 11:12:13 +00:00

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.
This commit is contained in:
Raphael Kubo da Costa 2013-08-03 21:15:54 +00:00
parent 75e127f595
commit 6b250b4a18
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=324203
2 changed files with 8 additions and 1 deletions

View File

@ -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} != ""

View File

@ -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.")