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-02-08 14:43:47 +02:00
|
|
|
PKG_VERSION:=2.6.3
|
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-02-08 14:43:47 +02:00
|
|
|
PKG_MD5SUM:=3f4f5d07d12dedc0a3fd23472171fe94
|
2006-06-17 11:34:53 +03:00
|
|
|
PKG_CAT:=zcat
|
|
|
|
|
2006-09-24 23:49:31 +03:00
|
|
|
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
2006-06-17 11:34:53 +03:00
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
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
|
2006-12-15 18:06:45 +02:00
|
|
|
DEPENDS:=@LINUX_2_6
|
2006-09-23 16:40:25 +03:00
|
|
|
DESCRIPTION:=\
|
|
|
|
FUSE (Filesystem in UserSpacE)
|
|
|
|
URL:=http://fuse.sourceforge.net/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/fuse-utils
|
|
|
|
$(call Package/fuse/Default)
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2007-02-12 22:55:17 +02:00
|
|
|
DEPENDS:=+libfuse +kmod-fuse @LINUX_2_6
|
2006-09-23 16:40:25 +03:00
|
|
|
TITLE+= (utilities)
|
|
|
|
DESCRIPTION+=\\\
|
|
|
|
\\\
|
|
|
|
This package contains the FUSE utilities.
|
|
|
|
endef
|
|
|
|
|
2007-01-05 17:36:58 +02:00
|
|
|
define KernelPackage/fuse
|
|
|
|
SUBMENU:=Filesystems
|
2006-09-23 16:40:25 +03:00
|
|
|
$(call Package/fuse/Default)
|
|
|
|
TITLE+= (kernel module)
|
2007-02-12 22:55:17 +02:00
|
|
|
DEPENDS:=@LINUX_2_6
|
2006-09-23 16:40:25 +03:00
|
|
|
DESCRIPTION+=\\\
|
|
|
|
\\\
|
|
|
|
This package contains the FUSE kernel module.
|
|
|
|
VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
|
2007-01-05 17:36:58 +02:00
|
|
|
FILES:=$(PKG_INSTALL_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/fuse/fuse.$(LINUX_KMOD_SUFFIX)
|
2006-09-23 16:40:25 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libfuse
|
|
|
|
$(call Package/fuse/Default)
|
|
|
|
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)
|
|
|
|
DESCRIPTION+=\\\
|
|
|
|
\\\
|
|
|
|
This package contains the FUSE shared library, needed by other programs.
|
2006-06-17 11:34:53 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
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 ; \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2006-06-17 11:58:45 +03:00
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
2006-06-17 11:34:53 +03:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--program-prefix="" \
|
|
|
|
--program-suffix="" \
|
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--includedir=/usr/include \
|
|
|
|
--infodir=/usr/share/info \
|
|
|
|
--libdir=/usr/lib \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--sbindir=/usr/sbin \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
$(DISABLE_LARGEFILE) \
|
|
|
|
$(DISABLE_NLS) \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--disable-rpath \
|
|
|
|
--enable-kernel-module \
|
|
|
|
--enable-lib \
|
|
|
|
--enable-util \
|
|
|
|
--disable-example \
|
|
|
|
--disable-auto-modprobe \
|
2006-09-23 16:40:25 +03:00
|
|
|
--with-kernel="$(LINUX_DIR)" \
|
2006-06-17 11:34:53 +03:00
|
|
|
--disable-mtab \
|
|
|
|
);
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
ARCH="$(LINUX_KARCH)" \
|
|
|
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
mkdir -p $(STAGING_DIR)/usr/include
|
2006-09-23 16:40:25 +03:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/fuse{,.h} $(STAGING_DIR)/usr/include/
|
2006-06-17 11:34:53 +03:00
|
|
|
mkdir -p $(STAGING_DIR)/usr/lib
|
2006-09-23 16:40:25 +03:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libfuse.{a,so*} $(STAGING_DIR)/usr/lib/
|
2006-06-17 11:34:53 +03:00
|
|
|
mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fuse.pc $(STAGING_DIR)/usr/lib/pkgconfig/
|
2006-09-23 16:40:25 +03:00
|
|
|
$(SED) 's,-I$$$${includedir}/fuse,,g' $(STAGING_DIR)/usr/lib/pkgconfig/fuse.pc
|
|
|
|
$(SED) 's,-L$$$${libdir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/fuse.pc
|
2006-06-17 11:34:53 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/UninstallDev
|
2006-09-24 23:49:31 +03:00
|
|
|
rm -rf $(STAGING_DIR)/usr/include/fuse{,.h} \
|
2006-06-18 21:30:40 +03:00
|
|
|
$(STAGING_DIR)/usr/lib/libfuse.{a,so*} \
|
2006-06-17 11:34:53 +03:00
|
|
|
$(STAGING_DIR)/usr/lib/pkgconfig/fuse.pc
|
|
|
|
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
|
2006-09-23 16:40:25 +03:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/fusermount $(1)/usr/bin/
|
|
|
|
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))
|