svn commit: r392507 - head/Mk/Uses

Baptiste Daroussin bapt at FreeBSD.org
Sun Jul 19 14:36:02 UTC 2015


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 at 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 at 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 at 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


More information about the svn-ports-all mailing list