source: packages/net/sshfs/Makefile @ 25319

Last change on this file since 25319 was 25319, checked in by jow, 5 years ago

[packages] make libintl and libiconv stub/full implementations switchable, use the new include/nls.mk infrastructure for it

File size: 1.3 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=sshfs
11PKG_VERSION:=2.2
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-fuse-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=@SF/fuse
16PKG_MD5SUM:=26e9206eb5169e87e6f95f54bc005a4f
17
18PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-fuse-$(PKG_VERSION)
19
20include $(INCLUDE_DIR)/package.mk
21include $(INCLUDE_DIR)/nls.mk
22
23define Package/sshfs
24  TITLE:=SSHFS
25  DEPENDS:=+libfuse +fuse-utils +glib2 +libpthread
26  SECTION:=net
27  CATEGORY:=Network
28  SUBMENU:=Filesystem
29  URL:=http://fuse.sourceforge.net/
30endef
31
32define Package/sshfs/description
33        Mount remote system over sftp.
34endef
35
36CONFIGURE_VARS += \
37        SSHFS_CFLAGS=" \
38                -D_FILE_OFFSET_BITS=64 \
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" \
42        SSHFS_LIBS=" \
43                -lglib-2.0 -liconv -lfuse -pthread -lgthread-2.0 \
44                -L$(STAGING_DIR)/usr/lib"
45
46define 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
52endef
53
54define Package/sshfs/install
55        $(INSTALL_DIR) $(1)/usr/bin
56        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sshfs $(1)/usr/bin/
57endef
58
59$(eval $(call BuildPackage,sshfs))
Note: See TracBrowser for help on using the repository browser.