update sshfs to latest version, fix compile error
[openwrt/svn-archive/archive.git] / net / sshfs / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=sshfs
12 PKG_VERSION:=1.8
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-fuse-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/fuse
17 PKG_MD5SUM:=3c575cf89a6d3d8ab6063c2f60bd5b25
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-fuse-$(PKG_VERSION)
19 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
20
21 PKG_BUILD_DEPENDS:=libfuse glib2
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/sshfs
26 TITLE:=SSHFS
27 DEPENDS:=+libfuse +fuse-utils +glib2
28 SECTION:=net
29 CATEGORY:=Network
30 URL:=http://fuse.sourceforge.net/
31 endef
32
33 define Package/sshfs/description
34 Mount remote system over sftp.
35 endef
36
37 CONFIGURE_VARS += \
38 SSHFS_CFLAGS=" \
39 -D_FILE_OFFSET_BITS=64 \
40 -I$(STAGING_DIR)/usr/lib/libintl/include \
41 -I$(STAGING_DIR)/usr/lib/libiconv/include \
42 -I$(STAGING_DIR)/usr/include/glib-2.0 \
43 -I$(STAGING_DIR)/usr/lib/glib-2.0/include" \
44 SSHFS_LIBS=" \
45 -lglib-2.0 -lintl -liconv -lfuse -pthread -lgthread-2.0 \
46 -L$(STAGING_DIR)/usr/lib/libintl/lib \
47 -L$(STAGING_DIR)/usr/lib/libiconv/lib"
48
49 define Build/Compile
50 $(MAKE) -C $(PKG_BUILD_DIR) \
51 ARCH="$(LINUX_KARCH)" \
52 CROSS_COMPILE="$(TARGET_CROSS)" \
53 DESTDIR="$(PKG_INSTALL_DIR)" \
54 all install
55 endef
56
57 define Package/sshfs/install
58 $(INSTALL_DIR) $(1)/usr/bin
59 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sshfs $(1)/usr/bin/
60 endef
61
62 $(eval $(call BuildPackage,sshfs))