Date: Thu, 20 Jun 2013 09:48:09 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r321366 - in head: . Mk/Uses Message-ID: <201306200948.r5K9m9QG058852@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bapt Date: Thu Jun 20 09:48:08 2013 New Revision: 321366 URL: http://svnweb.freebsd.org/changeset/ports/321366 Log: Add a new USES: fmake This uses will allow to build ports using the legacy FreeBSD make, for ports not compatible with bmake Added: head/Mk/Uses/fmake.mk (contents, props changed) Modified: head/CHANGES Modified: head/CHANGES ============================================================================== --- head/CHANGES Thu Jun 20 09:38:51 2013 (r321365) +++ head/CHANGES Thu Jun 20 09:48:08 2013 (r321366) @@ -10,8 +10,15 @@ in the release notes and/or placed into All ports committers are allowed to commit to this file. +20130620: +AUTHOR: + * New USES: fmake + + This uses will allow to build ports using the legacy FreeBSD make, for ports + not compatible with bmake + 20130614: -AUTHOR: bapt@FreeBSD.org +AUTHOR: bapt@FreeBSD.org * New macros to help dealing with ports that have options: Added: head/Mk/Uses/fmake.mk ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/Mk/Uses/fmake.mk Thu Jun 20 09:48:08 2013 (r321366) @@ -0,0 +1,39 @@ +# $FreeBSD$ +# +# Provide support to use the legacy FreeBSD make +# +# MAINTAINER: portmgr@FreeBSD.org +# +# Feature: fmake +# Usage: USES=fmake +# + +.if !defined(_INCLUDE_USES_FMAKE_MK) +_INCLUDE_USES_FMAKE_MK= yes + +.if defined(fmake_ARGS) +IGNORE= Incorrect 'USES+= fmake:${fmake_ARGS}' fmake takes no arguments +.endif + +.if defined(.PARSEDIR) +FMAKE= ${LOCALBASE}/bin/fmake +BUILD_DEPENDS+= ${FMAKE}:${PORTSDIR}/devel/fmake +CONFIGURE_ENV+= MAKE=${FMAKE} + +.if !target(do-build) +do-build: + @set -e ; (cd ${BUILD_WRKSRC}; if ! ${SETENV} ${MAKE_ENV} ${FMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS} ${ALL_TARGET}; then \ + if [ -n "${BUILD_FAIL_MESSAGE}" ] ; then \ + ${ECHO_MSG} "===> Compilation failed unexpectedly."; \ + (${ECHO_CMD} ${BUILD_FAIL_MESSAGE}) | ${FMT} 75 79 ; \ + fi; \ + ${FALSE}; \ + fi) +.endif + +.if !target(do-install) +do-install: + @set -e ; (cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${FMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET}) +.endif +.endif +.endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306200948.r5K9m9QG058852>