DESCRIPTION = "A media player for Openmoko"
SECTION = "openmoko/tools"
DEPENDS = "libmokoui2 expat gstreamer libspiff curl tslib"
RDEPENDS = "gst-meta-audio gconf openmoko-sound-system2"
PV = "0.1.0+svnr${SRCREV}"
PR = "r4"

inherit openmoko2

FILES_${PN} += "${datadir}/openmoko-mediaplayer"

do_install_append() {
	install -d ${D}${sysconfdir}/gconf/schemas
	install -m 0644 ${S}/openmoko-mediaplayer.schemas ${D}${sysconfdir}/gconf/schemas/openmoko-mediaplayer.schemas
}

pkg_postinst_openmoko-mediaplayer2 () {
#!/bin/sh -e
if [ "x$D" != "x" ]; then
    exit 1
fi

export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-install-rule ${sysconfdir}/gconf/schemas/openmoko-mediaplayer.schemas > /dev/null
}
