kumquat-buildroot/package/bsdiff/bsdiff.mk
Thomas De Schampheleire 3d86d29bf0 packages: remove package clean commands
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2013-12-08 19:42:34 +01:00

24 lines
680 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))