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