svn commit: r350065 - head/Mk

Baptiste Daroussin bapt at FreeBSD.org
Fri Apr 4 08:14:25 UTC 2014


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
 
 #


More information about the svn-ports-all mailing list