2009-11-26 16:11:02 +00:00
|
|
|
#
|
2006-07-26 01:14:56 +00:00
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libcli
|
2009-11-26 16:11:02 +00:00
|
|
|
PKG_VERSION:=1.9.4
|
2006-07-26 01:14:56 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2009-11-26 16:11:02 +00:00
|
|
|
PKG_SOURCE_URL:=http://libcli.googlecode.com/files
|
|
|
|
PKG_MD5SUM:=b917617d21b90db214971efe64a33416
|
2006-07-26 01:14:56 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libcli
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=A Cisco-like CLI library
|
2009-11-26 16:11:02 +00:00
|
|
|
URL:=http://code.google.com/p/libcli/
|
2012-11-01 01:24:10 +00:00
|
|
|
DEPENDS:=+EXTERNAL_TOOLCHAIN:libc +EXTERNAL_TOOLCHAIN:libgcc
|
2006-07-26 01:14:56 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/libcli/description
|
2009-11-26 16:11:02 +00:00
|
|
|
Libcli provides a shared library for including a Cisco-like
|
|
|
|
command-line interface into other software. It's a telnet
|
|
|
|
interface which supports command-line editing, history,
|
2007-10-14 04:32:56 +00:00
|
|
|
authentication and callbacks for a user-definable function tree.
|
|
|
|
endef
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2007-07-31 10:33:46 +00:00
|
|
|
MAKE_FLAGS += \
|
2008-09-27 16:54:18 +00:00
|
|
|
DEBUG="" \
|
2007-07-31 10:33:46 +00:00
|
|
|
OPTIM="$(TARGET_CFLAGS)" \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
2008-09-27 17:01:06 +00:00
|
|
|
PREFIX="/usr" \
|
2007-07-31 10:33:46 +00:00
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
2009-11-26 16:11:02 +00:00
|
|
|
all install
|
2006-07-26 01:14:56 +00:00
|
|
|
|
|
|
|
define Build/InstallDev
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/libcli.h $(1)/usr/include/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcli.so* $(1)/usr/lib/
|
2006-07-26 01:14:56 +00:00
|
|
|
endef
|
|
|
|
|
2006-10-09 20:07:02 +00:00
|
|
|
define Package/libcli/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2006-10-09 20:07:02 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcli.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2006-07-26 01:14:56 +00:00
|
|
|
$(eval $(call BuildPackage,libcli))
|