summaryrefslogtreecommitdiff
path: root/package/cvs
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-09-09 04:36:23 +0000
committerMike Frysinger <vapier@gentoo.org>2005-09-09 04:36:23 +0000
commitc94c036b11f5cfc303af164fe277194f77a7985a (patch)
tree0cae76d74f0349c053942ba188ae627d8e8060ef /package/cvs
parent24bc013e494990b191cfed927806d2adf5776118 (diff)
cvs package
Diffstat (limited to 'package/cvs')
-rw-r--r--package/cvs/Config.in7
-rw-r--r--package/cvs/cvs.mk57
2 files changed, 64 insertions, 0 deletions
diff --git a/package/cvs/Config.in b/package/cvs/Config.in
new file mode 100644
index 000000000..21a8b618d
--- /dev/null
+++ b/package/cvs/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_CVS
+ bool "cvs"
+ default n
+ help
+ Concurrent Versions System - source code revision control tools.
+
+ http://www.cvshome.org/
diff --git a/package/cvs/cvs.mk b/package/cvs/cvs.mk
new file mode 100644
index 000000000..e31d95d04
--- /dev/null
+++ b/package/cvs/cvs.mk
@@ -0,0 +1,57 @@
+#############################################################
+#
+# cvs
+#
+#############################################################
+CVS_VER:=1.12.12
+CVS_SOURCE:=cvs-$(CVS_VER).tar.bz2
+CVS_SITE:=http://ccvs.cvshome.org/files/documents/19/872/$(CVS_SOURCE)
+CVS_DIR:=$(BUILD_DIR)/cvs-$(CVS_VER)
+CVS_CAT:=bzcat
+CVS_BINARY:=src/cvs
+CVS_TARGET_BINARY:=usr/bin/cvs
+
+$(DL_DIR)/$(CVS_SOURCE):
+ $(WGET) -P $(DL_DIR) $(CVS_SITE)/$(CVS_SOURCE)
+
+$(CVS_DIR)/.unpacked: $(DL_DIR)/$(CVS_SOURCE)
+ $(CVS_CAT) $(DL_DIR)/$(CVS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ touch $(CVS_DIR)/.unpacked
+
+$(CVS_DIR)/.configured: $(CVS_DIR)/.unpacked
+ (cd $(CVS_DIR); rm -rf config.cache; \
+ $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD=$(HOSTCC) \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ cvs_cv_func_printf_ptr=yes \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --prefix=/usr \
+ );
+ touch $(CVS_DIR)/.configured
+
+$(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)
+ $(STRIP) $(TARGET_DIR)/$(CVS_TARGET_BINARY)
+
+cvs: uclibc ncurses $(TARGET_DIR)/$(CVS_TARGET_BINARY)
+
+cvs-clean:
+ rm -f $(TARGET_DIR)/$(CVS_TARGET_BINARY)
+ -$(MAKE) -C $(CVS_DIR) clean
+
+cvs-dirclean:
+ rm -rf $(CVS_DIR)
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_CVS)),y)
+TARGETS+=cvs
+endif