remove UninstallDev
[openwrt/svn-archive/archive.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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libcli
12 PKG_VERSION:=1.8.5
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/libcli
17 PKG_MD5SUM:=0fdd30df5a8c1388a4549751ba61247a
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/libcli
25 SECTION:=libs
26 CATEGORY:=Libraries
27 TITLE:=A Cisco-like CLI library
28 URL:=http://libcli.sourceforge.net/
29 endef
30
31 define Package/libcli/description
32 Libcli provides a shared library for including a Cisco-like
33 command-line interface into other software. It's a telnet
34 interface which supports command-line editing, history,
35 authentication and callbacks for a user-definable function tree.
36 endef
37
38 MAKE_FLAGS += \
39 OPTIM="$(TARGET_CFLAGS)" \
40 CFLAGS="$(TARGET_CFLAGS)" \
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))