2 # Copyright (C) 2006-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/kernel.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=https
://github.com
/libfuse
/libfuse
/releases
/download
/$(PKG_NAME
)-$(PKG_VERSION
)
17 PKG_HASH
:=832432d1ad4f833c20e13b57cf40ce5277a9d33e483205fc63c78111b3358874
19 PKG_LICENSE
:=LGPLv2.1 GPLv2
20 PKG_LICENSE_FILES
:=COPYING.LIB COPYING
21 PKG_CPE_ID
:=cpe
:/a
:fuse_project
:fuse
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/fuse
/Default
29 URL
:=http
://fuse.sourceforge.net
/
32 define Package
/fuse
/Default
/description
33 FUSE
(Filesystem in UserSpacE
)
36 define Package
/fuse-utils
37 $(call Package
/fuse
/Default
)
45 define Package
/fuse-utils
/description
46 $(call Package
/fuse
/Default
/description
)
47 This package contains the FUSE utilities.
52 define Package
/libfuse
53 $(call Package
/fuse
/Default
)
57 DEPENDS
:=+kmod-fuse
+libpthread
61 define Package
/libfuse
/description
62 $(call Package
/fuse
/Default
/description
)
63 This package contains the FUSE shared libraries
, needed by other programs.
78 define Build
/InstallDev
79 $(INSTALL_DIR
) $(1)/usr
/include
80 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/{fuse
,fuse.h
,ulockmgr.h
} $(1)/usr
/include/
81 $(INSTALL_DIR
) $(1)/usr
/lib
82 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{fuse
,ulockmgr
}.
{a
,so
*} $(1)/usr
/lib
/
83 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
84 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/fuse.
pc $(1)/usr
/lib
/pkgconfig
/
85 $(SED
) 's,-I$$$${includedir}/fuse,,g' $(1)/usr
/lib
/pkgconfig
/fuse.
pc
86 $(SED
) 's,-L$$$${libdir},,g' $(1)/usr
/lib
/pkgconfig
/fuse.
pc
89 define Package
/fuse-utils
/install
90 $(INSTALL_DIR
) $(1)/sbin
91 $(CP
) $(PKG_INSTALL_DIR
)/sbin
/mount.fuse
$(1)/sbin
/
92 $(INSTALL_DIR
) $(1)/usr
/bin
93 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/{fusermount
,ulockmgr_server
} $(1)/usr
/bin
/
96 define Package
/libfuse
/install
97 $(INSTALL_DIR
) $(1)/usr
/lib
98 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{fuse
,ulockmgr
}.so.
* $(1)/usr
/lib
/
101 $(eval
$(call BuildPackage
,fuse-utils
))
102 $(eval
$(call BuildPackage
,libfuse
))