2006-06-27 03:35:46 +03:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2006-06-17 11:34:53 +03:00
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
2006-06-21 05:32:39 +03:00
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
2006-06-17 11:34:53 +03:00
|
|
|
|
|
|
|
PKG_NAME:=fuse
|
2007-10-20 18:30:08 +03:00
|
|
|
PKG_VERSION:=2.7.1
|
2006-06-17 11:34:53 +03:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-09-23 16:40:25 +03:00
|
|
|
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
|
2007-10-20 18:30:08 +03:00
|
|
|
PKG_MD5SUM:=f95b4a238a3df5a92e9013ecb55c2c17
|
2006-06-17 11:34:53 +03:00
|
|
|
|
2006-06-21 05:32:39 +03:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2006-06-17 11:34:53 +03:00
|
|
|
|
2006-09-23 16:40:25 +03:00
|
|
|
define Package/fuse/Default
|
|
|
|
TITLE:=FUSE
|
2007-02-28 15:56:05 +02:00
|
|
|
DEPENDS:=@LINUX_2_6
|
2006-09-23 16:40:25 +03:00
|
|
|
URL:=http://fuse.sourceforge.net/
|
|
|
|
endef
|
|
|
|
|
2007-09-07 11:34:51 +03:00
|
|
|
define Package/fuse/Default/description
|
|
|
|
FUSE (Filesystem in UserSpacE)
|
|
|
|
endef
|
|
|
|
|
2006-09-23 16:40:25 +03:00
|
|
|
define Package/fuse-utils
|
2007-09-07 11:34:51 +03:00
|
|
|
$(call Package/fuse/Default)
|
2006-09-23 16:40:25 +03:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2007-02-28 15:56:05 +02:00
|
|
|
DEPENDS:=+libfuse +kmod-fuse @LINUX_2_6
|
2006-09-23 16:40:25 +03:00
|
|
|
TITLE+= (utilities)
|
2007-10-18 22:08:16 +03:00
|
|
|
SUBMENU:=disc
|
2007-09-07 11:34:51 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/fuse-utils/description
|
|
|
|
$(call Package/fuse/Default/description)
|
|
|
|
This package contains the FUSE utilities.
|
2006-09-23 16:40:25 +03:00
|
|
|
endef
|
|
|
|
|
2007-01-05 17:36:58 +02:00
|
|
|
define KernelPackage/fuse
|
2007-09-07 11:34:51 +03:00
|
|
|
$(call Package/fuse/Default)
|
2007-01-05 17:36:58 +02:00
|
|
|
SUBMENU:=Filesystems
|
2007-02-28 15:56:05 +02:00
|
|
|
DEPENDS:=@LINUX_2_6
|
2006-09-23 16:40:25 +03:00
|
|
|
TITLE+= (kernel module)
|
2007-02-28 15:56:05 +02:00
|
|
|
FILES:=$(PKG_INSTALL_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/fuse/fuse.$(LINUX_KMOD_SUFFIX)
|
2007-02-28 15:45:37 +02:00
|
|
|
AUTOLOAD:=$(call AutoLoad,80,fuse)
|
|
|
|
endef
|
|
|
|
|
2007-09-07 11:34:51 +03:00
|
|
|
define Kernel/Package/fuse/description
|
|
|
|
$(call Package/fuse/Default/description)
|
|
|
|
This package contains the FUSE kernel module.
|
|
|
|
endef
|
|
|
|
|
2006-09-23 16:40:25 +03:00
|
|
|
define Package/libfuse
|
2007-09-07 11:34:51 +03:00
|
|
|
$(call Package/fuse/Default)
|
2006-09-23 16:40:25 +03:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2007-02-12 22:55:17 +02:00
|
|
|
DEPENDS:=@LINUX_2_6
|
2006-09-23 16:40:25 +03:00
|
|
|
TITLE+= (library)
|
2007-10-18 22:08:16 +03:00
|
|
|
SUBMENU:=disc
|
2007-09-07 11:34:51 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libfuse/description
|
|
|
|
$(call Package/fuse/Default/description)
|
|
|
|
This package contains the FUSE shared library, needed by other programs.
|
2006-06-17 11:34:53 +03:00
|
|
|
endef
|
|
|
|
|
2007-04-01 22:07:59 +03:00
|
|
|
CONFIGURE_VARS += \
|
|
|
|
kernsrcver="$(LINUX_VERSION)"
|
|
|
|
|
2007-02-26 01:38:02 +02:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--disable-rpath \
|
|
|
|
--enable-kernel-module \
|
|
|
|
--enable-lib \
|
|
|
|
--enable-util \
|
|
|
|
--disable-example \
|
|
|
|
--disable-auto-modprobe \
|
|
|
|
--with-kernel="$(LINUX_DIR)" \
|
|
|
|
--disable-mtab
|
|
|
|
|
2006-06-17 11:34:53 +03:00
|
|
|
define Build/Configure
|
2006-09-23 16:40:25 +03:00
|
|
|
(cd $(PKG_BUILD_DIR); rm -f config.cache; \
|
2006-06-17 11:34:53 +03:00
|
|
|
touch configure.in ; \
|
|
|
|
touch aclocal.m4 ; \
|
|
|
|
touch Makefile.in ; \
|
|
|
|
touch include/config.h.in ; \
|
|
|
|
touch configure ; \
|
2007-02-26 01:38:02 +02:00
|
|
|
)
|
|
|
|
$(call Build/Configure/Default)
|
2006-06-17 11:34:53 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
ARCH="$(LINUX_KARCH)" \
|
|
|
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
2007-02-27 17:13:59 +02:00
|
|
|
AM_CFLAGS="$(TARGET_CFLAGS) -DDISABLE_COMPAT=1" \
|
|
|
|
EXTRA_DIST="" \
|
2006-06-17 11:34:53 +03:00
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2007-09-28 04:45:11 +03:00
|
|
|
mkdir -p $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/fuse{,.h} $(1)/usr/include/
|
|
|
|
mkdir -p $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libfuse.{a,so*} $(1)/usr/lib/
|
|
|
|
mkdir -p $(1)/usr/lib/pkgconfig
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fuse.pc $(1)/usr/lib/pkgconfig/
|
|
|
|
$(SED) 's,-I$$$${includedir}/fuse,,g' $(1)/usr/lib/pkgconfig/fuse.pc
|
|
|
|
$(SED) 's,-L$$$${libdir},,g' $(1)/usr/lib/pkgconfig/fuse.pc
|
2006-06-17 11:34:53 +03:00
|
|
|
endef
|
|
|
|
|
2006-09-23 16:40:25 +03:00
|
|
|
define Package/fuse-utils/install
|
2006-11-23 02:29:07 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-12-09 20:53:06 +02:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fusermount $(1)/usr/bin/
|
2006-09-23 16:40:25 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libfuse/install
|
2006-11-23 02:29:07 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2006-09-23 16:40:25 +03:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libfuse.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,fuse-utils))
|
|
|
|
$(eval $(call BuildPackage,libfuse))
|
2007-01-05 17:36:58 +02:00
|
|
|
$(eval $(call KernelPackage,fuse))
|