2
0

Makefile 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. #
  2. # Copyright (C) 2006-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. include $(INCLUDE_DIR)/kernel.mk
  9. PKG_NAME:=fuse
  10. PKG_VERSION:=2.9.7
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://github.com/libfuse/libfuse/releases/download/$(PKG_NAME)-$(PKG_VERSION)
  14. PKG_HASH:=832432d1ad4f833c20e13b57cf40ce5277a9d33e483205fc63c78111b3358874
  15. PKG_LICENSE:=LGPLv2.1 GPLv2
  16. PKG_LICENSE_FILES:=COPYING.LIB COPYING
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/fuse/Default
  20. TITLE:=FUSE
  21. URL:=http://fuse.sourceforge.net/
  22. endef
  23. define Package/fuse/Default/description
  24. FUSE (Filesystem in UserSpacE)
  25. endef
  26. define Package/fuse-utils
  27. $(call Package/fuse/Default)
  28. SECTION:=utils
  29. CATEGORY:=Utilities
  30. DEPENDS:=+libfuse
  31. TITLE+= (utilities)
  32. SUBMENU:=Filesystem
  33. endef
  34. define Package/fuse-utils/description
  35. $(call Package/fuse/Default/description)
  36. This package contains the FUSE utilities.
  37. - fusermount
  38. - ulockmgr_server
  39. endef
  40. define Package/libfuse
  41. $(call Package/fuse/Default)
  42. SECTION:=libs
  43. CATEGORY:=Libraries
  44. TITLE+= (library)
  45. DEPENDS:=+kmod-fuse +libpthread
  46. SUBMENU:=Filesystem
  47. endef
  48. define Package/libfuse/description
  49. $(call Package/fuse/Default/description)
  50. This package contains the FUSE shared libraries, needed by other programs.
  51. - libfuse
  52. - libulockmgr
  53. endef
  54. # generic args
  55. CONFIGURE_ARGS += \
  56. --enable-shared \
  57. --enable-static \
  58. --enable-lib \
  59. --enable-util \
  60. --disable-rpath \
  61. --disable-example \
  62. --disable-mtab
  63. define Build/InstallDev
  64. $(INSTALL_DIR) $(1)/usr/include
  65. $(CP) $(PKG_INSTALL_DIR)/usr/include/{fuse,fuse.h,ulockmgr.h} $(1)/usr/include/
  66. $(INSTALL_DIR) $(1)/usr/lib
  67. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{fuse,ulockmgr}.{a,so*} $(1)/usr/lib/
  68. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  69. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fuse.pc $(1)/usr/lib/pkgconfig/
  70. $(SED) 's,-I$$$${includedir}/fuse,,g' $(1)/usr/lib/pkgconfig/fuse.pc
  71. $(SED) 's,-L$$$${libdir},,g' $(1)/usr/lib/pkgconfig/fuse.pc
  72. endef
  73. define Package/fuse-utils/install
  74. $(INSTALL_DIR) $(1)/sbin
  75. $(CP) $(PKG_INSTALL_DIR)/sbin/mount.fuse $(1)/sbin/
  76. $(INSTALL_DIR) $(1)/usr/bin
  77. $(CP) $(PKG_INSTALL_DIR)/usr/bin/{fusermount,ulockmgr_server} $(1)/usr/bin/
  78. endef
  79. define Package/libfuse/install
  80. $(INSTALL_DIR) $(1)/usr/lib
  81. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{fuse,ulockmgr}.so.* $(1)/usr/lib/
  82. endef
  83. $(eval $(call BuildPackage,fuse-utils))
  84. $(eval $(call BuildPackage,libfuse))