From owner-svn-ports-all@FreeBSD.ORG Fri Apr 4 08:14:25 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5721BC3A; Fri, 4 Apr 2014 08:14:25 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 44EB1C61; Fri, 4 Apr 2014 08:14:25 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s348EPP4070019; Fri, 4 Apr 2014 08:14:25 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s348EPNu070018; Fri, 4 Apr 2014 08:14:25 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201404040814.s348EPNu070018@svn.freebsd.org> From: Baptiste Daroussin Date: Fri, 4 Apr 2014 08:14:25 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r350065 - head/Mk X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2014 08:14:25 -0000 Author: bapt Date: Fri Apr 4 08:14:24 2014 New Revision: 350065 URL: http://svnweb.freebsd.org/changeset/ports/350065 QAT: https://qat.redports.org/buildarchive/r350065/ Log: Use bmake features to easier cross building support This makes cross building only work with bmake given it is only supported on FreeBSD 10+ this is not a problem Modified: head/Mk/bsd.port.mk Modified: head/Mk/bsd.port.mk ============================================================================== --- head/Mk/bsd.port.mk Fri Apr 4 08:14:04 2014 (r350064) +++ head/Mk/bsd.port.mk Fri Apr 4 08:14:24 2014 (r350065) @@ -1136,6 +1136,9 @@ NOTPHONY?= .if defined(NO_STAGE) IGNORE= Cross building is only compatible with stagified ports .endif +.if defined(.PARSEDIR) +IGNORE= Cross building can only be done when using bmake(1) as make(1) +.endif BUILD_DEPENDS= ${X_BUILD_FOR}-cc:${PORTSDIR}/devel/${X_BUILD_FOR}-xdev # Do not define CPP on purpose .if !defined(HCC) @@ -1148,6 +1151,9 @@ NM= ${X_BUILD_FOR}-nm STRIP_CMD= ${X_BUILD_FOR}-strip MAKE_ENV+= NM=${NM} STRIPBIN=${X_BUILD_FOR}-strip PKG_ENV+= ABI_FILE=${LOCALBASE}/${X_BUILD_FOR}/usr/lib/crt1.o +# only bmake support the below +STRIPBIN= ${STRIP_CMD} +.export.env STRIPBIN .endif #