poco: moved to github
[packages.git] / libs / libcli / Makefile
1 #
2 # Copyright (C) 2006 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:=libcli
11 PKG_VERSION:=1.9.4
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://libcli.googlecode.com/files
16 PKG_MD5SUM:=b917617d21b90db214971efe64a33416
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/libcli
21   SECTION:=libs
22   CATEGORY:=Libraries
23   TITLE:=A Cisco-like CLI library
24   URL:=http://code.google.com/p/libcli/
25   DEPENDS:=+EXTERNAL_TOOLCHAIN:libc +EXTERNAL_TOOLCHAIN:libgcc
26 endef
27
28 define Package/libcli/description
29         Libcli provides a shared library for including a Cisco-like
30         command-line interface into other software. It's a telnet
31         interface which supports command-line editing, history,
32         authentication and callbacks for a user-definable function tree.
33 endef
34
35 TARGET_CFLAGS += $(FPIC)
36
37 MAKE_FLAGS += \
38         DEBUG="" \
39         OPTIM="$(TARGET_CFLAGS)" \
40         CFLAGS="$(TARGET_CFLAGS)" \
41         PREFIX="/usr" \
42         DESTDIR="$(PKG_INSTALL_DIR)" \
43         all install
44
45 define Build/InstallDev
46         $(INSTALL_DIR) $(1)/usr/include
47         $(CP) $(PKG_INSTALL_DIR)/usr/include/libcli.h $(1)/usr/include/
48         $(INSTALL_DIR) $(1)/usr/lib
49         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcli.so* $(1)/usr/lib/
50 endef
51
52 define Package/libcli/install
53         $(INSTALL_DIR) $(1)/usr/lib
54         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcli.so.* $(1)/usr/lib/
55 endef
56
57 $(eval $(call BuildPackage,libcli))