From: Alexander Kanavin <alexander.kanavin@linux.intel.com>
To: openembedded-devel@lists.openembedded.org
Cc: Alexander Kanavin <alex.kanavin@gmail.com>
Subject: [PATCH 1/4] python-gst: move it from oe-core to meta-multimedia
Date: Mon, 18 May 2015 17:12:45 +0300 [thread overview]
Message-ID: <1431958369-14668-2-git-send-email-alexander.kanavin@linux.intel.com> (raw)
In-Reply-To: <1431958369-14668-1-git-send-email-alexander.kanavin@linux.intel.com>
From: Alexander Kanavin <alex.kanavin@gmail.com>
This will allow removal of unsupported gstreamer 0.10 from oe-core
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
---
.../gstreamer/python-gst/python-path.patch | 28 +++++++++++++++++++++
.../gstreamer/python-gst_0.10.22.bb | 29 ++++++++++++++++++++++
2 files changed, 57 insertions(+)
create mode 100644 meta-multimedia/recipes-multimedia/gstreamer/python-gst/python-path.patch
create mode 100644 meta-multimedia/recipes-multimedia/gstreamer/python-gst_0.10.22.bb
diff --git a/meta-multimedia/recipes-multimedia/gstreamer/python-gst/python-path.patch b/meta-multimedia/recipes-multimedia/gstreamer/python-gst/python-path.patch
new file mode 100644
index 0000000..21b5bbf
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/gstreamer/python-gst/python-path.patch
@@ -0,0 +1,28 @@
+Upstream-Status:Pending
+
+Index: gst-python-0.10.19/acinclude.m4
+===================================================================
+--- gst-python-0.10.19.orig/acinclude.m4 2010-04-21 15:23:44.000000000 -0700
++++ gst-python-0.10.19/acinclude.m4 2010-11-15 14:43:00.642994001 -0800
+@@ -43,6 +43,13 @@
+ [AC_REQUIRE([AM_PATH_PYTHON])
+ AC_MSG_CHECKING(for headers required to compile python extensions)
+ dnl deduce PYTHON_INCLUDES
++
++AC_ARG_WITH(python-includes,
++ [ --with-python-includes=DIR path to Python includes], py_exec_prefix=$withval)
++if test x$py_exec_prefix != x; then
++PYTHON_INCLUDES="-I${py_exec_prefix}/include/python${PYTHON_VERSION}"
++py_prefix="${py_exec_prefix}"
++else
+ py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
+ py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
+ if $PYTHON-config --help 2>/dev/null; then
+@@ -53,6 +60,7 @@
+ PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
+ fi
+ fi
++fi
+ AC_SUBST(PYTHON_INCLUDES)
+ dnl check if the headers exist:
+ save_CPPFLAGS="$CPPFLAGS"
diff --git a/meta-multimedia/recipes-multimedia/gstreamer/python-gst_0.10.22.bb b/meta-multimedia/recipes-multimedia/gstreamer/python-gst_0.10.22.bb
new file mode 100644
index 0000000..2a5f2b3
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/gstreamer/python-gst_0.10.22.bb
@@ -0,0 +1,29 @@
+SUMMARY = "Python bindings for the GStreamer multimedia framework"
+SECTION = "devel/python"
+LICENSE = "LGPLv2.1"
+DEPENDS = "gstreamer gst-plugins-base python-pygobject"
+RDEPENDS_${PN} += "python-pygtk"
+PR = "r2"
+
+SRC_URI = "http://gstreamer.freedesktop.org/src/gst-python/gst-python-${PV}.tar.bz2 \
+ file://python-path.patch"
+
+SRC_URI[md5sum] = "937152fe896241f827689f4b53e79b22"
+SRC_URI[sha256sum] = "8f26f519a5bccd770864317e098e5e307fc5ad1201eb96329634b6508b253178"
+S = "${WORKDIR}/gst-python-${PV}"
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=39ff67e932b7bdfa9b78bad67151690b"
+
+inherit autotools distutils-base pkgconfig
+
+EXTRA_OECONF += "--with-python-includes=${STAGING_INCDIR}/../"
+
+FILES_${PN} += "${datadir}/gst-python"
+FILES_${PN}-dev += "${datadir}/gst-python/0.10/defs"
+FILES_${PN}-dbg += "${libdir}/${PYTHON_DIR}/site-packages/gst-0.10/gst/.debug/ ${libdir}/gstreamer-0.10/.debug/"
+
+do_configure_prepend() {
+ if [ `find ${STAGING_LIBDIR} -name libpython*.so` ]; then
+ ln -sf ${STAGING_LIBDIR}/libpython*.so `find ${STAGING_LIBDIR} -name libpython*.a -exec dirname {} \;`
+ fi
+}
--
2.1.4
next prev parent reply other threads:[~2015-05-18 14:12 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-18 14:12 [PATCH 0/4] Add GStreamer 0.10 and things that depend on it from oe-core Alexander Kanavin
2015-05-18 14:12 ` Alexander Kanavin [this message]
2015-05-18 14:12 ` [PATCH 2/4] recipes-qt: move qt-mobility from oe-core to meta-oe Alexander Kanavin
2015-05-18 14:12 ` [PATCH 3/4] recipes-multimedia: add gstreamer-0.10 recipes Alexander Kanavin
2015-05-18 14:12 ` [PATCH 4/4] Rename gstreamer directory to gstreamer-0.10 Alexander Kanavin
2015-05-18 14:16 ` Carlos Rafael Giani
2015-05-18 14:24 ` Alexander Kanavin
2015-05-18 16:58 ` Burton, Ross
2015-05-21 11:06 ` [PATCH 0/4] Add GStreamer 0.10 and things that depend on it from oe-core Martin Jansa
2015-05-21 13:33 ` Alexander Kanavin
2015-05-21 13:48 ` Martin Jansa
2015-05-21 14:02 ` Alexander Kanavin
2015-05-21 14:11 ` Martin Jansa
2015-05-21 14:19 ` Alexander Kanavin
2015-05-22 16:11 ` akuster808
2015-05-22 16:30 ` Burton, Ross
2015-05-25 16:39 ` akuster808
2015-05-26 9:01 ` Burton, Ross
2015-05-26 12:26 ` Alexander Kanavin
2015-06-05 8:40 ` Huang, Jie (Jackie)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1431958369-14668-2-git-send-email-alexander.kanavin@linux.intel.com \
--to=alexander.kanavin@linux.intel.com \
--cc=alex.kanavin@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox