From owner-svn-ports-all@FreeBSD.ORG Sun Aug 10 13:41:20 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 04B7DB7C for ; Sun, 10 Aug 2014 13:41:20 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CF5E9258A for ; Sun, 10 Aug 2014 13:41:19 +0000 (UTC) Received: from tijl (uid 1230) (envelope-from tijl@FreeBSD.org) id 2897 by svn.freebsd.org (DragonFly Mail Agent v0.9+); Sun, 10 Aug 2014 13:41:19 +0000 From: Tijl Coosemans Date: Sun, 10 Aug 2014 13:41:19 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r364538 - head/Mk/Uses X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <53e7767f.2897.6c7d73d3@svn.freebsd.org> X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18 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: Sun, 10 Aug 2014 13:41:20 -0000 Author: tijl Date: Sun Aug 10 13:41:19 2014 New Revision: 364538 URL: http://svnweb.freebsd.org/changeset/ports/364538 QAT: https://qat.redports.org/buildarchive/r364538/ Log: Add support for USES=libtool:build. It adds a build dependency on devel/libtool and can be used when a port does not generate its own libtool script but relies on the system to provide one. Approved by: portmgr (antoine) Modified: head/Mk/Uses/libtool.mk Modified: head/Mk/Uses/libtool.mk ============================================================================== --- head/Mk/Uses/libtool.mk Sun Aug 10 13:25:19 2014 (r364537) +++ head/Mk/Uses/libtool.mk Sun Aug 10 13:41:19 2014 (r364538) @@ -10,13 +10,20 @@ # refer to .la libraries in this port. As soon as all # those dependent ports have some form of USES=libtool # keepla can be removed. +# build Add a build dependency on devel/libtool. This can +# be used when a port does not generate its own libtool +# script and relies on the system to provide one. # # MAINTAINER: autotools@FreeBSD.org .if !defined(_INCLUDE_USES_LIBTOOL_MK) _INCLUDE_USES_LIBTOOL_MK= yes _USES_POST+= libtool -libtool_ARGS?= +libtool_ARGS:= ${libtool_ARGS:C/,/ /} + +.if ${libtool_ARGS:Mbuild} +BUILD_DEPENDS+= libtool:${PORTSDIR}/devel/libtool +.endif .endif .if defined(_POSTMKINCLUDED) && !defined(_INCLUDE_USES_LIBTOOL_POST_MK) @@ -63,7 +70,7 @@ patch-libtool: .endif patch-lafiles: -.if ${libtool_ARGS} == keepla || ${libtool_ARGS} == oldver +.if ${libtool_ARGS:Mkeepla} || ${libtool_ARGS:Moldver} @${FIND} ${STAGEDIR} -type f -name '*.la' | \ ${XARGS} ${SED} -i '' -e "/dependency_libs=/s/=.*/=''/" .else