c962338070
Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
24 lines
686 B
Makefile
24 lines
686 B
Makefile
################################################################################
|
|
#
|
|
# bsdiff
|
|
#
|
|
################################################################################
|
|
|
|
BSDIFF_VERSION = 4.3
|
|
BSDIFF_SITE = http://www.daemonology.net/bsdiff
|
|
BSDIFF_DEPENDENCIES = bzip2
|
|
|
|
define BSDIFF_BUILD_CMDS
|
|
$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) \
|
|
$(@D)/bsdiff.c -lbz2 -o $(@D)/bsdiff
|
|
$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) \
|
|
$(@D)/bspatch.c -lbz2 -o $(@D)/bspatch
|
|
endef
|
|
|
|
define BSDIFF_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -D -m 755 $(@D)/bsdiff $(TARGET_DIR)/usr/bin/bsdiff
|
|
$(INSTALL) -D -m 755 $(@D)/bspatch $(TARGET_DIR)/usr/bin/bspatch
|
|
endef
|
|
|
|
$(eval $(generic-package))
|