2 # Copyright (C) 2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
15 PKG_MAINTAINER
:=Zoltan HERPAI
<wigyori@uid0.hu
>
17 PKG_SOURCE
:=$(PKG_NAME
)-fuse-
$(PKG_VERSION
).
tar.gz
18 PKG_SOURCE_URL
:=@SF
/fuse
19 PKG_MD5SUM
:=17494910db8383a366b1301e5f5148a9
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-fuse-
$(PKG_VERSION
)
23 include $(INCLUDE_DIR
)/package.mk
24 include $(INCLUDE_DIR
)/nls.mk
28 DEPENDS
:=+libfuse
+fuse-utils
+glib2
+libpthread
32 URL
:=http
://fuse.sourceforge.net
/
35 define Package
/sshfs
/description
36 Mount remote system over sftp.
41 -D_FILE_OFFSET_BITS=64 \
42 -I$(STAGING_DIR)/usr/include/glib-2.0 \
43 -I$(STAGING_DIR)/usr/lib/glib-2.0/include \
44 -I$(STAGING_DIR)/usr/include/fuse" \
46 -lglib-2.0 -liconv $(if $(INTL_FULL),-lintl) -lfuse -pthread -lgthread-2.0 \
47 -L$(STAGING_DIR)/usr/lib"
50 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
51 ARCH
="$(LINUX_KARCH)" \
52 CROSS_COMPILE
="$(TARGET_CROSS)" \
53 DESTDIR
="$(PKG_INSTALL_DIR)" \
57 define Package
/sshfs
/install
58 $(INSTALL_DIR
) $(1)/usr
/bin
59 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/sshfs
$(1)/usr
/bin
/
62 $(eval
$(call BuildPackage
,sshfs
))