diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-07-13 22:14:38 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-07-13 22:14:38 +0200 |
commit | db3b11c8da59d0d16bc63041d60667a74e7b5375 (patch) | |
tree | c73012a0914d377e4461fad313b3df00210509d2 /package | |
parent | e8a4167dc40d50cc4a2818f2f692849c0538b54c (diff) |
add support for i2c-tools and kernel support on geode
Diffstat (limited to 'package')
-rw-r--r-- | package/i2c-tools/Makefile | 28 | ||||
-rw-r--r-- | package/i2c-tools/patches/patch-Makefile | 24 |
2 files changed, 52 insertions, 0 deletions
diff --git a/package/i2c-tools/Makefile b/package/i2c-tools/Makefile new file mode 100644 index 000000000..2e59b09ff --- /dev/null +++ b/package/i2c-tools/Makefile @@ -0,0 +1,28 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(TOPDIR)/rules.mk + +PKG_NAME:= i2c-tools +PKG_VERSION:= 3.0.2 +PKG_RELEASE:= 1 +PKG_MD5SUM:= b546345ac19db56719dea6b8199f11e0 +PKG_DESCR:= I2C tools for Linux +PKG_SECTION:= misc +PKG_URL:= http://www.lm-sensors.org/wiki/I2CTools +PKG_SITES:= http://dl.lm-sensors.org/i2c-tools/releases/ + +DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2 + +include $(TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,I2C_TOOLS,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +CONFIG_STYLE:= manual + +post-install: + $(INSTALL_DIR) $(IDIR_I2C_TOOLS)/usr/sbin + $(INSTALL_BIN) $(WRKINST)/usr/sbin/i2c* \ + $(IDIR_I2C_TOOLS)/usr/sbin + +include ${TOPDIR}/mk/pkg-bottom.mk 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 |