opnsense-ports/Mk/Uses/fuse.mk
Franco Fichtner b7ffdfc9b9 Framework: sync with upstream
Taken from: FreeBSD
2024-11-07 12:06:23 +01:00

24 lines
539 B
Makefile

# Handle dependency on the fuse port
#
# Feature: fuse
# Usage: USES=fuse[:version]
# Valid ARGS: 2 [default], 3
# MAINTAINER: ports@FreeBSD.org
.if !defined(_INCLUDE_USES_FUSE_MK)
_INCLUDE_USES_FUSE_MK= yes
. if !empty(fuse_ARGS)
LIBFUSE_VER= ${fuse_ARGS}
. endif
LIBFUSE_VER?= 2
. if ${LIBFUSE_VER} == 2
LIB_DEPENDS+= libfuse.so:filesystems/fusefs-libs
. elif ${LIBFUSE_VER} == 3
LIB_DEPENDS+= libfuse3.so:filesystems/fusefs-libs3
. else
IGNORE= cannot install: unknown FUSE library version: ${LIBFUSE_VERSION}
. endif
.endif