[packages] sshfs: remove libintl hacks from makefile
[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:=2.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-fuse-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/fuse
16 PKG_MD5SUM:=26e9206eb5169e87e6f95f54bc005a4f
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 SUBMENU:=Filesystem
28 URL:=http://fuse.sourceforge.net/
29 endef
30
31 define Package/sshfs/description
32 Mount remote system over sftp.
33 endef
34
35 CONFIGURE_VARS += \
36 SSHFS_CFLAGS=" \
37 -D_FILE_OFFSET_BITS=64 \
38 -I$(STAGING_DIR)/usr/include/glib-2.0 \
39 -I$(STAGING_DIR)/usr/lib/glib-2.0/include \
40 -I$(STAGING_DIR)/usr/include/fuse" \
41 SSHFS_LIBS=" \
42 -lglib-2.0 -liconv -lfuse -pthread -lgthread-2.0 \
43 -L$(STAGING_DIR)/usr/lib"
44
45 define Build/Compile
46 $(MAKE) -C $(PKG_BUILD_DIR) \
47 ARCH="$(LINUX_KARCH)" \
48 CROSS_COMPILE="$(TARGET_CROSS)" \
49 DESTDIR="$(PKG_INSTALL_DIR)" \
50 all install
51 endef
52
53 define Package/sshfs/install
54 $(INSTALL_DIR) $(1)/usr/bin
55 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sshfs $(1)/usr/bin/
56 endef
57
58 $(eval $(call BuildPackage,sshfs))