2003-01-18 22:27:22 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
2003-01-19 01:09:44 +01:00
|
|
|
# lrzsz (provides zmodem)
|
2003-01-18 22:27:22 +01:00
|
|
|
#
|
|
|
|
#############################################################
|
2005-02-11 03:29:58 +01:00
|
|
|
# Copyright (C) 2001-2005 by Erik Andersen <andersen@codepoet.org>
|
2003-01-18 22:27:22 +01:00
|
|
|
# Copyright (C) 2002 by Tim Riker <Tim@Rikers.org>
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU Library General Public License as
|
|
|
|
# published by the Free Software Foundation; either version 2 of the
|
|
|
|
# License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful, but
|
|
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
# Library General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Library General Public
|
|
|
|
# License along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
|
|
# USA
|
2007-07-11 16:06:06 +02:00
|
|
|
LRZSZ_VERSION:=0.12.20
|
2003-01-18 22:27:22 +01:00
|
|
|
LRZSZ_SITE:=http://www.ohse.de/uwe/releases
|
2007-07-11 16:06:06 +02:00
|
|
|
LRZSZ_SOURCE:=lrzsz-$(LRZSZ_VERSION).tar.gz
|
2003-01-18 22:27:22 +01:00
|
|
|
|
2010-06-16 13:47:21 +02:00
|
|
|
LRZSR_CONF_OPT = --disable-timesync
|
2003-01-18 22:27:22 +01:00
|
|
|
|
2010-06-16 13:47:21 +02:00
|
|
|
define LRZSZ_POST_CONFIGURE_HOOKS
|
|
|
|
$(SED) "s/-lnsl//;" $(@D)/src/Makefile
|
|
|
|
$(SED) "s~\(#define ENABLE_SYSLOG.*\)~/* \1 */~;" $(@D)/config.h
|
|
|
|
endef
|
2003-01-18 22:27:22 +01:00
|
|
|
|
2010-06-16 13:47:21 +02:00
|
|
|
define LRZSZ_BUILD_HOOKS
|
|
|
|
$(MAKE) CROSS_COMPILE="$(TARGET_CROSS)" prefix="$(TARGET_DIR)" -C $(@D)
|
|
|
|
endef
|
2003-01-18 22:27:22 +01:00
|
|
|
|
2010-06-16 13:47:21 +02:00
|
|
|
define LRZSZ_INSTALL_TARGET_CMDS
|
|
|
|
cp $(@D)/src/lrz $(TARGET_DIR)/usr/bin/rz
|
|
|
|
cp $(@D)/src/lsz $(TARGET_DIR)/usr/bin/sz
|
2010-11-20 06:27:34 +01:00
|
|
|
ln -s rz $(TARGET_DIR)/usr/bin/lrz
|
|
|
|
ln -s sz $(TARGET_DIR)/usr/bin/lsz
|
2010-06-16 13:47:21 +02:00
|
|
|
endef
|
2003-01-18 22:27:22 +01:00
|
|
|
|
2010-06-16 13:47:21 +02:00
|
|
|
define LRZSZ_CLEAN_CMDS
|
2010-11-20 06:27:34 +01:00
|
|
|
rm -f $(addprefix $(TARGET_DIR)/usr/bin/,rz sz lrz lsz)
|
2010-06-16 13:47:21 +02:00
|
|
|
-$(MAKE) -C $(@D) clean
|
|
|
|
endef
|
2003-01-18 22:27:22 +01:00
|
|
|
|
2010-06-16 13:47:21 +02:00
|
|
|
$(eval $(call AUTOTARGETS,package,lrzsz))
|