cvs.mk 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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_OPT = $(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. toolchain/patch-kernel.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 $(call AUTOTARGETS,package,cvs))