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
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.
75 # generic package uses lib & utils
76 CONFIGURE_ARGS += --enable-lib --enable-util
78 define Build/InstallDev
79 @echo "--> Build/InstallDev enter"
80 mkdir -p $(1)/usr/include
81 $(CP) $(PKG_INSTALL_DIR)/usr/include/{fuse,*.h} $(1)/usr/include/
83 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{a,so*} $(1)/usr/lib/
84 mkdir -p $(1)/usr/lib/pkgconfig
85 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fuse.pc $(1)/usr/lib/pkgconfig/
86 $(SED) 's,-I$$$${includedir}/fuse,,g' $(1)/usr/lib/pkgconfig/fuse.pc
87 $(SED) 's,-L$$$${libdir},,g' $(1)/usr/lib/pkgconfig/fuse.pc
88 @echo "--> Build/InstallDev leave"
91 define Package/fuse-utils/install
92 @echo "--> Package/fuse-utils/install enter"
93 $(INSTALL_DIR) $(1)/usr/bin
94 # use cp and keep fusermount sticky bit
95 $(FIND) $(PKG_INSTALL_DIR)/usr/bin/ -type f -exec $(CP) -a {} $(1)/usr/bin/ \;
96 @echo "--> Package/fuse-utils/install leave"
99 define Package/libfuse/install
100 @echo "--> Package/libfuse/install enter"
101 $(INSTALL_DIR) $(1)/usr/lib
102 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so.* $(1)/usr/lib/
103 @echo "--> Package/libfuse/install leave"
106 define Package/kmod-fuse/install
107 @echo "--> Package/kmod-fuse/install enter/leave"
110 $(eval $(call BuildPackage,fuse-utils))
111 $(eval $(call BuildPackage,libfuse))