summaryrefslogtreecommitdiff
path: root/package/i2c-tools/patches/patch-Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-07-14 19:58:43 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-07-14 19:58:43 +0200
commit4cfceb141c0770aa37123fde6fc26c28283314ad (patch)
tree8973da1d99561d6ede8c4c69253d528a70e197f8 /package/i2c-tools/patches/patch-Makefile
parent3b76e79f14e279a6526809e630e45e4f760d77de (diff)
parentba4b6056da30ddb19809b72309a009a1c84a7656 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/i2c-tools/patches/patch-Makefile')
-rw-r--r--package/i2c-tools/patches/patch-Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/package/i2c-tools/patches/patch-Makefile b/package/i2c-tools/patches/patch-Makefile
new file mode 100644
index 000000000..6997b4de1
--- /dev/null
+++ b/package/i2c-tools/patches/patch-Makefile
@@ -0,0 +1,24 @@
+--- i2c-tools-3.0.2.orig/Makefile 2007-11-01 18:54:57.000000000 +0100
++++ i2c-tools-3.0.2/Makefile 2010-07-13 21:44:41.807074577 +0200
+@@ -4,8 +4,8 @@
+ #
+ # Licensed under the GNU General Public License.
+
+-DESTDIR =
+-prefix = /usr/local
++DESTDIR ?=
++prefix = /usr
+ bindir = $(prefix)/bin
+ sbindir = $(prefix)/sbin
+ mandir = $(prefix)/share/man
+@@ -18,8 +18,8 @@ INSTALL_DIR := $(INSTALL) -m 755 -d
+ INSTALL_PROGRAM := $(INSTALL) -m 755
+ RM := rm -f
+
+-CC := gcc
+-CFLAGS := -Wall
++CC ?= gcc
++CFLAGS ?= -Wall
+
+ CFLAGS += -O2
+ # When debugging, use the following instead