postgresql: moved to github
[packages.git] / libs / ftplib / Makefile
1 #
2 # Copyright (C) 2008-2014 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:=2
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 MAKE_FLAGS += \
36         DEFINES="$(TARGET_CFLAGS)"
37
38 define Build/Compile
39         $(call Build/Compile/Default,all)
40 endef
41
42 define Build/InstallDev
43         $(INSTALL_DIR) $(1)/usr/include/
44         $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/ftplib.h $(1)/usr/include/
45         $(INSTALL_DIR) $(1)/usr/lib/
46         $(CP) $(PKG_BUILD_DIR)/src/libftp.{so*,a} $(1)/usr/lib/
47 endef
48
49 define Package/ftplib/install
50         $(INSTALL_DIR) $(1)/usr/lib/
51         $(CP) $(PKG_BUILD_DIR)/src/libftp.so* $(1)/usr/lib/
52 endef
53
54 $(eval $(call BuildPackage,ftplib))