summaryrefslogtreecommitdiffstats
path: root/package/bsdiff/bsdiff.mk
blob: 7d2b2969db61b96b0e2f05976ee1da504151b849 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
################################################################################
#
# bsdiff
#
################################################################################

BSDIFF_VERSION = 4.3
BSDIFF_SITE = http://www.daemonology.net/bsdiff
BSDIFF_DEPENDENCIES = bzip2
BSDIFF_LICENSE = BSD-2c
BSDIFF_LICENSE_FILES = bsdiff.c

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))
OpenPOWER on IntegriCloud