blob: f1783b768b9ac94e9770f705ae2c9624f70ab58b [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Plugins for the GStreamer multimedia framework 1.x"
2HOMEPAGE = "http://gstreamer.freedesktop.org/"
3BUGTRACKER = "https://bugzilla.gnome.org/enter_bug.cgi?product=Gstreamer"
4SECTION = "multimedia"
5DEPENDS = "gstreamer1.0"
6
7inherit autotools pkgconfig
8
9GSTREAMER_1_0_DEBUG ?= "--disable-debug"
10GSTREAMER_1_0_GIT_BRANCH ?= "master"
11EXTRA_OECONF = "--disable-valgrind ${GSTREAMER_1_0_DEBUG} --disable-examples "
12
13acpaths = "-I ${S}/common/m4 -I ${S}/m4"
14
15LIBV = "1.0"
16require gst-plugins-package.inc
17
18PACKAGECONFIG[orc] = "--enable-orc,--disable-orc,orc orc-native"
19
20export ORCC = "${STAGING_DIR_NATIVE}${bindir}/orcc"
21
22PACKAGES_DYNAMIC = "^${PN}-.*"
23
24# apply gstreamer hack after Makefile.in.in in source is replaced by our version from
25# ${STAGING_DATADIR_NATIVE}/gettext/po/Makefile.in.in, but before configure is executed
26# http://lists.linuxtogo.org/pipermail/openembedded-core/2012-November/032233.html
27oe_runconf_prepend() {
28 if [ -e ${S}/po/Makefile.in.in ]; then
29 sed -i -e "1a\\" -e 'GETTEXT_PACKAGE = @GETTEXT_PACKAGE@' ${S}/po/Makefile.in.in
30 fi
31}
32
33SRC_URI = "${@get_gst_srcuri(d)}"
34
35def get_gst_srcuri(d):
36 # check if expected prefix is present
37 prefix = "gstreamer1.0-"
38 bpn = d.getVar("BPN", True)
39 if not bpn.startswith(prefix):
40 bb.fatal('Invalid GStreamer 1.0 plugin package name "%s" : must start with "%s"' % (bpn, prefix))
41
42 # replaced prefix with "gst-", which is what is used for the tarball and repository filenames
43 gstpkg_basename = "gst-" + bpn[len(prefix):]
44 pv = d.getVar("PV", True)
45 branch = d.getVar("GSTREAMER_1_0_GIT_BRANCH", True)
46
47 if pv == "git":
48 s = "git://anongit.freedesktop.org/gstreamer/%s;branch=%s" % (gstpkg_basename, branch)
49 else:
50 s = "http://gstreamer.freedesktop.org/src/%s/%s-%s.tar.xz" % (gstpkg_basename, gstpkg_basename, pv)
51 return s
52
53delete_liblink_m4_file() {
54 # This m4 file contains nastiness which conflicts with libtool 2.2.2
55 rm "${S}/m4/lib-link.m4" || true
56}
57
58do_configure[prefuncs] += " delete_liblink_m4_file "
59