sngrep: fix error if gnutls and openssl are both enabled
[buildroot-gz.git] / package / bsdiff / bsdiff.mk
blobeb903e053f364020f7999f0cbfb398df88d5963c
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_MAKE_ENV) $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) \
15 $(@D)/bsdiff.c -lbz2 -o $(@D)/bsdiff
16 $(TARGET_MAKE_ENV) $(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))