[oe] [PATCH] libplayer: Add libplayer hg.

Paul Menzel paulepanter at users.sourceforge.net
Fri Mar 19 14:42:08 UTC 2010


1. `--enable-pic` is needed for non-x86 architectures.
2. Put test programs in separate package `${PN}-bin`. Manual pages are in `${PN}-doc` though.
3. Build tested with GCC 4.4.3 and Binutils 2.20.1 for `MACHINE = "beagleboard"`.
4. Depend on `mplayer` and `gstreamer`. Dependencies for vlc- or xine-wrappers can be added if needed.
5. I did not use release 1.0.0 since `configure` in that version does not have the option `--enable-pic`.

Signed-off-by: Paul Menzel <paulepanter at users.sourceforge.net>
---
 recipes/libplayer/libplayer.inc   |   26 ++++++++++++++++++++++++++
 recipes/libplayer/libplayer_hg.bb |    9 +++++++++
 2 files changed, 35 insertions(+), 0 deletions(-)
 create mode 100644 recipes/libplayer/libplayer.inc
 create mode 100644 recipes/libplayer/libplayer_hg.bb

diff --git a/recipes/libplayer/libplayer.inc b/recipes/libplayer/libplayer.inc
new file mode 100644
index 0000000..a986a21
--- /dev/null
+++ b/recipes/libplayer/libplayer.inc
@@ -0,0 +1,26 @@
+DESCRIPTION = "libplayer is a multimedia A/V abstraction layer API. Its goal is to interact with Enna Media Center."
+HOMEPAGE = "http://libplayer.geexbox.org/"
+SECTION = "libs/multimedia"
+LICENSE = "LGPLv2.1+"
+DEPENDS = "mplayer gstreamer"
+
+INC_PR = "r0"
+
+SRC_URI = "http://libplayer.geexbox.org/releases/${P}.tar.bz2;name=${PN}"
+
+inherit autotools pkgconfig
+
+# the configure script is hand-crafted, it rejects some of the usual
+# configure arguments
+do_configure() {
+	${S}/configure \
+			--prefix=${prefix} \
+		--disable-strip \
+		--cross-compile \
+		--enable-pic \
+		--enable-doc
+}
+
+PACKAGES =+ "${PN}-bin"
+
+FILES_${PN}-bin = "${bindir}/*"
diff --git a/recipes/libplayer/libplayer_hg.bb b/recipes/libplayer/libplayer_hg.bb
new file mode 100644
index 0000000..a8ce5dc
--- /dev/null
+++ b/recipes/libplayer/libplayer_hg.bb
@@ -0,0 +1,9 @@
+require libplayer.inc
+PV = "1.0.0+1.1.0"
+PR = "${INC_PR}.0"
+
+SRCREV = "a628f49d952a"
+
+SRC_URI = "hg://hg.geexbox.org;module=${PN};rev=${SRCREV}"
+
+S = "${WORKDIR}/${PN}"
-- 
1.7.0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20100319/39ef4d67/attachment-0002.sig>


More information about the Openembedded-devel mailing list