Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Jul 2015 14:36:00 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r392507 - head/Mk/Uses
Message-ID:  <201507191436.t6JEa09F002291@repo.freebsd.org>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507191436.t6JEa09F002291>