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
:=66bd30503df55a87b9868835ca5a45bc
20 include $(INCLUDE_DIR
)/package.mk
22 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
)
36 DEPENDS
:=+libfuse
+kmod-fuse @LINUX_2_6
40 define Package
/fuse-utils
/description
41 $(call Package
/fuse
/Default
/description
)
42 This package contains the FUSE utilities.
45 define KernelPackage
/fuse
46 $(call Package
/fuse
/Default
)
49 TITLE
+= (kernel module
)
50 FILES
:=$(PKG_INSTALL_DIR
)/lib
/modules
/$(LINUX_VERSION
)/kernel
/fs
/fuse
/fuse.
$(LINUX_KMOD_SUFFIX
)
51 AUTOLOAD
:=$(call AutoLoad
,80,fuse
)
54 define Kernel
/Package
/fuse
/description
55 $(call Package
/fuse
/Default
/description
)
56 This package contains the FUSE kernel module.
59 define Package
/libfuse
60 $(call Package
/fuse
/Default
)
67 define Package
/libfuse
/description
68 $(call Package
/fuse
/Default
/description
)
69 This package contains the FUSE shared library
, needed by other programs.
73 kernsrcver
="$(LINUX_VERSION)"
79 --enable-kernel-module \
83 --disable-auto-modprobe \
84 --with-kernel
="$(LINUX_DIR)" \
87 define Build
/Configure
88 (cd
$(PKG_BUILD_DIR
); rm -f config.cache
; \
89 touch configure.in
; \
92 touch
include/config.h.in
; \
95 $(call Build
/Configure
/Default
)
99 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
100 ARCH
="$(LINUX_KARCH)" \
101 CROSS_COMPILE
="$(TARGET_CROSS)" \
102 DESTDIR
="$(PKG_INSTALL_DIR)" \
103 AM_CFLAGS
="$(TARGET_CFLAGS) -DDISABLE_COMPAT=1" \
108 define Build
/InstallDev
109 mkdir
-p
$(1)/usr
/include
110 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/fuse
{,.h
} $(1)/usr
/include/
111 mkdir
-p
$(1)/usr
/lib
112 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libfuse.
{a
,so
*} $(1)/usr
/lib
/
113 mkdir
-p
$(1)/usr
/lib
/pkgconfig
114 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/fuse.
pc $(1)/usr
/lib
/pkgconfig
/
115 $(SED
) 's,-I$$$${includedir}/fuse,,g' $(1)/usr
/lib
/pkgconfig
/fuse.
pc
116 $(SED
) 's,-L$$$${libdir},,g' $(1)/usr
/lib
/pkgconfig
/fuse.
pc
119 define Build
/UninstallDev
120 rm -rf
$(1)/usr
/include/fuse
{,.h
} \
121 $(1)/usr
/lib
/libfuse.
{a
,so
*} \
122 $(1)/usr
/lib
/pkgconfig
/fuse.
pc
125 define Package
/fuse-utils
/install
126 $(INSTALL_DIR
) $(1)/usr
/bin
127 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/fusermount
$(1)/usr
/bin
/
130 define Package
/libfuse
/install
131 $(INSTALL_DIR
) $(1)/usr
/lib
132 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libfuse.so.
* $(1)/usr
/lib
/
135 $(eval
$(call BuildPackage
,fuse-utils
))
136 $(eval
$(call BuildPackage
,libfuse
))
137 $(eval
$(call KernelPackage
,fuse
))