Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #
  2. # Copyright (C) 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. PKG_NAME:=sshfs
  9. PKG_VERSION:=2.8
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=GPL-2.0
  12. PKG_MAINTAINER:=Zoltan HERPAI <wigyori@uid0.hu>
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=https://github.com/libfuse/sshfs/releases/download/$(PKG_NAME)_$(PKG_VERSION)
  15. PKG_MD5SUM:=0ba25e848ee59e2595d6576c8f6284b6
  16. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/nls.mk
  19. define Package/sshfs
  20. TITLE:=SSHFS
  21. DEPENDS:=+libfuse +fuse-utils +glib2 +libpthread
  22. SECTION:=net
  23. CATEGORY:=Network
  24. SUBMENU:=Filesystem
  25. URL:=http://fuse.sourceforge.net/
  26. endef
  27. define Package/sshfs/description
  28. Mount remote system over sftp.
  29. endef
  30. CONFIGURE_VARS += \
  31. SSHFS_CFLAGS=" \
  32. -D_FILE_OFFSET_BITS=64 \
  33. -I$(STAGING_DIR)/usr/include/glib-2.0 \
  34. -I$(STAGING_DIR)/usr/lib/glib-2.0/include \
  35. -I$(STAGING_DIR)/usr/include/fuse" \
  36. SSHFS_LIBS=" \
  37. -lglib-2.0 -liconv $(if $(INTL_FULL),-lintl) -lfuse -pthread -lgthread-2.0 \
  38. -L$(STAGING_DIR)/usr/lib"
  39. define Build/Compile
  40. $(MAKE) -C $(PKG_BUILD_DIR) \
  41. ARCH="$(LINUX_KARCH)" \
  42. CROSS_COMPILE="$(TARGET_CROSS)" \
  43. DESTDIR="$(PKG_INSTALL_DIR)" \
  44. all install
  45. endef
  46. define Package/sshfs/install
  47. $(INSTALL_DIR) $(1)/usr/bin
  48. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sshfs $(1)/usr/bin/
  49. endef
  50. $(eval $(call BuildPackage,sshfs))