blob: 7643e9e6018630773d87b6567877053dfb3df35a [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 \
Andrew Geissler6ce62a22020-11-30 19:58:47 -06005 "
Andrew Geissler82c905d2020-04-13 13:39:40 -05006
Andrew Geisslerd1e89492021-02-12 15:35:20 -06007SRC_URI[sha256sum] = "9b3b8e05d4d6073bf929fb33e2d8f74dd81ff21fa5b50c3273c78dfa2ab9c5cb"
Andrew Geissler82c905d2020-04-13 13:39:40 -05008
9S = "${WORKDIR}/gst-plugins-good-${PV}"
10
11LICENSE = "GPLv2+ & LGPLv2.1+"
12LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \
Andrew Geissler82c905d2020-04-13 13:39:40 -050013 file://gst/replaygain/rganalysis.c;beginline=1;endline=23;md5=b60ebefd5b2f5a8e0cab6bfee391a5fe"
14
15DEPENDS += "gstreamer1.0-plugins-base libcap zlib"
16RPROVIDES_${PN}-pulseaudio += "${PN}-pulse"
17RPROVIDES_${PN}-soup += "${PN}-souphttpsrc"
18
19PACKAGECONFIG ??= " \
20 ${GSTREAMER_ORC} \
21 ${@bb.utils.filter('DISTRO_FEATURES', 'pulseaudio x11', d)} \
Andrew Geissler6ce62a22020-11-30 19:58:47 -060022 ${@bb.utils.contains('TUNE_FEATURES', 'm64', 'asm', '', d)} \
Andrew Geissler82c905d2020-04-13 13:39:40 -050023 bz2 cairo flac gdk-pixbuf gudev jpeg lame libpng mpg123 soup speex taglib v4l2 \
24"
25
26X11DEPENDS = "virtual/libx11 libsm libxrender libxfixes libxdamage"
27X11ENABLEOPTS = "-Dximagesrc=enabled -Dximagesrc-xshm=enabled -Dximagesrc-xfixes=enabled -Dximagesrc-xdamage=enabled"
28X11DISABLEOPTS = "-Dximagesrc=disabled -Dximagesrc-xshm=disabled -Dximagesrc-xfixes=disabled -Dximagesrc-xdamage=disabled"
29
Andrew Geissler6ce62a22020-11-30 19:58:47 -060030QT5WAYLANDDEPENDS = "${@bb.utils.contains("DISTRO_FEATURES", "wayland", "qtwayland", "", d)}"
31
32PACKAGECONFIG[asm] = "-Dasm=enabled,-Dasm=disabled,nasm-native"
Andrew Geissler82c905d2020-04-13 13:39:40 -050033PACKAGECONFIG[bz2] = "-Dbz2=enabled,-Dbz2=disabled,bzip2"
34PACKAGECONFIG[cairo] = "-Dcairo=enabled,-Dcairo=disabled,cairo"
35PACKAGECONFIG[dv1394] = "-Ddv1394=enabled,-Ddv1394=disabled,libiec61883 libavc1394 libraw1394"
36PACKAGECONFIG[flac] = "-Dflac=enabled,-Dflac=disabled,flac"
37PACKAGECONFIG[gdk-pixbuf] = "-Dgdk-pixbuf=enabled,-Dgdk-pixbuf=disabled,gdk-pixbuf"
38PACKAGECONFIG[gtk] = "-Dgtk3=enabled,-Dgtk3=disabled,gtk+3"
39PACKAGECONFIG[gudev] = "-Dv4l2-gudev=enabled,-Dv4l2-gudev=disabled,libgudev"
40PACKAGECONFIG[jack] = "-Djack=enabled,-Djack=disabled,jack"
41PACKAGECONFIG[jpeg] = "-Djpeg=enabled,-Djpeg=disabled,jpeg"
42PACKAGECONFIG[lame] = "-Dlame=enabled,-Dlame=disabled,lame"
43PACKAGECONFIG[libpng] = "-Dpng=enabled,-Dpng=disabled,libpng"
44PACKAGECONFIG[libv4l2] = "-Dv4l2-libv4l2=enabled,-Dv4l2-libv4l2=disabled,v4l-utils"
45PACKAGECONFIG[mpg123] = "-Dmpg123=enabled,-Dmpg123=disabled,mpg123"
46PACKAGECONFIG[pulseaudio] = "-Dpulse=enabled,-Dpulse=disabled,pulseaudio"
Andrew Geissler6ce62a22020-11-30 19:58:47 -060047PACKAGECONFIG[qt5] = "-Dqt5=enabled,-Dqt5=disabled,qtbase qtdeclarative qtbase-native ${QT5WAYLANDDEPENDS}"
Andrew Geissler82c905d2020-04-13 13:39:40 -050048PACKAGECONFIG[soup] = "-Dsoup=enabled,-Dsoup=disabled,libsoup-2.4"
49PACKAGECONFIG[speex] = "-Dspeex=enabled,-Dspeex=disabled,speex"
Andrew Geissler6ce62a22020-11-30 19:58:47 -060050PACKAGECONFIG[rpi] = "-Drpicamsrc=enabled,-Drpicamsrc=disabled,userland"
Andrew Geissler82c905d2020-04-13 13:39:40 -050051PACKAGECONFIG[taglib] = "-Dtaglib=enabled,-Dtaglib=disabled,taglib"
52PACKAGECONFIG[v4l2] = "-Dv4l2=enabled -Dv4l2-probe=true,-Dv4l2=disabled -Dv4l2-probe=false"
53PACKAGECONFIG[vpx] = "-Dvpx=enabled,-Dvpx=disabled,libvpx"
54PACKAGECONFIG[wavpack] = "-Dwavpack=enabled,-Dwavpack=disabled,wavpack"
55PACKAGECONFIG[x11] = "${X11ENABLEOPTS},${X11DISABLEOPTS},${X11DEPENDS}"
56
57EXTRA_OEMESON += " \
Andrew Geissler6ce62a22020-11-30 19:58:47 -060058 -Ddoc=disabled \
Andrew Geissler82c905d2020-04-13 13:39:40 -050059 -Daalib=disabled \
60 -Ddirectsound=disabled \
61 -Ddv=disabled \
62 -Dlibcaca=disabled \
63 -Doss=enabled \
64 -Doss4=disabled \
65 -Dosxaudio=disabled \
66 -Dosxvideo=disabled \
67 -Dshout2=disabled \
68 -Dtwolame=disabled \
69 -Dwaveform=disabled \
70"
71
72FILES_${PN}-equalizer += "${datadir}/gstreamer-1.0/presets/*.prs"