From 0d4320f305770c2fdf17f90972b3d76232a08bbf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Adam=20Go=C5=82=C4=99biowski?= Date: Thu, 11 Dec 2008 08:18:55 +0000 Subject: [PATCH] - use system git instead of trying to build local copy Changed files: cgit-system-git.patch -> 1.1 --- cgit-system-git.patch | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 cgit-system-git.patch diff --git a/cgit-system-git.patch b/cgit-system-git.patch new file mode 100644 index 0000000..33f2991 --- /dev/null +++ b/cgit-system-git.patch @@ -0,0 +1,39 @@ +diff -burN cgit-0.8.1.orig/Makefile cgit-0.8.1/Makefile +--- cgit-0.8.1.orig/Makefile 2008-12-10 09:59:24.000000000 +0100 ++++ cgit-0.8.1/Makefile 2008-12-10 10:03:03.000000000 +0100 +@@ -6,6 +6,7 @@ + SHA1_HEADER = + GIT_VER = 1.6.0.2 + GIT_URL = http://www.kernel.org/pub/software/scm/git/git-$(GIT_VER).tar.bz2 ++LIBDIR = /usr/lib + + # + # Let the user override the above settings. +@@ -46,7 +47,7 @@ + $(QUIET_CC)$(CC) -o $*.o -c $(CFLAGS) $< + + +-EXTLIBS = git/libgit.a git/xdiff/lib.a -lz -lcrypto ++EXTLIBS = $(LIBDIR)/libgit.a $(LIBDIR)/libgit_xdiff.a -lz -lcrypto + OBJECTS = + OBJECTS += cache.o + OBJECTS += cgit.o +@@ -97,17 +98,13 @@ + CFLAGS += -DNO_ICONV + endif + +-cgit: $(OBJECTS) libgit ++cgit: $(OBJECTS) + $(QUIET_CC)$(CC) $(CFLAGS) $(LDFLAGS) -o cgit $(OBJECTS) $(EXTLIBS) + + cgit.o: VERSION + + -include $(OBJECTS:.o=.d) + +-libgit: +- $(QUIET_SUBDIR0)git $(QUIET_SUBDIR1) libgit.a +- $(QUIET_SUBDIR0)git $(QUIET_SUBDIR1) xdiff/lib.a +- + test: all + $(QUIET_SUBDIR0)tests $(QUIET_SUBDIR1) all + -- 2.43.0