Ticket #8887: catty.patch

File catty.patch, 1.5 KB (added by arteq, 6 years ago)
  • utils/catty/files/Makefile

     
     1CC=gcc 
     2 
     3catty: catty.o 
     4 
     5clean: 
     6        rm -f catty catty.o 
  • utils/catty/Makefile

     
     1# 
     2# Copyright (C) 2011 OpenWrt.org 
     3# 
     4# This is free software, licensed under the GNU General Public License v2. 
     5# See /LICENSE for more information. 
     6# 
     7 
     8include $(TOPDIR)/rules.mk 
     9 
     10PKG_NAME:=catty 
     11PKG_VERSION:=2006.03.13 
     12PKG_RELEASE:=1 
     13 
     14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     15PKG_SOURCE_URL:=@SF/catty 
     16PKG_MD5SUM:= eed76a2e7d3fa34b1ba1605f52587190 
     17 
     18include $(INCLUDE_DIR)/package.mk 
     19 
     20define Package/catty 
     21  SECTION:=utils 
     22  CATEGORY:=Utilities 
     23  TITLE:=shell interface to serial tty 
     24  MAINTAINER:=Artur Wronowski <arteqw@gmail.com> 
     25endef 
     26 
     27define Package/catty/description 
     28catty is a simple shell interface to serial tty lines 
     29endef 
     30 
     31define Build/Compile 
     32        $(CP) ./files/Makefile $(PKG_BUILD_DIR) 
     33        $(MAKE) -C $(PKG_BUILD_DIR) \ 
     34        CXXFLAGS="$(TARGET_CFLAGS)" \ 
     35        $(TARGET_CONFIGURE_OPTS) \ 
     36        CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \ 
     37        LDFLAGS="$(TARGET_LDFLAGS)" \ 
     38        DESTDIR="$(PKG_INSTALL_DIR)" \ 
     39 
     40endef 
     41 
     42define Package/catty/install 
     43        $(INSTALL_DIR) $(1)/usr/sbin 
     44        $(INSTALL_BIN) $(PKG_BUILD_DIR)/catty $(1)/usr/sbin/ 
     45endef 
     46 
     47$(eval $(call BuildPackage,catty))