diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2014-04-17 12:02:59 +0800 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2014-04-17 12:02:59 +0800 |
commit | 7c6e45f091e683180c789eb4c17f9da09c057859 (patch) | |
tree | fe274fff20da1eca578b9165d968cb5753a26136 /Mk | |
parent | f779c75000456e1c06807e2921ca576c59d89677 (diff) | |
download | freebsd-ports-gnome-7c6e45f091e683180c789eb4c17f9da09c057859.tar.gz freebsd-ports-gnome-7c6e45f091e683180c789eb4c17f9da09c057859.tar.zst freebsd-ports-gnome-7c6e45f091e683180c789eb4c17f9da09c057859.zip |
- Create a DO_MAKE_BUILD which will do the right thing for building, such
as setting MAKE_ENV. Without this things like WITH_CCACHE_BUILD do not
properly work if a port does its own building.
With hat: portmgr
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.port.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 4d92d60238b7..8edd8a06be40 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -3664,9 +3664,10 @@ do-configure: # Build # XXX: ${MAKE_ARGS:N${DESTDIRNAME}=*} would be easier but it is not valid with the old fmake +DO_MAKE_BUILD?= ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS:C,^${DESTDIRNAME}=.*,,g} .if !target(do-build) do-build: - @(cd ${BUILD_WRKSRC}; if ! ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS:C,^${DESTDIRNAME}=.*,,g} ${ALL_TARGET}; then \ + @(cd ${BUILD_WRKSRC}; if ! ${DO_MAKE_BUILD} ${ALL_TARGET}; then \ if [ -n "${BUILD_FAIL_MESSAGE}" ] ; then \ ${ECHO_MSG} "===> Compilation failed unexpectedly."; \ (${ECHO_CMD} "${BUILD_FAIL_MESSAGE}") | ${FMT} 75 79 ; \ |