From owner-svn-ports-all@freebsd.org Sun Jul 19 14:36:02 2015 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8E27C9A4D41; Sun, 19 Jul 2015 14:36:02 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org (repo.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 5553B1DFA; Sun, 19 Jul 2015 14:36:02 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.14.9/8.14.9) with ESMTP id t6JEa1GA002294; Sun, 19 Jul 2015 14:36:01 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by repo.freebsd.org (8.14.9/8.14.9/Submit) id t6JEa09F002291; Sun, 19 Jul 2015 14:36:00 GMT (envelope-from bapt@FreeBSD.org) Message-Id: <201507191436.t6JEa09F002291@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f From: Baptiste Daroussin Date: Sun, 19 Jul 2015 14:36:00 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r392507 - head/Mk/Uses 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.20 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, 19 Jul 2015 14:36:02 -0000 Author: bapt Date: Sun Jul 19 14:36:00 2015 New Revision: 392507 URL: https://svnweb.freebsd.org/changeset/ports/392507 Log: Add 3 new uses localbase: mostly a non user one which enforce the compiler related flags to lookup in localbase first to find libraries, designed to be used in other USES libarchive: to be used each time one is using libarchive from ports. It is necessary to simplify work for porters dealing with different versions of libarchive from base and different ways libarchive can be linked in base (with libmd and/or libcrypto) only dealing with one libarchive over all the ports tree is easier libedit: enforce using libedit from ports for the same reasons as for libarchive Same things will happen for other base libraries which collides with ports version later. Added: head/Mk/Uses/libarchive.mk (contents, props changed) head/Mk/Uses/libedit.mk (contents, props changed) head/Mk/Uses/localbase.mk (contents, props changed) Added: head/Mk/Uses/libarchive.mk ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/Mk/Uses/libarchive.mk Sun Jul 19 14:36:00 2015 (r392507) @@ -0,0 +1,16 @@ +# $FreeBSD$ +# +# handle dependency on the libarchive port +# +# Feature: libarchive +# Usage: USES=libarchive +# Valid ARGS: none +# +# MAINTAINER: portmgr@FreeBSD.org + +.if !defined(_INCLUDE_USES_LIBARCHIVE_MK) +_INCLUDE_USES_LIBARCHIVE_MK= yes +.include "${USESDIR}/localbase.mk" + +LIB_DEPENDS+= libarchive.so.13:${PORTSDIR}/archivers/libarchive +.endif Added: head/Mk/Uses/libedit.mk ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/Mk/Uses/libedit.mk Sun Jul 19 14:36:00 2015 (r392507) @@ -0,0 +1,16 @@ +# $FreeBSD$ +# +# handle dependency on the libedit port +# +# Feature: libedit +# Usage: USES=libedit +# Valid ARGS: none +# +# MAINTAINER: portmgr@FreeBSD.org + +.if !defined(_INCLUDE_USES_LIBEDIT_MK) +_INCLUDE_USES_LIBEDIT_MK= yes +.include "${USESDIR}/localbase.mk" + +LIB_DEPENDS+= libedit.so.0:${PORTSDIR}/devel/libedit +.endif Added: head/Mk/Uses/localbase.mk ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/Mk/Uses/localbase.mk Sun Jul 19 14:36:00 2015 (r392507) @@ -0,0 +1,18 @@ +# $FreeBSD$ +# +# handle enforcing localbase in path +# +# Feature: localbase +# Usage: USES=localbase +# Valid ARGS: none +# +# MAINTAINER: portmgr@FreeBSD.org + +.if !defined(_INCLUDE_USES_LOCALBASE_MK) +_INCLUDE_USES_LOCALBASE_MK= yes + +CPPFLAGS+= -I${LOCALBASE}/include +CFLAGS+= -I${LOCALBASE}/include +CXXFLAGS+= -I${LOCALBASE}include +LDFLAGS+= -L${LOCALBASE}/lib +.endif