blob: 77e1333ddc91edb3518e1bb4f503b84943038ed2 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001require gstreamer1.0-plugins-common.inc
2
Andrew Geissler6ce62a22020-11-30 19:58:47 -06003SRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-${PV}.tar.xz \
4 file://0001-qt-include-ext-qt-gstqtgl.h-instead-of-gst-gl-gstglf.patch \
5 file://0001-rpicamsrc-add-vchostif-library-as-it-is-required-to-.patch \
6 "
Andrew Geissler82c905d2020-04-13 13:39:40 -05007
Andrew Geissler6ce62a22020-11-30 19:58:47 -06008SRC_URI[sha256sum] = "e210e91a5590ecb6accc9d06c949a58ca6897d8edb3b3d55828e424c624f626c"
Andrew Geissler82c905d2020-04-13 13:39:40 -05009
10S = "${WORKDIR}/gst-plugins-good-${PV}"
11
12LICENSE = "GPLv2+ & LGPLv2.1+"
13LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \
Andrew Geissler82c905d2020-04-13 13:39:40 -050014 file://gst/replaygain/rganalysis.c;beginline=1;endline=23;md5=b60ebefd5b2f5a8e0cab6bfee391a5fe"
15
16DEPENDS += "gstreamer1.0-plugins-base libcap zlib"
17RPROVIDES_${PN}-pulseaudio += "${PN}-pulse"
18RPROVIDES_${PN}-soup += "${PN}-souphttpsrc"
19
20PACKAGECONFIG ??= " \
21 ${GSTREAMER_ORC} \
22 ${@bb.utils.filter('DISTRO_FEATURES', 'pulseaudio x11', d)} \
Andrew Geissler6ce62a22020-11-30 19:58:47 -060023 ${@bb.utils.contains('TUNE_FEATURES', 'm64', 'asm', '', d)} \
Andrew Geissler82c905d2020-04-13 13:39:40 -050024 bz2 cairo flac gdk-pixbuf gudev jpeg lame libpng mpg123 soup speex taglib v4l2 \
25"
26
27X11DEPENDS = "virtual/libx11 libsm libxrender libxfixes libxdamage"
28X11ENABLEOPTS = "-Dximagesrc=enabled -Dximagesrc-xshm=enabled -Dximagesrc-xfixes=enabled -Dximagesrc-xdamage=enabled"
29X11DISABLEOPTS = "-Dximagesrc=disabled -Dximagesrc-xshm=disabled -Dximagesrc-xfixes=disabled -Dximagesrc-xdamage=disabled"
30
Andrew Geissler6ce62a22020-11-30 19:58:47 -060031QT5WAYLANDDEPENDS = "${@bb.utils.contains("DISTRO_FEATURES", "wayland", "qtwayland", "", d)}"
32
33PACKAGECONFIG[asm] = "-Dasm=enabled,-Dasm=disabled,nasm-native"
Andrew Geissler82c905d2020-04-13 13:39:40 -050034PACKAGECONFIG[bz2] = "-Dbz2=enabled,-Dbz2=disabled,bzip2"
35PACKAGECONFIG[cairo] = "-Dcairo=enabled,-Dcairo=disabled,cairo"
36PACKAGECONFIG[dv1394] = "-Ddv1394=enabled,-Ddv1394=disabled,libiec61883 libavc1394 libraw1394"
37PACKAGECONFIG[flac] = "-Dflac=enabled,-Dflac=disabled,flac"
38PACKAGECONFIG[gdk-pixbuf] = "-Dgdk-pixbuf=enabled,-Dgdk-pixbuf=disabled,gdk-pixbuf"
39PACKAGECONFIG[gtk] = "-Dgtk3=enabled,-Dgtk3=disabled,gtk+3"
40PACKAGECONFIG[gudev] = "-Dv4l2-gudev=enabled,-Dv4l2-gudev=disabled,libgudev"
41PACKAGECONFIG[jack] = "-Djack=enabled,-Djack=disabled,jack"
42PACKAGECONFIG[jpeg] = "-Djpeg=enabled,-Djpeg=disabled,jpeg"
43PACKAGECONFIG[lame] = "-Dlame=enabled,-Dlame=disabled,lame"
44PACKAGECONFIG[libpng] = "-Dpng=enabled,-Dpng=disabled,libpng"
45PACKAGECONFIG[libv4l2] = "-Dv4l2-libv4l2=enabled,-Dv4l2-libv4l2=disabled,v4l-utils"
46PACKAGECONFIG[mpg123] = "-Dmpg123=enabled,-Dmpg123=disabled,mpg123"
47PACKAGECONFIG[pulseaudio] = "-Dpulse=enabled,-Dpulse=disabled,pulseaudio"
Andrew Geissler6ce62a22020-11-30 19:58:47 -060048PACKAGECONFIG[qt5] = "-Dqt5=enabled,-Dqt5=disabled,qtbase qtdeclarative qtbase-native ${QT5WAYLANDDEPENDS}"
Andrew Geissler82c905d2020-04-13 13:39:40 -050049PACKAGECONFIG[soup] = "-Dsoup=enabled,-Dsoup=disabled,libsoup-2.4"
50PACKAGECONFIG[speex] = "-Dspeex=enabled,-Dspeex=disabled,speex"
Andrew Geissler6ce62a22020-11-30 19:58:47 -060051PACKAGECONFIG[rpi] = "-Drpicamsrc=enabled,-Drpicamsrc=disabled,userland"
Andrew Geissler82c905d2020-04-13 13:39:40 -050052PACKAGECONFIG[taglib] = "-Dtaglib=enabled,-Dtaglib=disabled,taglib"
53PACKAGECONFIG[v4l2] = "-Dv4l2=enabled -Dv4l2-probe=true,-Dv4l2=disabled -Dv4l2-probe=false"
54PACKAGECONFIG[vpx] = "-Dvpx=enabled,-Dvpx=disabled,libvpx"
55PACKAGECONFIG[wavpack] = "-Dwavpack=enabled,-Dwavpack=disabled,wavpack"
56PACKAGECONFIG[x11] = "${X11ENABLEOPTS},${X11DISABLEOPTS},${X11DEPENDS}"
57
58EXTRA_OEMESON += " \
Andrew Geissler6ce62a22020-11-30 19:58:47 -060059 -Ddoc=disabled \
Andrew Geissler82c905d2020-04-13 13:39:40 -050060 -Daalib=disabled \
61 -Ddirectsound=disabled \
62 -Ddv=disabled \
63 -Dlibcaca=disabled \
64 -Doss=enabled \
65 -Doss4=disabled \
66 -Dosxaudio=disabled \
67 -Dosxvideo=disabled \
68 -Dshout2=disabled \
69 -Dtwolame=disabled \
70 -Dwaveform=disabled \
71"
72
73FILES_${PN}-equalizer += "${datadir}/gstreamer-1.0/presets/*.prs"