2018-07-16 20:45:36 +02:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
2011-01-09 18:45:17 +01:00
|
|
|
|
2010-11-15 17:29:00 +01:00
|
|
|
PKG_NAME="dbus-python"
|
2018-05-28 02:41:52 +01:00
|
|
|
PKG_VERSION="1.2.8"
|
|
|
|
|
PKG_SHA256="abf12bbb765e300bf8e2a1b2f32f85949eab06998dbda127952c31cb63957b6f"
|
2010-11-15 17:29:00 +01:00
|
|
|
PKG_LICENSE="GPL"
|
2016-02-07 23:13:01 +01:00
|
|
|
PKG_SITE="https://freedesktop.org/wiki/Software/dbus"
|
|
|
|
|
PKG_URL="https://dbus.freedesktop.org/releases/dbus-python/$PKG_NAME-$PKG_VERSION.tar.gz"
|
2017-10-08 23:50:38 +01:00
|
|
|
PKG_DEPENDS_TARGET="toolchain Python2 dbus dbus-glib"
|
2018-10-22 15:06:12 +02:00
|
|
|
PKG_LONGDESC="D-BUS is a message bus, used for sending messages between applications."
|
2018-05-30 15:54:29 +02:00
|
|
|
PKG_BUILD_FLAGS="+lto"
|
2014-01-21 17:23:10 +01:00
|
|
|
|
2016-03-10 12:41:59 +01:00
|
|
|
pre_configure_target() {
|
2017-10-08 23:50:38 +01:00
|
|
|
export PYTHON_CONFIG="$SYSROOT_PREFIX/usr/bin/python2-config"
|
2016-03-10 12:41:59 +01:00
|
|
|
export PYTHON_INCLUDES="$($SYSROOT_PREFIX/usr/bin/python2-config --includes)"
|
|
|
|
|
export PYTHON_LIBS="$($SYSROOT_PREFIX/usr/bin/python2-config --ldflags)"
|
|
|
|
|
}
|
|
|
|
|
|
2014-01-21 17:23:10 +01:00
|
|
|
post_makeinstall_target() {
|
|
|
|
|
find $INSTALL/usr/lib -name "*.py" -exec rm -rf "{}" ";"
|
|
|
|
|
find $INSTALL/usr/lib -name "*.pyc" -exec rm -rf "{}" ";"
|
|
|
|
|
}
|