5cb4cd8ef3
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
30 lines
853 B
Makefile
30 lines
853 B
Makefile
################################################################################
|
|
#
|
|
# lrzsz
|
|
#
|
|
################################################################################
|
|
|
|
LRZSZ_VERSION = 0.12.20
|
|
LRZSZ_SITE = http://www.ohse.de/uwe/releases
|
|
LRZSZ_CONF_OPT = --disable-timesync
|
|
LRZSZ_LICENSE = GPLv2+
|
|
LRZSZ_LICENSE_FILES = COPYING
|
|
|
|
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
|
|
$(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
|
|
endef
|
|
|
|
$(eval $(autotools-package))
|