2011-01-09 18:45:17 +01:00
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
2016-01-02 17:29:56 +01:00
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
2011-01-09 18:45:17 +01:00
#
2013-12-21 21:51:48 +01:00
# OpenELEC is free software: you can redistribute it and/or modify
2011-01-09 18:45:17 +01:00
# it under the terms of the GNU General Public License as published by
2013-12-21 21:51:48 +01:00
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
2011-01-09 18:45:17 +01:00
#
2013-12-21 21:51:48 +01:00
# OpenELEC is distributed in the hope that it will be useful,
2011-01-09 18:45:17 +01:00
# but WITHOUT ANY WARRANTY; without even the implied warranty of
2013-12-21 21:51:48 +01:00
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2011-01-09 18:45:17 +01:00
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
2013-12-21 21:51:48 +01:00
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
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_ARCH = "any"
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"
2010-11-15 17:29:00 +01:00
PKG_SECTION = "python/system"
PKG_SHORTDESC = "dbus-python: A message bus system"
PKG_LONGDESC = "D-BUS is a message bus, used for sending messages between applications. Conceptually, it fits somewhere in between raw sockets and CORBA in terms of complexity. D-BUS supports broadcast messages, asynchronous messages (thus decreasing latency), authentication, and more. It is designed to be low-overhead; messages are sent using a binary protocol, not using XML. D-BUS also supports a method call mapping for its messages, but it is not required; this makes using the system quite simple."
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
p r e _ c o n f i g u r e _ t a r g e t ( ) {
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
p o s t _ m a k e i n s t a l l _ t a r g e t ( ) {
find $INSTALL /usr/lib -name "*.py" -exec rm -rf "{}" ";"
find $INSTALL /usr/lib -name "*.pyc" -exec rm -rf "{}" ";"
}