2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=@SF
/$(PKG_NAME
)
18 PKG_MD5SUM
:=3f4f5d07d12dedc0a3fd23472171fe94
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/fuse
/Default
27 FUSE
(Filesystem in UserSpacE
)
28 URL
:=http
://fuse.sourceforge.net
/
31 define Package
/fuse-utils
32 $(call Package
/fuse
/Default
)
35 DEPENDS
:=+libfuse
+kmod-fuse @LINUX_2_6
39 This package contains the FUSE utilities.
42 define KernelPackage
/fuse
44 $(call Package
/fuse
/Default
)
46 TITLE
+= (kernel module
)
49 This package contains the FUSE kernel module.
50 FILES
:=$(PKG_INSTALL_DIR
)/lib
/modules
/$(LINUX_VERSION
)/kernel
/fs
/fuse
/fuse.
$(LINUX_KMOD_SUFFIX
)
51 VERSION
:=$(LINUX_VERSION
)+$(PKG_VERSION
)-$(BOARD
)-$(PKG_RELEASE
)
52 AUTOLOAD
:=$(call AutoLoad
,80,fuse
)
55 define Package
/libfuse
56 $(call Package
/fuse
/Default
)
63 This package contains the FUSE shared library
, needed by other programs.
70 --enable-kernel-module \
74 --disable-auto-modprobe \
75 --with-kernel
="$(LINUX_DIR)" \
78 define Build
/Configure
79 (cd
$(PKG_BUILD_DIR
); rm -f config.cache
; \
80 touch configure.in
; \
83 touch
include/config.h.in
; \
86 $(call Build
/Configure
/Default
)
90 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
91 ARCH
="$(LINUX_KARCH)" \
92 CROSS_COMPILE
="$(TARGET_CROSS)" \
93 DESTDIR
="$(PKG_INSTALL_DIR)" \
94 AM_CFLAGS
="$(TARGET_CFLAGS) -DDISABLE_COMPAT=1" \
99 define Build
/InstallDev
100 mkdir
-p
$(STAGING_DIR
)/usr
/include
101 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/fuse
{,.h
} $(STAGING_DIR
)/usr
/include/
102 mkdir
-p
$(STAGING_DIR
)/usr
/lib
103 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libfuse.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
104 mkdir
-p
$(STAGING_DIR
)/usr
/lib
/pkgconfig
105 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/fuse.
pc $(STAGING_DIR
)/usr
/lib
/pkgconfig
/
106 $(SED
) 's,-I$$$${includedir}/fuse,,g' $(STAGING_DIR
)/usr
/lib
/pkgconfig
/fuse.
pc
107 $(SED
) 's,-L$$$${libdir},,g' $(STAGING_DIR
)/usr
/lib
/pkgconfig
/fuse.
pc
110 define Build
/UninstallDev
111 rm -rf
$(STAGING_DIR
)/usr
/include/fuse
{,.h
} \
112 $(STAGING_DIR
)/usr
/lib
/libfuse.
{a
,so
*} \
113 $(STAGING_DIR
)/usr
/lib
/pkgconfig
/fuse.
pc
116 define Package
/fuse-utils
/install
117 $(INSTALL_DIR
) $(1)/usr
/bin
118 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/fusermount
$(1)/usr
/bin
/
121 define Package
/libfuse
/install
122 $(INSTALL_DIR
) $(1)/usr
/lib
123 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libfuse.so.
* $(1)/usr
/lib
/
126 $(eval
$(call BuildPackage
,fuse-utils
))
127 $(eval
$(call BuildPackage
,libfuse
))
128 $(eval
$(call KernelPackage
,fuse
))