diff options
author | Stefan Eßer <se@FreeBSD.org> | 2017-10-26 23:37:02 +0800 |
---|---|---|
committer | Stefan Eßer <se@FreeBSD.org> | 2017-10-26 23:37:02 +0800 |
commit | b53bb52ac6ca384f290b74462ca91f27a6307dc8 (patch) | |
tree | d6736809b6334365dd02d8d6e5165cdca94fef46 /Mk | |
parent | 8688382c5c35d489407d4aa88c6bcdc5c9492d55 (diff) | |
download | freebsd-ports-gnome-b53bb52ac6ca384f290b74462ca91f27a6307dc8.tar.gz freebsd-ports-gnome-b53bb52ac6ca384f290b74462ca91f27a6307dc8.tar.zst freebsd-ports-gnome-b53bb52ac6ca384f290b74462ca91f27a6307dc8.zip |
Add support for libfuse3 (sysutils/fusefs-libs3).
USES=fuse:3 does add a dependency on version 3 of libfuse, which is not
compatible with version 2 (which remains default version for now). Both
versions can co-exist at build and run time.
Reviewed by: mat
Approved by: mat (portmgr)
Differential Revision: https://reviews.freebsd.org/D12694
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/Uses/fuse.mk | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/Mk/Uses/fuse.mk b/Mk/Uses/fuse.mk index e5cea67f125a..e08f19268fbe 100644 --- a/Mk/Uses/fuse.mk +++ b/Mk/Uses/fuse.mk @@ -1,20 +1,26 @@ # $FreeBSD$ # -# handle dependency on the fuse port +# Handle dependency on the fuse port # # Feature: fuse -# Usage: USES=fuse -# Valid ARGS: does not require args -# -# MAINTAINER: portmgr@FreeBSD.org +# Usage: USES=fuse[:version] +# Valid ARGS: 2 [default], 3 +# MAINTAINER: portmgr@FreeBSD.org .if !defined(_INCLUDE_USES_FUSE_MK) _INCLUDE_USES_FUSE_MK= yes .if !empty(fuse_ARGS) -IGNORE= USES=fuse does not require args +LIBFUSE_VER= ${fuse_ARGS} .endif +LIBFUSE_VER?= 2 +.if ${LIBFUSE_VER} == 2 LIB_DEPENDS+= libfuse.so:sysutils/fusefs-libs +.elif ${LIBFUSE_VER} == 3 +LIB_DEPENDS+= libfuse3.so:sysutils/fusefs-libs3 +.else +IGNORE= cannot install: unknown FUSE library version: ${LIBFUSE_VERSION} +.endif .endif |