6a2fd07d1cb5f9eff8e5fa2ca5efe07e21043f9c
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=sshfs
11 PKG_VERSION:=1.8
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-fuse-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/fuse
16 PKG_MD5SUM:=3c575cf89a6d3d8ab6063c2f60bd5b25
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-fuse-$(PKG_VERSION)
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/sshfs
23 TITLE:=SSHFS
24 DEPENDS:=+libfuse +fuse-utils +glib2 +libpthread
25 SECTION:=net
26 CATEGORY:=Network
27 URL:=http://fuse.sourceforge.net/
28 endef
29
30 define Package/sshfs/description
31 Mount remote system over sftp.
32 endef
33
34 CONFIGURE_VARS += \
35 SSHFS_CFLAGS=" \
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 SSHFS_LIBS=" \
42 -lglib-2.0 -lintl -liconv -lfuse -pthread -lgthread-2.0 \
43 -L$(STAGING_DIR)/usr/lib/libintl/lib \
44 -L$(STAGING_DIR)/usr/lib/libiconv/lib"
45
46 define Build/Compile
47 $(MAKE) -C $(PKG_BUILD_DIR) \
48 ARCH="$(LINUX_KARCH)" \
49 CROSS_COMPILE="$(TARGET_CROSS)" \
50 DESTDIR="$(PKG_INSTALL_DIR)" \
51 all install
52 endef
53
54 define Package/sshfs/install
55 $(INSTALL_DIR) $(1)/usr/bin
56 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sshfs $(1)/usr/bin/
57 endef
58
59 $(eval $(call BuildPackage,sshfs))