X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/59f0d218a6ff34c80cf898f6d7ac62555ba8eb11..197daca251715e518bb8367c8e32a7c5fa99f9ea:/packages/git/makefile.patch diff --git a/packages/git/makefile.patch b/packages/git/makefile.patch index dd272e26..9790a151 100644 --- a/packages/git/makefile.patch +++ b/packages/git/makefile.patch @@ -1,11 +1,16 @@ -diff -u -r ../git-2.1.0/Makefile ./Makefile ---- ../git-2.1.0/Makefile 2014-08-16 00:26:55.000000000 +0200 -+++ ./Makefile 2014-08-20 18:23:54.348764528 +0200 -@@ -1504,7 +1504,6 @@ - - ifdef HAVE_CLOCK_GETTIME - BASIC_CFLAGS += -DHAVE_CLOCK_GETTIME -- EXTLIBS += -lrt - endif - - ifeq ($(TCLTK_PATH),) +The Termux git package installs git perl files to $PREFIX/share/git-perl +by patching perl/Makefile.PL, so setup that path when building perl +files in this Makefile. + +diff -u -r ../git-2.7.4/Makefile ./Makefile +--- ../git-2.7.4/Makefile 2016-03-17 16:47:59.000000000 -0400 ++++ ./Makefile 2016-03-24 22:46:20.335193973 -0400 +@@ -1789,7 +1788,7 @@ + sed -e '1{' \ + -e ' s|#!.*perl|#!$(PERL_PATH_SQ)|' \ + -e ' h' \ +- -e ' s=.*=use lib (split(/$(pathsep)/, $$ENV{GITPERLLIB} || "'"$$INSTLIBDIR"'"));=' \ ++ -e ' s=.*=use lib (split(/$(pathsep)/, $$ENV{GITPERLLIB} || "'"@TERMUX_PREFIX@/share/git-perl"'"));=' \ + -e ' H' \ + -e ' x' \ + -e '}' \