2 # Copyright (C) 2006-2010 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:=894ee11674f89a915ae87524aed55bc4
21 include $(INCLUDE_DIR)/package.mk
23 define Package/fuse/Default
25 URL:=http://fuse.sourceforge.net/
28 define Package/fuse/Default/description
29 FUSE (Filesystem in UserSpacE)
32 define Package/fuse-utils
33 $(call Package/fuse/Default)
41 define Package/fuse-utils/description
42 $(call Package/fuse/Default/description)
43 This package contains the FUSE utilities.
48 define Package/libfuse
49 $(call Package/fuse/Default)
53 DEPENDS:=+kmod-fuse +libpthread
57 define Package/libfuse/description
58 $(call Package/fuse/Default/description)
59 This package contains the FUSE shared libraries, needed by other programs.
72 # generic package uses lib & utils
73 CONFIGURE_ARGS += --enable-lib --enable-util
75 define Build/InstallDev
76 @echo "--> Build/InstallDev enter"
77 mkdir -p $(1)/usr/include
78 $(CP) $(PKG_INSTALL_DIR)/usr/include/{fuse,*.h} $(1)/usr/include/
80 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{a,so*} $(1)/usr/lib/
81 mkdir -p $(1)/usr/lib/pkgconfig
82 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fuse.pc $(1)/usr/lib/pkgconfig/
83 $(SED) 's,-I$$$${includedir}/fuse,,g' $(1)/usr/lib/pkgconfig/fuse.pc
84 $(SED) 's,-L$$$${libdir},,g' $(1)/usr/lib/pkgconfig/fuse.pc
85 @echo "--> Build/InstallDev leave"
88 define Package/fuse-utils/install
89 @echo "--> Package/fuse-utils/install enter"
90 $(INSTALL_DIR) $(1)/usr/bin
91 # use cp and keep fusermount sticky bit
92 $(FIND) $(PKG_INSTALL_DIR)/usr/bin/ -type f -exec $(CP) -a {} $(1)/usr/bin/ \;
93 @echo "--> Package/fuse-utils/install leave"
96 define Package/libfuse/install
97 @echo "--> Package/libfuse/install enter"
98 $(INSTALL_DIR) $(1)/usr/lib
99 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so.* $(1)/usr/lib/
100 @echo "--> Package/libfuse/install leave"
103 define Package/kmod-fuse/install
104 @echo "--> Package/kmod-fuse/install enter/leave"
107 $(eval $(call BuildPackage,fuse-utils))
108 $(eval $(call BuildPackage,libfuse))