Changeset 4294


Ignore:
Timestamp:
2006-07-26T03:14:56+02:00 (12 years ago)
Author:
nico
Message:

port libcli to buildroot-ng

Location:
packages/libs/libcli
Files:
2 deleted
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • packages/libs/libcli/Makefile

    r3112 r4294  
     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# 
    17# $Id$ 
    28 
     
    612PKG_VERSION:=1.8.5 
    713PKG_RELEASE:=1 
     14 
     15PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
     16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     17PKG_SOURCE_URL:=@SF/libcli 
    818PKG_MD5SUM:=0fdd30df5a8c1388a4549751ba61247a 
    9  
    10 PKG_SOURCE_URL:=@SF/libcli 
    11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
    1219PKG_CAT:=zcat 
    1320 
    14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
    1521PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install 
    1622 
    17 include $(TOPDIR)/package/rules.mk 
     23include $(INCLUDE_DIR)/package.mk 
    1824 
    19 $(eval $(call PKG_template,LIBCLI,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 
     25define Package/libcli 
     26  SECTION:=libs 
     27  CATEGORY:=Libraries 
     28  TITLE:=A Cisco-like CLI library 
     29  DESCRIPTION:=A Cisco-like Command Line Interface (CLI) library.\\\ 
     30    Provides a shared library for including a Cisco-like \\\ 
     31    command-line interface into other software. It's a telnet \\\ 
     32    interface which supports command-line editing, history, \\\ 
     33    authentication and callbacks for a user-definable function tree 
     34  URL:=http://libcli.sourceforge.net/ 
     35endef 
    2036 
    21 $(PKG_BUILD_DIR)/.configured: 
    22         touch $@ 
     37define Build/Configure 
     38endef 
    2339 
    24 $(PKG_BUILD_DIR)/.built: 
     40define Build/Compile 
    2541        rm -rf $(PKG_INSTALL_DIR) 
    2642        mkdir -p $(PKG_INSTALL_DIR) 
    27         $(MAKE) CC=$(TARGET_CC) LD=$(TARGET_CC) \ 
    28                 DESTDIR=$(PKG_INSTALL_DIR) \ 
    29                 -C $(PKG_BUILD_DIR) install 
    30         touch $@ 
     43        $(MAKE) -C $(PKG_BUILD_DIR) \ 
     44                CC="$(TARGET_CC)" \ 
     45                LD="$(TARGET_CC)" \ 
     46                DESTDIR="$(PKG_INSTALL_DIR)" \ 
     47                all install 
     48endef 
    3149 
    32 $(IPKG_LIBCLI): 
    33         install -d -m0755 $(IDIR_LIBCLI)/usr/lib 
    34         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcli* $(IDIR_LIBCLI)/usr/lib 
    35         $(RSTRIP) $(IDIR_LIBCLI) 
    36         $(IPKG_BUILD) $(IDIR_LIBCLI) $(PACKAGE_DIR) 
     50define Package/libcli/install 
     51        install -d -m0755 $(1)/usr/lib 
     52        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcli.so.* $(1)/usr/lib 
     53endef 
    3754 
    38 $(STAGING_DIR)/usr/lib/libcli.so: $(PKG_BUILD_DIR)/.built 
     55define Build/InstallDev 
    3956        mkdir -p $(STAGING_DIR)/usr/include 
    4057        $(CP) $(PKG_INSTALL_DIR)/usr/include/libcli.h $(STAGING_DIR)/usr/include/ 
    4158        mkdir -p $(STAGING_DIR)/usr/lib 
    4259        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcli.so* $(STAGING_DIR)/usr/lib/ 
     60endef 
    4361 
    44 install-dev: $(STAGING_DIR)/usr/lib/libcli.so 
     62define Build/UninstallDev 
     63        rm -rf \ 
     64                $(STAGING_DIR)/usr/include/libcli.h \ 
     65                $(STAGING_DIR)/usr/lib/libcli.so* 
     66endef 
    4567 
    46 uninstall-dev: 
    47         rm -rf \ 
    48           $(STAGING_DIR)/usr/include/libcli.h \ 
    49           $(STAGING_DIR)/usr/lib/libcli.so* 
    50  
    51 compile-targets: install-dev 
    52 clean-targets: uninstall-dev 
    53  
     68$(eval $(call BuildPackage,libcli)) 
Note: See TracChangeset for help on using the changeset viewer.