1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

- Add WITH_CCACHE_BUILD support during 'configure' phase

- Add CCACHE_DIR
  The MAKE_ENV/CONFIGURE_ENV+= method of adding CCACHE_DIR
  in /etc/make.conf does not work for many ports since they
  overwrite using = instead of appending with +=. By adding
  CCACHE_DIR into the ENV variables after reading in the port
  the directory is properly set in the environment. Without
  this, the ccache support would sometimes work but incorrectly
  not respect the set CCACHE_DIR, potentially using 2 caches.

With hat:	portmgr
This commit is contained in:
Bryan Drewery 2013-04-23 00:26:55 +00:00
parent ed86e31262
commit 4292fecc2e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=316289
2 changed files with 17 additions and 1 deletions

View File

@ -10,6 +10,15 @@ in the release notes and/or placed into UPDATING.
All ports committers are allowed to commit to this file.
20130422:
AUTHOR: bdrewery@FreeBSD.org
* The entry for 20120830 to change CCACHE_DIR was not fully supported
by all ports. There is now a CCACHE_DIR variable that can be used
in /etc/make.conf for more complete coverage:
CCACHE_DIR=/var/cache/ccache
20130323:
AUTHOR: bapt@FreeBSD.org

View File

@ -940,6 +940,8 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org
#
# WITH_CCACHE_BUILD
# - Enable CCACHE support (devel/ccache). User settable.
# CCACHE_DIR
# - Which directory to use for ccache (default: $HOME/.ccache)
# NO_CCACHE
# - Disable CCACHE support for example for certain ports if
# CCACHE is enabled. User settable.
@ -2245,7 +2247,12 @@ BUILD_DEPENDS+= ${LOCALBASE}/bin/ccache:${PORTSDIR}/devel/ccache
. endif
# Prepend the ccache dir into the PATH and setup ccache env
MAKE_ENV+= PATH=${LOCALBASE}/libexec/ccache:${PATH}
MAKE_ENV+= PATH=${LOCALBASE}/libexec/ccache:${PATH}
CONFIGURE_ENV+= PATH=${LOCALBASE}/libexec/ccache:${PATH}
. if defined(CCACHE_DIR)
MAKE_ENV+= CCACHE_DIR="${CCACHE_DIR}"
CONFIGURE_ENV+= CCACHE_DIR="${CCACHE_DIR}"
. endif
.endif
PTHREAD_CFLAGS?=