mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
lg-gpio: Don't use distutilscross
This commit is contained in:
parent
4e209de48d
commit
7aa2153ada
@ -7,15 +7,13 @@ PKG_SHA256="b08d8569d6dc8fa91a42ba1e37f620fdcb19d6bf2330e4b7d7301431ddbe124c"
|
||||
PKG_LICENSE="Unlicense"
|
||||
PKG_SITE="http://abyz.me.uk/lg/"
|
||||
PKG_URL="https://github.com/joan2937/lg/archive/v${PKG_VERSION}.tar.gz"
|
||||
PKG_DEPENDS_TARGET="toolchain Python3 swig:host distutilscross:host"
|
||||
PKG_DEPENDS_TARGET="toolchain Python3 swig:host"
|
||||
PKG_LONGDESC="A library for Linux Single Board Computers (SBC) which allows control of the General Purpose Input Outputs (GPIO)"
|
||||
PKG_TOOLCHAIN="manual"
|
||||
|
||||
pre_configure_target() {
|
||||
export PYTHONXCPREFIX="${SYSROOT_PREFIX}/usr"
|
||||
export CFLAGS="${CFLAGS} -I${PKG_BUILD}"
|
||||
export LDFLAGS="${CFLAGS} -L${PKG_BUILD}"
|
||||
export LDSHARED="${CC} -shared"
|
||||
}
|
||||
|
||||
make_target() {
|
||||
@ -23,6 +21,6 @@ make_target() {
|
||||
(
|
||||
cd PY_LGPIO
|
||||
swig -python lgpio.i
|
||||
python setup.py build
|
||||
python_target_env python setup.py build
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user