74dc198393
git-svn-id: svn://svn.openwrt.org/openwrt/packages@12174 3c298f89-4303-0410-b956-a3cf2f4a3e73
54 lines
1.3 KiB
Makefile
54 lines
1.3 KiB
Makefile
#
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
# $Id$
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=libcli
|
|
PKG_VERSION:=1.8.5
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=@SF/libcli
|
|
PKG_MD5SUM:=0fdd30df5a8c1388a4549751ba61247a
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/libcli
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=A Cisco-like CLI library
|
|
URL:=http://libcli.sourceforge.net/
|
|
endef
|
|
|
|
define Package/libcli/description
|
|
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,
|
|
authentication and callbacks for a user-definable function tree.
|
|
endef
|
|
|
|
MAKE_FLAGS += \
|
|
OPTIM="$(TARGET_CFLAGS)" \
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
all install
|
|
|
|
define Build/InstallDev
|
|
mkdir -p $(1)/usr/include
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/libcli.h $(1)/usr/include/
|
|
mkdir -p $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcli.so* $(1)/usr/lib/
|
|
endef
|
|
|
|
define Package/libcli/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcli.so.* $(1)/usr/lib/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libcli))
|