2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2006-12-15 14:57:07 +01:00
|
|
|
#
|
|
|
|
# bsdiff
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2010-09-26 09:13:55 +02:00
|
|
|
BSDIFF_VERSION = 4.3
|
|
|
|
BSDIFF_SITE = http://www.daemonology.net/bsdiff
|
|
|
|
BSDIFF_DEPENDENCIES = bzip2
|
|
|
|
|
|
|
|
define BSDIFF_BUILD_CMDS
|
2012-07-02 11:10:59 +02:00
|
|
|
$(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
|
2010-09-26 09:13:55 +02:00
|
|
|
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
|
|
|
|
|
|
|
|
define BSDIFF_UNINSTALL_TARGET_CMDS
|
|
|
|
rm -f $(TARGET_DIR)/usr/bin/bsdiff $(TARGET_DIR)/usr/bin/bspatch
|
|
|
|
endef
|
|
|
|
|
|
|
|
define BSDIFF_CLEAN_CMDS
|
|
|
|
rm -f $(@D)/bsdiff $(@D)/bspatch
|
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|