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
7 PKG_VERSION
:= 1c713aaaad1f611d675d9188d2d5a6401fbb8843
10 PKG_DESCR
:= module for interfacing with spi devices from user space via the spidev linux kernel driver
11 PKG_SECTION
:= dev
/python
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
25 INSTALL_STYLE
:= manual
27 MAKE_ENV
+= LDSHARED
="$(TARGET_CC) -shared"
30 cd
$(WRKBUILD
); env PYTHONPATH
=$(PYTHON_LIBDIR
) $(PYTHON
) .
/setup.py
install --prefix="$(WRKINST)/usr"
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