Date: Fri, 4 Apr 2014 08:14:25 +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: r350065 - head/Mk Message-ID: <201404040814.s348EPNu070018@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 #
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404040814.s348EPNu070018>