2 # Copyright (C) 2007 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
14 PKG_SOURCE
:=$(PKG_NAME
)-fuse-
$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@SF
/fuse
16 PKG_MD5SUM
:=26e9206eb5169e87e6f95f54bc005a4f
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-fuse-
$(PKG_VERSION
)
20 include $(INCLUDE_DIR
)/package.mk
24 DEPENDS
:=+libfuse
+fuse-utils
+glib2
+libpthread
27 URL
:=http
://fuse.sourceforge.net
/
30 define Package
/sshfs
/description
31 Mount remote system over sftp.
36 -D_FILE_OFFSET_BITS=64 \
37 -I$(STAGING_DIR)/usr/lib/libintl/include \
38 -I$(STAGING_DIR)/usr/lib/libiconv/include \
39 -I$(STAGING_DIR)/usr/include/glib-2.0 \
40 -I$(STAGING_DIR)/usr/lib/glib-2.0/include \
41 -I$(STAGING_DIR)/usr/include/fuse" \
43 -lglib-2.0 -lintl -liconv -lfuse -pthread -lgthread-2.0 \
44 -L$(STAGING_DIR)/usr/lib/libintl/lib \
45 -L$(STAGING_DIR)/usr/lib/libiconv/lib \
46 -L$(STAGING_DIR)/usr/lib"
49 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
50 ARCH
="$(LINUX_KARCH)" \
51 CROSS_COMPILE
="$(TARGET_CROSS)" \
52 DESTDIR
="$(PKG_INSTALL_DIR)" \
56 define Package
/sshfs
/install
57 $(INSTALL_DIR
) $(1)/usr
/bin
58 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/sshfs
$(1)/usr
/bin
/
61 $(eval
$(call BuildPackage
,sshfs
))