nuke $Id$ in /packages as well
[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.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/libcli
16 PKG_MD5SUM:=bad78e4b1b9e29d349c48cad3adfd154
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://libcli.sourceforge.net/
25 endef
26
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.
32 endef
33
34 TARGET_CFLAGS += $(FPIC)
35
36 MAKE_FLAGS += \
37         DEBUG="" \
38         OPTIM="$(TARGET_CFLAGS)" \
39         CFLAGS="$(TARGET_CFLAGS)" \
40         PREFIX="/usr" \
41         DESTDIR="$(PKG_INSTALL_DIR)" \
42         all install 
43
44 define Build/InstallDev
45         mkdir -p $(1)/usr/include
46         $(CP) $(PKG_INSTALL_DIR)/usr/include/libcli.h $(1)/usr/include/
47         mkdir -p $(1)/usr/lib
48         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcli.so* $(1)/usr/lib/
49 endef
50
51 define Package/libcli/install
52         $(INSTALL_DIR) $(1)/usr/lib
53         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcli.so.* $(1)/usr/lib/
54 endef
55
56 $(eval $(call BuildPackage,libcli))