cvs.mk 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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+squeeze1.diff.gz
  9. CVS_SITE = http://snapshot.debian.org/archive/debian/20141023T043132Z/pool/main/c/cvs
  10. CVS_LICENSE = GPL-1.0+, LGPL-2.0+, LGPL-2.1+ (glob)
  11. CVS_LICENSE_FILES = COPYING COPYING.LIB lib/glob-libc.h
  12. CVS_CPE_ID_VENDOR = gnu
  13. CVS_SELINUX_MODULES = apache cvs
  14. CVS_DEPENDENCIES = ncurses
  15. CVS_CONF_ENV = \
  16. ac_cv_func_working_mktime=yes \
  17. cvs_cv_func_printf_ptr=yes
  18. CVS_CONF_OPTS = \
  19. --disable-old-info-format-support \
  20. --with-editor=/bin/vi
  21. ifeq ($(BR2_PACKAGE_CVS_SERVER),y)
  22. CVS_CONF_OPTS += --enable-server
  23. else
  24. CVS_CONF_OPTS += --disable-server
  25. endif
  26. ifeq ($(BR2_PACKAGE_ZLIB),y)
  27. CVS_CONF_OPTS += --with-external-zlib
  28. endif
  29. define CVS_BZIP_UNPACK
  30. $(BZCAT) $(@D)/cvs-$(CVS_VERSION).tar.bz2 | $(TAR) -C $(BUILD_DIR) $(TAR_OPTIONS) -
  31. rm -f $(@D)/cvs-$(CVS_VERSION).tar.bz2
  32. endef
  33. CVS_POST_PATCH_HOOKS += CVS_BZIP_UNPACK
  34. ifneq ($(CVS_PATCH),)
  35. define CVS_DEBIAN_PATCHES
  36. if [ -d $(@D)/debian/patches ]; then \
  37. (cd $(@D)/debian/patches && for i in *; \
  38. do $(SED) 's,^\+\+\+ .*cvs-$(CVS_VERSION)/,+++ cvs-$(CVS_VERSION)/,' $$i; \
  39. done; \
  40. ); \
  41. $(APPLY_PATCHES) $(@D) $(@D)/debian/patches \*; \
  42. fi
  43. endef
  44. endif
  45. CVS_POST_PATCH_HOOKS += CVS_DEBIAN_PATCHES
  46. define CVS_INSTALL_TARGET_CMDS
  47. $(INSTALL) -D $(@D)/src/cvs $(TARGET_DIR)/usr/bin/cvs
  48. endef
  49. $(eval $(autotools-package))