[packages] curlftpfs: fix compilation
[packages.git] / net / curlftpfs / Makefile
1 # This is free software, licensed under the GNU General Public License v2.
2 # See /LICENSE for more information.
3
4 include $(TOPDIR)/rules.mk
5
6 PKG_NAME:=curlftpfs
7 PKG_VERSION:=0.9.2
8 PKG_RELEASE:=2
9
10 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
11 PKG_SOURCE_URL:=@SF/curlftpfs
12 PKG_MD5SUM:=b452123f755114cd4461d56c648d9f12
13
14 PKG_BUILD_DEPENDS:=libiconv
15 PKG_FIXUP:=libtool
16
17 include $(INCLUDE_DIR)/package.mk
18
19 define Package/curlftpfs
20   SECTION:=net
21   CATEGORY:=Network
22   DEPENDS:=+libcurl +libfuse +glib2
23   TITLE:=CurlFtpFS
24   URL:=http://curlftpfs.sourceforge.net/
25 endef
26
27 define Package/curlftpfs/description
28   CurlFtpFS is a filesystem for accessing FTP hosts
29   based on FUSE and libcurl.
30 endef
31
32 EXTRA_CFLAGS += \
33         -I$(STAGING_DIR)/usr/lib/libiconv/include \
34         -I$(STAGING_DIR)/usr/include/fuse \
35         -DICONV_CONST=const
36
37 EXTRA_LDFLAGS += \
38         -L$(STAGING_DIR)/usr/lib/libintl/lib \
39         -L$(STAGING_DIR)/usr/lib/libiconv/lib
40
41 define Package/curlftpfs/install
42         $(INSTALL_DIR) $(1)/usr/bin
43         $(INSTALL_BIN) $(PKG_BUILD_DIR)/curlftpfs $(1)/usr/bin/
44 endef
45
46 $(eval $(call BuildPackage,curlftpfs))
47