2 # Copyright (C) 2006-2014 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
:=@SF
/$(PKG_NAME
)
17 PKG_MD5SUM
:=33cae22ca50311446400daf8a6255c6a
19 PKG_LICENSE
:=LGPLv2.1 GPLv2
20 PKG_LICENSE_FILES
:=COPYING.LIB COPYING
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/fuse
/Default
28 URL
:=http
://fuse.sourceforge.net
/
31 define Package
/fuse
/Default
/description
32 FUSE
(Filesystem in UserSpacE
)
35 define Package
/fuse-utils
36 $(call Package
/fuse
/Default
)
44 define Package
/fuse-utils
/description
45 $(call Package
/fuse
/Default
/description
)
46 This package contains the FUSE utilities.
51 define Package
/libfuse
52 $(call Package
/fuse
/Default
)
56 DEPENDS
:=+kmod-fuse
+libpthread
60 define Package
/libfuse
/description
61 $(call Package
/fuse
/Default
/description
)
62 This package contains the FUSE shared libraries
, needed by other programs.
77 define Build
/InstallDev
78 $(INSTALL_DIR
) $(1)/usr
/include
79 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/{fuse
,fuse.h
,ulockmgr.h
} $(1)/usr
/include/
80 $(INSTALL_DIR
) $(1)/usr
/lib
81 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{fuse
,ulockmgr
}.
{a
,so
*} $(1)/usr
/lib
/
82 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
83 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/fuse.
pc $(1)/usr
/lib
/pkgconfig
/
84 $(SED
) 's,-I$$$${includedir}/fuse,,g' $(1)/usr
/lib
/pkgconfig
/fuse.
pc
85 $(SED
) 's,-L$$$${libdir},,g' $(1)/usr
/lib
/pkgconfig
/fuse.
pc
88 define Package
/fuse-utils
/install
89 $(INSTALL_DIR
) $(1)/sbin
90 $(CP
) $(PKG_INSTALL_DIR
)/sbin
/mount.fuse
$(1)/sbin
/
91 $(INSTALL_DIR
) $(1)/usr
/bin
92 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/{fusermount
,ulockmgr_server
} $(1)/usr
/bin
/
95 define Package
/libfuse
/install
96 $(INSTALL_DIR
) $(1)/usr
/lib
97 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{fuse
,ulockmgr
}.so.
* $(1)/usr
/lib
/
100 $(eval
$(call BuildPackage
,fuse-utils
))
101 $(eval
$(call BuildPackage
,libfuse
))