X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage3%2Fpatches%2Fcommon%2Fcolordiff-1.0.10-inst-prefix.patch;fp=stage3%2Fpatches%2Fcommon%2Fcolordiff-1.0.10-inst-prefix.patch;h=0a671af281030899b4ebf2f3db53e91a00ca013c;hb=f17ab848cb756cad27489bf0c2746e5ead466658;hp=0000000000000000000000000000000000000000;hpb=a1358efe562a4e73ef23f25c606a346f684e1c93;p=hvlinux.git diff --git a/stage3/patches/common/colordiff-1.0.10-inst-prefix.patch b/stage3/patches/common/colordiff-1.0.10-inst-prefix.patch new file mode 100644 index 0000000..0a671af --- /dev/null +++ b/stage3/patches/common/colordiff-1.0.10-inst-prefix.patch @@ -0,0 +1,24 @@ +Submitted By: Hugo Villeneuve +Date: 2011-09-09 +Initial Package Version: 1.0.9 +Upstream Status: Not sent +Origin: Hugo Villeneuve +Description: Allow Makefile installation prefix to be set instead of + being hardcoded like this: + PREFIX=/usr make install + +diff -Naur colordiff-1.0.9.orig/Makefile colordiff-1.0.9.patched/Makefile +--- colordiff-1.0.9.orig/Makefile 2009-04-21 14:55:47.000000000 -0400 ++++ colordiff-1.0.9.patched/Makefile 2011-09-10 17:23:28.000000000 -0400 +@@ -1,5 +1,9 @@ +-INSTALL_DIR=/usr/local/bin +-MAN_DIR=/usr/local/man/man1 ++ifndef PREFIX ++PREFIX=/usr/local ++endif ++ ++INSTALL_DIR=$(PREFIX)/bin ++MAN_DIR=$(PREFIX)/man/man1 + ETC_DIR=/etc + VERSION=1.0.9 + DIST_FILES=COPYING INSTALL Makefile README \