From owner-svn-ports-all@FreeBSD.ORG Fri Aug 29 23:22:54 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 50E17B8E; Fri, 29 Aug 2014 23:22:54 +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 228AF19A5; Fri, 29 Aug 2014 23:22:54 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s7TNMrk4044816; Fri, 29 Aug 2014 23:22:53 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s7TNMr12044815; Fri, 29 Aug 2014 23:22:53 GMT (envelope-from bapt@FreeBSD.org) Message-Id: <201408292322.s7TNMr12044815@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f From: Baptiste Daroussin Date: Fri, 29 Aug 2014 23:22:53 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r366582 - head/devel/binutils 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.18-1 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, 29 Aug 2014 23:22:54 -0000 Author: bapt Date: Fri Aug 29 23:22:53 2014 New Revision: 366582 URL: http://svnweb.freebsd.org/changeset/ports/366582 QAT: https://qat.redports.org/buildarchive/r366582/ Log: Make the port ready to have slave ports for cross building targets Modified: head/devel/binutils/Makefile Modified: head/devel/binutils/Makefile ============================================================================== --- head/devel/binutils/Makefile Fri Aug 29 22:31:57 2014 (r366581) +++ head/devel/binutils/Makefile Fri Aug 29 23:22:53 2014 (r366582) @@ -3,13 +3,13 @@ PORTNAME= binutils PORTVERSION= 2.24 -PORTREVISION= 1 +PORTREVISION?= 1 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_SOURCEWARE} MASTER_SITE_SUBDIR= binutils/releases MAINTAINER= bapt@FreeBSD.org -COMMENT= GNU binary tools +COMMENT?= GNU binary tools LICENSE= GPLv3 LGPL3 LICENSE_COMB= multi @@ -27,14 +27,18 @@ LICENSE_FILE_LGPL3= ${WRKSRC}/COPYING3.L USES= bison gmake libtool tar:bzip2 GNU_CONFIGURE= yes +.if defined(PKGNAMEPREFIX) +OPTIONS_EXCLUDE= NLS +INFO_PATH= ${PKGNAMEPREFIX:S/-$//}/info +CONFIGURE_ARGS+= --disable-shared \ + --target=${PKGNAMEPREFIX}${OPSYS:tl} +.else CFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib CONFIGURE_ARGS+= --with-system-zlib \ --with-sysroot=/ \ - --disable-werror \ --with-gmp=${LOCALBASE} \ --with-mpfr=${LOCALBASE} - INFO= as \ binutils \ standards \ @@ -42,6 +46,9 @@ INFO= as \ bfd \ configure \ ld +.endif + +CONFIGURE_ARGS+= --disable-werror OPTIONS_SUB= yes NLS_USES= gettext @@ -50,7 +57,7 @@ NLS_CONFIGURE_ENABLE= nls .include # Actual earliest version may differ slightly -.if ${ARCH} != ia64 && ${OSVERSION} >= 900044 +.if ${ARCH} != ia64 && ${OSVERSION} >= 900044 && !defined(PKGNAMEPREFIX) CONFIGURE_ARGS+= --enable-gold --enable-plugins PLIST_SUB+= GOLD="" .else @@ -64,6 +71,7 @@ CONFIGURE_TARGET= ${ARCH}-portbld-freebs .endif post-install: +.if !defined(PKGNAMEPREFIX) .if ${OSVERSION} >= 900044 ${INSTALL_DATA} ${WRKSRC}/include/plugin-api.h ${STAGEDIR}${PREFIX}/include/ .endif @@ -73,5 +81,8 @@ post-install: ${SED} -e 's,^${STAGEDIR}${PREFIX}/,@dirrm ,' >> ${TMPPLIST} ${RM} ${STAGEDIR}${PREFIX}/include/ansidecl.h ${REINPLACE_CMD} '/#include "ansidecl.h"/d' ${STAGEDIR}${PREFIX}/include/bfd.h +.else + ${RM} -rf ${STAGEDIR}${PREFIX}/${PKGNAMEPREFIX:S/-$//} +.endif .include