treewide: remove AUTORELEASE
[feed/packages.git] / utils / fuse3 / Makefile
1 #
2 # Copyright (C) 2006-2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=fuse3
12 PKG_VERSION:=3.10.5
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=fuse-$(PKG_VERSION).tar.xz
16 PKG_SOURCE_URL:=https://github.com/libfuse/libfuse/releases/download/fuse-$(PKG_VERSION)
17 PKG_HASH:=b2e283485d47404ac896dd0bb7f7ba81e1470838e677e45f659804c3a3b69666
18 PKG_BUILD_DIR:=$(BUILD_DIR)/fuse-$(PKG_VERSION)
19
20 PKG_MAINTAINER:=
21 PKG_CPE_ID:=cpe:/a:fuse_project:fuse
22
23 include $(INCLUDE_DIR)/package.mk
24 include $(INCLUDE_DIR)/meson.mk
25
26 define Package/fuse3/Default
27 TITLE:=FUSE
28 URL:=https://github.com/libfuse/libfuse
29 SUBMENU:=Filesystem
30 endef
31
32 define Package/fuse3/Default/description
33 fuse3 (Filesystem in UserSpacE)
34 endef
35
36 define Package/libfuse3
37 $(call Package/fuse3/Default)
38 TITLE+= library
39 URL:=https://github.com/libfuse/libfuse
40 SECTION:=libs
41 CATEGORY:=Libraries
42 DEPENDS:=+kmod-fuse +libpthread
43 ABI_VERSION:=3
44 LICENSE:=LGPL-2.1-only
45 LICENSE_FILES:=LGPL2.txt
46 endef
47
48 define Package/libfuse3/description
49 $(call Package/fuse3/Default/description)
50 This package contains the fuse3 shared libraries, needed by other programs.
51 - libfuse3
52 endef
53
54 define Package/fuse3-utils
55 $(call Package/fuse3/Default)
56 SECTION:=utils
57 CATEGORY:=Utilities
58 DEPENDS:=+libfuse3
59 TITLE+= (utilities)
60 SUBMENU:=Filesystem
61 LICENSE:=GPL-2.0-only
62 LICENSE_FILES:=COPYING
63 endef
64
65 define Package/fuse3-utils/description
66 $(call Package/fuse3/Default/description)
67 This package contains the FUSE utilities.
68 - fusermount3
69 - mount.fuse3
70 endef
71
72 MESON_ARGS += \
73 -Ddisable-mtab=true \
74 -Dudevrulesdir=/dev/null \
75 -Dutils=$(if $(CONFIG_PACKAGE_fuse3-utils),true,false) \
76 -Dexamples=false \
77 -Duseroot=false
78
79 define Build/InstallDev
80 $(INSTALL_DIR) $(1)/usr/include/fuse3
81 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/fuse3/*.h $(1)/usr/include/fuse3
82 $(INSTALL_DIR) $(1)/usr/lib
83 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfuse3.so* $(1)/usr/lib/
84 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
85 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fuse3.pc $(1)/usr/lib/pkgconfig/
86 endef
87
88 define Package/libfuse3/install
89 $(INSTALL_DIR) $(1)/usr/lib
90 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfuse3.so.* $(1)/usr/lib/
91 endef
92
93 define Package/fuse3-utils/install
94 $(INSTALL_DIR) $(1)/usr/bin
95 $(CP) $(PKG_INSTALL_DIR)/usr/bin/fusermount3 $(1)/usr/bin/
96 $(INSTALL_DIR) $(1)/usr/sbin
97 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/mount.fuse3 $(1)/usr/sbin/
98 endef
99
100 $(eval $(call BuildPackage,libfuse3))
101 $(eval $(call BuildPackage,fuse3-utils))