2006-06-27 08:35:46 +08:00
|
|
|
#
|
2015-05-25 01:56:26 +08:00
|
|
|
# Copyright (C) 2006-2015 OpenWrt.org
|
2006-06-27 08:35:46 +08:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2006-06-17 16:34:53 +08:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
2006-06-21 10:32:39 +08:00
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
2006-06-17 16:34:53 +08:00
|
|
|
|
|
|
|
PKG_NAME:=fuse
|
2015-01-12 06:15:03 +08:00
|
|
|
PKG_VERSION:=2.9.3
|
2015-05-25 01:56:26 +08:00
|
|
|
PKG_RELEASE:=2
|
2006-06-17 16:34:53 +08:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-09-23 21:40:25 +08:00
|
|
|
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
|
2015-01-12 06:15:03 +08:00
|
|
|
PKG_MD5SUM:=33cae22ca50311446400daf8a6255c6a
|
2010-03-14 10:01:14 +08:00
|
|
|
|
2014-11-03 17:56:44 +08:00
|
|
|
PKG_LICENSE:=LGPLv2.1 GPLv2
|
2012-10-19 23:34:28 +08:00
|
|
|
PKG_LICENSE_FILES:=COPYING.LIB COPYING
|
|
|
|
|
2010-03-14 10:01:14 +08:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2006-06-21 10:32:39 +08:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2006-06-17 16:34:53 +08:00
|
|
|
|
2006-09-23 21:40:25 +08:00
|
|
|
define Package/fuse/Default
|
|
|
|
TITLE:=FUSE
|
|
|
|
URL:=http://fuse.sourceforge.net/
|
|
|
|
endef
|
|
|
|
|
2007-09-07 16:34:51 +08:00
|
|
|
define Package/fuse/Default/description
|
|
|
|
FUSE (Filesystem in UserSpacE)
|
|
|
|
endef
|
|
|
|
|
2006-09-23 21:40:25 +08:00
|
|
|
define Package/fuse-utils
|
2007-09-07 16:34:51 +08:00
|
|
|
$(call Package/fuse/Default)
|
2006-09-23 21:40:25 +08:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2009-06-11 10:09:13 +08:00
|
|
|
DEPENDS:=+libfuse
|
2006-09-23 21:40:25 +08:00
|
|
|
TITLE+= (utilities)
|
2009-07-05 21:57:59 +08:00
|
|
|
SUBMENU:=Filesystem
|
2007-09-07 16:34:51 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/fuse-utils/description
|
|
|
|
$(call Package/fuse/Default/description)
|
2010-03-14 10:01:14 +08:00
|
|
|
This package contains the FUSE utilities.
|
|
|
|
- fusermount
|
|
|
|
- ulockmgr_server
|
2006-09-23 21:40:25 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libfuse
|
2007-09-07 16:34:51 +08:00
|
|
|
$(call Package/fuse/Default)
|
2006-09-23 21:40:25 +08:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE+= (library)
|
2012-09-19 23:37:35 +08:00
|
|
|
DEPENDS:=+kmod-fuse +libpthread
|
2009-07-05 21:57:59 +08:00
|
|
|
SUBMENU:=Filesystem
|
2007-09-07 16:34:51 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libfuse/description
|
|
|
|
$(call Package/fuse/Default/description)
|
2010-03-14 10:01:14 +08:00
|
|
|
This package contains the FUSE shared libraries, needed by other programs.
|
|
|
|
- libfuse
|
|
|
|
- libulockmgr
|
2006-06-17 16:34:53 +08:00
|
|
|
endef
|
|
|
|
|
2010-03-14 10:01:14 +08:00
|
|
|
# generic args
|
2007-02-26 07:38:02 +08:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
2015-01-12 06:15:03 +08:00
|
|
|
--enable-lib \
|
|
|
|
--enable-util \
|
2007-02-26 07:38:02 +08:00
|
|
|
--disable-rpath \
|
|
|
|
--disable-example \
|
2010-06-27 04:43:41 +08:00
|
|
|
--disable-mtab
|
2010-03-14 10:01:14 +08:00
|
|
|
|
2006-06-17 16:34:53 +08:00
|
|
|
define Build/InstallDev
|
2015-01-12 06:15:03 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/{fuse,fuse.h,ulockmgr.h} $(1)/usr/include/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{fuse,ulockmgr}.{a,so*} $(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
2007-09-28 09:45:11 +08:00
|
|
|
$(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 16:34:53 +08:00
|
|
|
endef
|
|
|
|
|
2006-09-23 21:40:25 +08:00
|
|
|
define Package/fuse-utils/install
|
2015-01-12 06:15:03 +08:00
|
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/sbin/mount.fuse $(1)/sbin/
|
2006-11-23 08:29:07 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2015-01-12 06:15:03 +08:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/{fusermount,ulockmgr_server} $(1)/usr/bin/
|
2006-09-23 21:40:25 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libfuse/install
|
2006-11-23 08:29:07 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2015-01-12 06:15:03 +08:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{fuse,ulockmgr}.so.* $(1)/usr/lib/
|
2006-09-23 21:40:25 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,fuse-utils))
|
|
|
|
$(eval $(call BuildPackage,libfuse))
|