binutils: update to 2.43.1
[openadk.git] / package / py-spidev / Makefile
blobaa9a6ea84920a6328fae922c3c3d10de71fc9e1e
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= py-spidev
7 PKG_VERSION:= 1c713aaaad1f611d675d9188d2d5a6401fbb8843
8 PKG_RELEASE:= 1
9 PKG_GIT:= hash
10 PKG_DESCR:= module for interfacing with spi devices from user space via the spidev linux kernel driver
11 PKG_SECTION:= dev/python
12 PKG_DEPENDS:= python3
13 PKG_BUILDDEP:= python3
14 PKG_URL:= https://github.com/doceme/py-spidev
15 PKG_SITES:= https://github.com/doceme/py-spidev.git
17 include $(ADK_TOPDIR)/mk/package.mk
19 $(eval $(call PKG_template,PY_SPIDEV,py-spidev,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
21 include $(ADK_TOPDIR)/mk/python3.mk
23 CONFIG_STYLE:= manual
24 BUILD_STYLE:= manual
25 INSTALL_STYLE:= manual
27 MAKE_ENV+= LDSHARED="$(TARGET_CC) -shared"
29 do-build:
30 cd $(WRKBUILD); env PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py install --prefix="$(WRKINST)/usr"
32 do-install:
33 $(INSTALL_DIR) $(IDIR_PY_SPIDEV)/usr/lib/python$(PYTHON_VERSION)/site-packages
34 $(CP) $(WRKINST)/usr/lib/python$(PYTHON_VERSION)/site-packages/* \
35 $(IDIR_PY_SPIDEV)/usr/lib/python$(PYTHON_VERSION)/site-packages
37 include $(ADK_TOPDIR)/mk/pkg-bottom.mk