bsdiff.mk 821 B

1234567891011121314151617181920212223242526
  1. ################################################################################
  2. #
  3. # bsdiff
  4. #
  5. ################################################################################
  6. BSDIFF_VERSION = 4.3
  7. BSDIFF_SITE = http://www.daemonology.net/bsdiff
  8. BSDIFF_DEPENDENCIES = bzip2
  9. BSDIFF_LICENSE = BSD-2-Clause
  10. BSDIFF_LICENSE_FILES = bsdiff.c
  11. BSDIFF_CPE_ID_VENDOR = daemonology
  12. define BSDIFF_BUILD_CMDS
  13. $(TARGET_MAKE_ENV) $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) \
  14. $(@D)/bsdiff.c -lbz2 -o $(@D)/bsdiff
  15. $(TARGET_MAKE_ENV) $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) \
  16. $(@D)/bspatch.c -lbz2 -o $(@D)/bspatch
  17. endef
  18. define BSDIFF_INSTALL_TARGET_CMDS
  19. $(INSTALL) -D -m 755 $(@D)/bsdiff $(TARGET_DIR)/usr/bin/bsdiff
  20. $(INSTALL) -D -m 755 $(@D)/bspatch $(TARGET_DIR)/usr/bin/bspatch
  21. endef
  22. $(eval $(generic-package))