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
/
27 define Package
/libcli
/description
28 Libcli provides a shared library for including a Cisco-like
29 command-line interface into other software. It
's a telnet
30 interface which supports command-line editing, history,
31 authentication and callbacks for a user-definable function tree.
34 TARGET_CFLAGS += $(FPIC)
38 OPTIM="$(TARGET_CFLAGS)" \
39 CFLAGS="$(TARGET_CFLAGS)" \
41 DESTDIR="$(PKG_INSTALL_DIR)" \
44 define Build/InstallDev
45 $(INSTALL_DIR) $(1)/usr/include
46 $(CP) $(PKG_INSTALL_DIR)/usr/include/libcli.h $(1)/usr/include/
47 $(INSTALL_DIR) $(1)/usr/lib
48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcli.so* $(1)/usr/lib/
51 define Package/libcli/install
52 $(INSTALL_DIR) $(1)/usr/lib
53 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcli.so.* $(1)/usr/lib/
56 $(eval $(call BuildPackage,libcli))