bsdiff.mk 864 B

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