bsdiff.mk 746 B

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