packages: add ftplib
[openwrt/svn-archive/archive.git] / libs / ftplib / Makefile
1 #
2 # Copyright (C) 2008 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:=ftplib
11 PKG_VERSION:=3.1-1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://nbpfaus.net/~pfau/ftplib/
16 PKG_MD5SUM:=763be9c7e7b110776f88521a558dbc55
17
18 include $(INCLUDE_DIR)/package.mk
19
20 MAKE_PATH:=src
21
22 define Package/ftplib
23 SECTION:=libs
24 CATEGORY:=Libraries
25 TITLE:=ftplib
26 URL:=http://nbpfaus.net/~pfau/ftplib/
27 endef
28
29 define Package/ftplib/description
30 ftplib is a set of routines that implement the FTP protocol. They allow
31 applications to create and access remote files through function calls instead
32 of needing to fork and exec an interactive ftp client program.
33 endef
34
35 define Build/Compile
36 $(call Build/Compile/Default,all)
37 endef
38
39 define Build/InstallDev
40 $(INSTALL_DIR) $(1)/usr/include/
41 $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/ftplib.h $(1)/usr/include/
42 $(INSTALL_DIR) $(1)/usr/lib/
43 $(CP) $(PKG_BUILD_DIR)/src/libftp.{so*,a} $(1)/usr/lib/
44 endef
45
46 define Package/ftplib/install
47 $(INSTALL_DIR) $(1)/usr/lib/
48 $(CP) $(PKG_BUILD_DIR)/src/libftp.so* $(1)/usr/lib/
49 endef
50
51 $(eval $(call BuildPackage,ftplib))