cannelloni: needs dynamic library
[buildroot-gz.git] / package / bsdiff / bsdiff.mk
blob7d2b2969db61b96b0e2f05976ee1da504151b849
1 ################################################################################
3 # bsdiff
5 ################################################################################
7 BSDIFF_VERSION = 4.3
8 BSDIFF_SITE = http://www.daemonology.net/bsdiff
9 BSDIFF_DEPENDENCIES = bzip2
10 BSDIFF_LICENSE = BSD-2c
11 BSDIFF_LICENSE_FILES = bsdiff.c
13 define BSDIFF_BUILD_CMDS
14 $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) \
15 $(@D)/bsdiff.c -lbz2 -o $(@D)/bsdiff
16 $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) \
17 $(@D)/bspatch.c -lbz2 -o $(@D)/bspatch
18 endef
20 define BSDIFF_INSTALL_TARGET_CMDS
21 $(INSTALL) -D -m 755 $(@D)/bsdiff $(TARGET_DIR)/usr/bin/bsdiff
22 $(INSTALL) -D -m 755 $(@D)/bspatch $(TARGET_DIR)/usr/bin/bspatch
23 endef
25 $(eval $(generic-package))