From a210582942d6a2c91e69043b2e1a61f2b61ad29c Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 9 Jan 2016 09:55:00 +0100 Subject: add new package py-spidev, submitted by Mike Thompson , minor cleanup by me --- package/py-spidev/Makefile | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 package/py-spidev/Makefile (limited to 'package/py-spidev/Makefile') diff --git a/package/py-spidev/Makefile b/package/py-spidev/Makefile new file mode 100644 index 000000000..2276e9a91 --- /dev/null +++ b/package/py-spidev/Makefile @@ -0,0 +1,37 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(ADK_TOPDIR)/rules.mk + +PKG_NAME:= py-spidev +PKG_VERSION:= 1c713aaaad1f611d675d9188d2d5a6401fbb8843 +PKG_RELEASE:= 1 +PKG_DESCR:= module for interfacing with spi devices from user space via the spidev linux kernel driver +PKG_SECTION:= dev/python +PKG_DEPENDS:= python2 +PKG_BUILDDEP:= python2 +PKG_URL:= https://github.com/doceme/py-spidev +PKG_SITES:= https://github.com/doceme/py-spidev.git + +include $(ADK_TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,PY_SPIDEV,py-spidev,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION))) + +include $(ADK_TOPDIR)/mk/python.mk + +CONFIG_STYLE:= manual +BUILD_STYLE:= manual +INSTALL_STYLE:= manual + +MAKE_ENV+= LDSHARED="$(TARGET_CC) -shared" + +do-build: + cd $(WRKBUILD); env PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py install --prefix="$(WRKINST)/usr" + +do-install: + $(INSTALL_DIR) $(IDIR_PY_SPIDEV)/usr/lib/python$(PYTHON_VERSION)/site-packages + $(CP) $(WRKINST)/usr/lib/python$(PYTHON_VERSION)/site-packages/* \ + $(IDIR_PY_SPIDEV)/usr/lib/python$(PYTHON_VERSION)/site-packages + +include $(ADK_TOPDIR)/mk/pkg-bottom.mk + -- cgit v1.2.3