blob: b3074b0d2434a12589958d0731770bdc365a0386 [file] [log] [blame]
Mike Frysingerc94c0362005-09-09 04:36:23 +00001#############################################################
2#
3# cvs
4#
5#############################################################
Martin Banky82ab8b32010-09-26 00:13:57 -07006CVS_VERSION = 1.12.13
7CVS_SOURCE = cvs_$(CVS_VERSION).orig.tar.gz
8CVS_PATCH = cvs_$(CVS_VERSION)-12.diff.gz
9CVS_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/c/cvs/
10CVS_DEPENDENCIES = ncurses
Mike Frysingerc94c0362005-09-09 04:36:23 +000011
Martin Banky82ab8b32010-09-26 00:13:57 -070012CVS_CONF_ENV = cvs_cv_func_printf_ptr=yes
13
14CVS_CONFIGURE_ARGS=--disable-old-info-format-support
Bernhard Reutner-Fischer8ff8fa72007-02-06 11:22:50 +000015ifeq ($(BR2_PACKAGE_CVS_SERVER),y)
16CVS_CONFIGURE_ARGS+=--enable-server
17else
18CVS_CONFIGURE_ARGS+=--disable-server
19endif
20ifeq ($(BR2_PACKAGE_ZLIB),y)
21CVS_CONFIGURE_ARGS+=--with-external-zlib
22endif
23
Martin Banky82ab8b32010-09-26 00:13:57 -070024CVS_CONF_OPT = $(CVS_CONFIGURE_ARGS)
25
26define CVS_BZIP_UNPACK
27 $(BZCAT) $(@D)/cvs-$(CVS_VERSION).tar.bz2 | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
28 rm -f $(@D)/cvs-$(CVS_VERSION).tar.bz2
29endef
30
31CVS_POST_PATCH_HOOKS += CVS_BZIP_UNPACK
Mike Frysingerc94c0362005-09-09 04:36:23 +000032
Bernhard Reutner-Fischer647dbee2007-05-08 15:17:41 +000033ifneq ($(CVS_PATCH),)
Martin Banky82ab8b32010-09-26 00:13:57 -070034define CVS_DEBIAN_PATCHES
35 if [ -d $(@D)/debian/patches ]; then \
36 (cd $(@D)/debian/patches && for i in *; \
Bernhard Reutner-Fischer956d3eb2007-08-22 09:56:41 +000037 do $(SED) 's,^\+\+\+ .*cvs-$(CVS_VERSION)/,+++ cvs-$(CVS_VERSION)/,' $$i; \
38 done; \
39 ); \
Thomas Petazzoni59a326b2011-08-31 23:35:04 +020040 support/scripts/apply-patches.sh $(@D) $(@D)/debian/patches \*; \
Bernhard Reutner-Fischer8ff8fa72007-02-06 11:22:50 +000041 fi
Martin Banky82ab8b32010-09-26 00:13:57 -070042endef
Bernhard Reutner-Fischer8ff8fa72007-02-06 11:22:50 +000043endif
Mike Frysingerc94c0362005-09-09 04:36:23 +000044
Martin Banky82ab8b32010-09-26 00:13:57 -070045CVS_POST_PATCH_HOOKS += CVS_DEBIAN_PATCHES
Mike Frysingerc94c0362005-09-09 04:36:23 +000046
Martin Banky82ab8b32010-09-26 00:13:57 -070047define CVS_INSTALL_TARGET_CMDS
48 install -D $(@D)/src/cvs $(TARGET_DIR)/usr/bin/cvs
49endef
Mike Frysingerc94c0362005-09-09 04:36:23 +000050
Thomas Petazzoni300f9c92011-09-29 21:57:43 +020051$(eval $(call AUTOTARGETS))
Mike Frysingerc94c0362005-09-09 04:36:23 +000052
Mike Frysingerc94c0362005-09-09 04:36:23 +000053