cvs.mk 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. ################################################################################
  2. #
  3. # cvs
  4. #
  5. ################################################################################
  6. CVS_VERSION = 1.12.13
  7. CVS_SOURCE = cvs_$(CVS_VERSION).orig.tar.gz
  8. CVS_PATCH = cvs_$(CVS_VERSION)-12.diff.gz
  9. CVS_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/c/cvs
  10. CVS_DEPENDENCIES = ncurses
  11. CVS_CONF_ENV = cvs_cv_func_printf_ptr=yes
  12. CVS_CONFIGURE_ARGS = --disable-old-info-format-support
  13. ifeq ($(BR2_PACKAGE_CVS_SERVER),y)
  14. CVS_CONFIGURE_ARGS += --enable-server
  15. else
  16. CVS_CONFIGURE_ARGS += --disable-server
  17. endif
  18. ifeq ($(BR2_PACKAGE_ZLIB),y)
  19. CVS_CONFIGURE_ARGS += --with-external-zlib
  20. endif
  21. CVS_CONF_OPTS = $(CVS_CONFIGURE_ARGS)
  22. define CVS_BZIP_UNPACK
  23. $(BZCAT) $(@D)/cvs-$(CVS_VERSION).tar.bz2 | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
  24. rm -f $(@D)/cvs-$(CVS_VERSION).tar.bz2
  25. endef
  26. CVS_POST_PATCH_HOOKS += CVS_BZIP_UNPACK
  27. ifneq ($(CVS_PATCH),)
  28. define CVS_DEBIAN_PATCHES
  29. if [ -d $(@D)/debian/patches ]; then \
  30. (cd $(@D)/debian/patches && for i in *; \
  31. do $(SED) 's,^\+\+\+ .*cvs-$(CVS_VERSION)/,+++ cvs-$(CVS_VERSION)/,' $$i; \
  32. done; \
  33. ); \
  34. support/scripts/apply-patches.sh $(@D) $(@D)/debian/patches \*; \
  35. fi
  36. endef
  37. endif
  38. CVS_POST_PATCH_HOOKS += CVS_DEBIAN_PATCHES
  39. define CVS_INSTALL_TARGET_CMDS
  40. $(INSTALL) -D $(@D)/src/cvs $(TARGET_DIR)/usr/bin/cvs
  41. endef
  42. $(eval $(autotools-package))