hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
################################################################################
#
# libfuse
#
################################################################################
 
LIBFUSE_VERSION = 2.9.9
LIBFUSE_SOURCE = fuse-$(LIBFUSE_VERSION).tar.gz
LIBFUSE_SITE = https://github.com/libfuse/libfuse/releases/download/fuse-$(LIBFUSE_VERSION)
LIBFUSE_LICENSE = GPL-2.0, LGPL-2.1
LIBFUSE_LICENSE_FILES = COPYING COPYING.LIB
LIBFUSE_CPE_ID_VENDOR = libfuse_project
LIBFUSE_INSTALL_STAGING = YES
# We're patching configure.ac
LIBFUSE_AUTORECONF = YES
# add host-gettext for AM_ICONV macro
LIBFUSE_DEPENDENCIES = \
   host-gettext \
   $(if $(BR2_PACKAGE_LIBICONV),libiconv)
LIBFUSE_CONF_OPTS = \
   --disable-example \
   --enable-lib \
   --enable-util \
   UDEV_RULES_PATH=/lib/udev/rules.d
 
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
define LIBFUSE_INSTALL_UDEV
   mkdir -p $(TARGET_DIR)/lib/udev/rules.d
   cp $(STAGING_DIR)/lib/udev/rules.d/*-fuse.rules $(TARGET_DIR)/lib/udev/rules.d
endef
 
LIBFUSE_POST_INSTALL_TARGET_HOOKS += LIBFUSE_INSTALL_UDEV
endif
 
define LIBFUSE_INSTALL_TARGET_CMDS
   cp -dpf $(STAGING_DIR)/usr/bin/fusermount $(TARGET_DIR)/usr/bin/
   cp -dpf $(STAGING_DIR)/usr/lib/libfuse.so* $(TARGET_DIR)/usr/lib/
endef
 
define LIBFUSE_DEVICES
   /dev/fuse c 666 0 0 10 229 0 0 -
endef
 
define LIBFUSE_PERMISSIONS
   /usr/bin/fusermount f 4755 0 0 - - - - -
endef
 
$(eval $(autotools-package))