Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Aug 2014 13:41:19 +0000 (UTC)
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r364538 - head/Mk/Uses
Message-ID:  <53e7767f.2897.6c7d73d3@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53e7767f.2897.6c7d73d3>