2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://libcli.googlecode.com/files
16 PKG_MD5SUM:=b917617d21b90db214971efe64a33416
18 include $(INCLUDE_DIR)/package.mk
23 TITLE:=A Cisco-like CLI library
24 URL:=http://code.google.com/p/libcli/
25 DEPENDS:=+EXTERNAL_TOOLCHAIN:libc +EXTERNAL_TOOLCHAIN:+libgcc
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.
35 TARGET_CFLAGS += $(FPIC)
39 OPTIM="$(TARGET_CFLAGS)" \
40 CFLAGS="$(TARGET_CFLAGS)" \
42 DESTDIR="$(PKG_INSTALL_DIR)" \
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/
52 define Package/libcli/install
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcli.so.* $(1)/usr/lib/
57 $(eval $(call BuildPackage,libcli))