Integrate patches inside git repository
[hvlinux.git] / stage3 / patches / common / colordiff-1.0.10-inst-prefix.patch
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 (file)
index 0000000..0a671af
--- /dev/null
@@ -0,0 +1,24 @@
+Submitted By: Hugo Villeneuve <hugo at hugovil dot com>
+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 \