mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
16
package/lrzsz/Config.in
Normal file
16
package/lrzsz/Config.in
Normal file
@@ -0,0 +1,16 @@
|
||||
config BR2_PACKAGE_LRZSZ
|
||||
bool "lrzsz"
|
||||
# It could technically build in a static-only environment, but
|
||||
# it unconditionally redefines the error() and error_at_line()
|
||||
# functions, which clashes with the definition from
|
||||
# uClibc. Since the autotools packaging dates back from 1998,
|
||||
# lots of work is needed to fix it, and do some proper tests
|
||||
# on the availability of such functions.
|
||||
depends on !BR2_STATIC_LIBS
|
||||
help
|
||||
Portable and fast implementation of the X/Y/Zmodem protocols.
|
||||
|
||||
http://www.ohse.de/uwe/software/lrzsz.html
|
||||
|
||||
comment "lrzsz needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
2
package/lrzsz/lrzsz.hash
Normal file
2
package/lrzsz/lrzsz.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 c28b36b14bddb014d9e9c97c52459852f97bd405f89113f30bee45ed92728ff1 lrzsz-0.12.20.tar.gz
|
||||
35
package/lrzsz/lrzsz.mk
Normal file
35
package/lrzsz/lrzsz.mk
Normal file
@@ -0,0 +1,35 @@
|
||||
################################################################################
|
||||
#
|
||||
# lrzsz
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LRZSZ_VERSION = 0.12.20
|
||||
LRZSZ_SITE = http://www.ohse.de/uwe/releases
|
||||
LRZSZ_CONF_OPTS = --disable-timesync
|
||||
LRZSZ_LICENSE = GPL-2.0+
|
||||
LRZSZ_LICENSE_FILES = COPYING
|
||||
LRZSZ_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
|
||||
LRZSZ_CONF_ENV = LIBS=$(TARGET_NLS_LIBS)
|
||||
|
||||
define LRZSZ_POST_CONFIGURE_HOOKS
|
||||
$(SED) "s/-lnsl//;" $(@D)/src/Makefile
|
||||
$(SED) "s~\(#define ENABLE_SYSLOG.*\)~/* \1 */~;" $(@D)/config.h
|
||||
endef
|
||||
|
||||
define LRZSZ_BUILD_HOOKS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) CROSS_COMPILE="$(TARGET_CROSS)" prefix="$(TARGET_DIR)" -C $(@D)
|
||||
endef
|
||||
|
||||
define LRZSZ_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -m 0755 -D $(@D)/src/lrz $(TARGET_DIR)/usr/bin/rz
|
||||
$(INSTALL) -m 0755 -D $(@D)/src/lsz $(TARGET_DIR)/usr/bin/sz
|
||||
ln -sf rz $(TARGET_DIR)/usr/bin/lrz
|
||||
ln -sf sz $(TARGET_DIR)/usr/bin/lsz
|
||||
ln -sf rz $(TARGET_DIR)/usr/bin/rb
|
||||
ln -sf sz $(TARGET_DIR)/usr/bin/sb
|
||||
ln -sf rz $(TARGET_DIR)/usr/bin/rx
|
||||
ln -sf sz $(TARGET_DIR)/usr/bin/sx
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user