aboutsummaryrefslogtreecommitdiff
path: root/Mk/bsd.port.mk
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2014-10-28 18:01:55 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2014-10-28 18:01:55 +0000
commit9ae831676ed5d92adbdd7955b41824340e73e4d5 (patch)
tree4e6859e037ac0da1044b30035af582f5766878a3 /Mk/bsd.port.mk
parent0b62990d5dcacce2862735038910ca856049ddd0 (diff)
downloadports-9ae831676ed5d92adbdd7955b41824340e73e4d5.tar.gz
ports-9ae831676ed5d92adbdd7955b41824340e73e4d5.zip
Notes
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r--Mk/bsd.port.mk41
1 files changed, 1 insertions, 40 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 08f76d1477b8..e85f7624001e 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -2074,46 +2074,7 @@ _MAKE_JOBS?= -j${MAKE_JOBS_NUMBER}
BUILD_FAIL_MESSAGE+= Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer.
.endif
-# ccache support
-
-# Try to set a default CCACHE_DIR to workaround HOME=/dev/null and
-# HOME=${WRKDIR}/* staging fixes
-.if defined(WITH_CCACHE_BUILD) && !defined(CCACHE_DIR) && \
- (!defined(HOME) || ${HOME} == /dev/null || ${HOME:S/^${WRKDIR}//} != ${HOME})
-. if defined(USER) && ${USER} == root
-CCACHE_DIR= /root/.ccache
-. else
-NO_CCACHE= yes
-WARNING+= WITH_CCACHE_BUILD support disabled, please set CCACHE_DIR.
-. endif
-.endif
-
-# Support NO_CCACHE for common setups, require WITH_CCACHE_BUILD, and
-# don't use if ccache already set in CC
-.if !defined(NO_CCACHE) && defined(WITH_CCACHE_BUILD) && !${CC:M*ccache*} && \
- !defined(NO_BUILD) && !defined(NOCCACHE)
-# Avoid depends loops between pkg and ccache
-. if !${.CURDIR:M*/devel/ccache} && !${.CURDIR:M*/ports-mgmt/pkg}
-BUILD_DEPENDS+= ${LOCALBASE}/bin/ccache:${PORTSDIR}/devel/ccache
-. endif
-
-_CCACHE_PATH= ${LOCALBASE}/libexec/ccache
-
-# Prepend the ccache dir into the PATH and setup ccache env
-PATH:= ${_CCACHE_PATH}:${PATH}
-#.MAKEFLAGS: PATH=${PATH}
-.if !${MAKE_ENV:MPATH=*} && !${CONFIGURE_ENV:MPATH=*}
-MAKE_ENV+= PATH=${PATH}
-CONFIGURE_ENV+= PATH=${PATH}
-.endif
-
-# Ensure this is always in subchild environments
-. if defined(CCACHE_DIR)
-#.MAKEFLAGS: CCACHE_DIR=${CCACHE_DIR}
-MAKE_ENV+= CCACHE_DIR="${CCACHE_DIR}"
-CONFIGURE_ENV+= CCACHE_DIR="${CCACHE_DIR}"
-. endif
-.endif
+.include "${PORTSDIR}/Mk/bsd.ccache.mk"
PTHREAD_CFLAGS?=
PTHREAD_LIBS?= -pthread