From owner-svn-ports-all@FreeBSD.ORG Thu Apr 3 13:35:51 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 E669768E; Thu, 3 Apr 2014 13:35:51 +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 D3965D4A; Thu, 3 Apr 2014 13:35:51 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s33DZpGr096311; Thu, 3 Apr 2014 13:35:51 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s33DZp5v096309; Thu, 3 Apr 2014 13:35:51 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201404031335.s33DZp5v096309@svn.freebsd.org> From: Baptiste Daroussin Date: Thu, 3 Apr 2014 13:35:51 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r350010 - 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: Thu, 03 Apr 2014 13:35:52 -0000 Author: bapt Date: Thu Apr 3 13:35:51 2014 New Revision: 350010 URL: http://svnweb.freebsd.org/changeset/ports/350010 QAT: https://qat.redports.org/buildarchive/r350010/ Log: Add PKG_ENV to allow specifying the file to read the ABI from in case of cross building Add STRIPBIN set the the cross building version of strip in MAKE_ENV so install(1) use the proper one in case of cross building Modified: head/Mk/bsd.pkgng.mk head/Mk/bsd.port.mk Modified: head/Mk/bsd.pkgng.mk ============================================================================== --- head/Mk/bsd.pkgng.mk Thu Apr 3 13:33:37 2014 (r350009) +++ head/Mk/bsd.pkgng.mk Thu Apr 3 13:35:51 2014 (r350010) @@ -247,7 +247,7 @@ do-package: ${TMPPLIST} ${RM} -f ${PACKAGES}/$$cat/${PKGNAMEPREFIX}${PORTNAME}*${PKG_SUFX} ; \ done @${MKDIR} ${WRKDIR}/pkg - @if ${SETENV} FORCE_POST="${_FORCE_POST_PATTERNS}" ${PKG_CREATE} ${PKG_CREATE_ARGS} -o ${WRKDIR}/pkg ${PKGNAME}; then \ + @if ${SETENV} ${PKG_ENV} FORCE_POST="${_FORCE_POST_PATTERNS}" ${PKG_CREATE} ${PKG_CREATE_ARGS} -o ${WRKDIR}/pkg ${PKGNAME}; then \ if [ -d ${PKGREPOSITORY} -a -w ${PKGREPOSITORY} ]; then \ ${LN} -f ${WRKDIR}/pkg/${PKGNAME}${PKG_SUFX} ${PKGFILE} 2>/dev/null \ || ${CP} -af ${WRKDIR}/pkg/${PKGNAME}${PKG_SUFX} ${PKGFILE}; \ Modified: head/Mk/bsd.port.mk ============================================================================== --- head/Mk/bsd.port.mk Thu Apr 3 13:33:37 2014 (r350009) +++ head/Mk/bsd.port.mk Thu Apr 3 13:35:51 2014 (r350010) @@ -1145,7 +1145,8 @@ CFLAGS+= -B${LOCALBASE}/${X_BUILD_FOR}/u CXXFLAGS+= -B${LOCALBASE}/${X_BUILD_FOR}/usr/bin LDFLAGS+= -B${LOCALBASE}/${X_BUILD_FOR}/usr/bin CONFIGURE_ENV+= LD=${LD} AS=${AS} NM=${NM} -MAKE_ENV+= LD=${LD} AS=${AS} NM=${NM} +MAKE_ENV+= LD=${LD} AS=${AS} NM=${NM} STRIPBIN=${X_BUILD_FOR}-strip +PKG_ENV+= ABI_FILE=${LOCALBASE}/${X_BUILD_FOR}/usr/lib/crt1.o .endif #