2005-09-09 06:36:23 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# cvs
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
CVS_VERSION:=1.12.13
|
|
|
|
CVS_SOURCE:=cvs_$(CVS_VERSION).orig.tar.gz
|
|
|
|
CVS_PATCH:=cvs_$(CVS_VERSION)-8.diff.gz
|
2007-12-27 13:00:12 +01:00
|
|
|
CVS_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/c/cvs/
|
2007-07-11 16:06:06 +02:00
|
|
|
CVS_DIR:=$(BUILD_DIR)/cvs-$(CVS_VERSION)
|
2007-02-06 12:22:50 +01:00
|
|
|
CVS_CAT:=$(ZCAT)
|
2005-09-09 06:36:23 +02:00
|
|
|
CVS_BINARY:=src/cvs
|
|
|
|
CVS_TARGET_BINARY:=usr/bin/cvs
|
|
|
|
|
2007-02-06 12:22:50 +01:00
|
|
|
CVS_CONFIGURE_ARGS:=--disable-old-info-format-support
|
|
|
|
ifeq ($(BR2_PACKAGE_CVS_SERVER),y)
|
|
|
|
CVS_CONFIGURE_ARGS+=--enable-server
|
|
|
|
else
|
|
|
|
CVS_CONFIGURE_ARGS+=--disable-server
|
|
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
|
|
CVS_CONFIGURE_ARGS+=--with-external-zlib
|
|
|
|
endif
|
|
|
|
|
2005-09-09 06:36:23 +02:00
|
|
|
$(DL_DIR)/$(CVS_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(CVS_SITE)/$(CVS_SOURCE)
|
|
|
|
|
2007-05-08 17:17:41 +02:00
|
|
|
ifneq ($(CVS_PATCH),)
|
|
|
|
CVS_PATCH_FILE=$(DL_DIR)/$(CVS_PATCH)
|
|
|
|
$(CVS_PATCH_FILE):
|
2007-02-06 12:22:50 +01:00
|
|
|
$(WGET) -P $(DL_DIR) $(CVS_SITE)/$(CVS_PATCH)
|
2007-05-08 17:17:41 +02:00
|
|
|
endif
|
|
|
|
cvs-source: $(DL_DIR)/$(CVS_SOURCE) $(CVS_PATCH_FILE)
|
2007-02-06 12:22:50 +01:00
|
|
|
|
2007-05-08 17:17:41 +02:00
|
|
|
$(CVS_DIR)/.unpacked: $(DL_DIR)/$(CVS_SOURCE) $(CVS_PATCH_FILE)
|
2007-02-06 12:22:50 +01:00
|
|
|
-mkdir $(CVS_DIR)
|
|
|
|
$(CVS_CAT) $(DL_DIR)/$(CVS_SOURCE) | tar -C $(CVS_DIR) $(TAR_OPTIONS) -
|
2007-07-11 16:06:06 +02:00
|
|
|
$(BZCAT) $(CVS_DIR)/cvs-$(CVS_VERSION)/cvs-$(CVS_VERSION).tar.bz2 | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
|
|
|
rm -rf $(CVS_DIR)/cvs-$(CVS_VERSION)
|
2007-02-06 12:22:50 +01:00
|
|
|
$(CONFIG_UPDATE) $(CVS_DIR)
|
2008-02-12 01:35:03 +01:00
|
|
|
$(CONFIG_UPDATE) $(CVS_DIR)/build-aux
|
2007-07-11 16:06:06 +02:00
|
|
|
toolchain/patch-kernel.sh $(CVS_DIR) package/cvs \*$(CVS_VERSION)\*.patch
|
2007-02-06 12:22:50 +01:00
|
|
|
ifneq ($(CVS_PATCH),)
|
|
|
|
toolchain/patch-kernel.sh $(CVS_DIR) $(DL_DIR) $(CVS_PATCH)
|
|
|
|
if [ -d $(CVS_DIR)/debian/patches ]; then \
|
2007-08-22 11:56:41 +02:00
|
|
|
(cd $(CVS_DIR)/debian/patches && for i in *; \
|
|
|
|
do $(SED) 's,^\+\+\+ .*cvs-$(CVS_VERSION)/,+++ cvs-$(CVS_VERSION)/,' $$i; \
|
|
|
|
done; \
|
|
|
|
); \
|
|
|
|
toolchain/patch-kernel.sh $(CVS_DIR) $(CVS_DIR)/debian/patches \*; \
|
2007-02-06 12:22:50 +01:00
|
|
|
fi
|
|
|
|
endif
|
2007-05-08 17:17:41 +02:00
|
|
|
touch $@
|
2005-09-09 06:36:23 +02:00
|
|
|
|
|
|
|
$(CVS_DIR)/.configured: $(CVS_DIR)/.unpacked
|
|
|
|
(cd $(CVS_DIR); rm -rf config.cache; \
|
2007-01-14 04:52:21 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2005-09-09 06:36:23 +02:00
|
|
|
cvs_cv_func_printf_ptr=yes \
|
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
2007-02-06 12:22:50 +01:00
|
|
|
$(DISABLE_LARGEFILE) \
|
|
|
|
$(DISABLE_NLS) \
|
|
|
|
$(CVS_CONFIGURE_ARGS) \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2007-02-06 12:22:50 +01:00
|
|
|
touch $@
|
2005-09-09 06:36:23 +02:00
|
|
|
|
|
|
|
$(CVS_DIR)/$(CVS_BINARY): $(CVS_DIR)/.configured
|
|
|
|
$(MAKE) -C $(CVS_DIR)
|
|
|
|
|
|
|
|
$(TARGET_DIR)/$(CVS_TARGET_BINARY): $(CVS_DIR)/$(CVS_BINARY)
|
|
|
|
install -D $(CVS_DIR)/$(CVS_BINARY) $(TARGET_DIR)/$(CVS_TARGET_BINARY)
|
2007-10-01 18:15:31 +02:00
|
|
|
$(STRIPCMD) $(STRIP_STRIP_ALL) $(TARGET_DIR)/$(CVS_TARGET_BINARY)
|
2005-09-09 06:36:23 +02:00
|
|
|
|
|
|
|
cvs: uclibc ncurses $(TARGET_DIR)/$(CVS_TARGET_BINARY)
|
|
|
|
|
|
|
|
cvs-clean:
|
|
|
|
-$(MAKE) -C $(CVS_DIR) clean
|
2007-02-06 12:22:50 +01:00
|
|
|
rm -f $(TARGET_DIR)/$(CVS_TARGET_BINARY)
|
2005-09-09 06:36:23 +02:00
|
|
|
|
|
|
|
cvs-dirclean:
|
|
|
|
rm -rf $(CVS_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_CVS),y)
|
2005-09-09 06:36:23 +02:00
|
|
|
TARGETS+=cvs
|
|
|
|
endif
|