diff options
Diffstat (limited to 'recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.16.imx.bb')
| -rw-r--r-- | recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.16.imx.bb | 174 |
1 files changed, 174 insertions, 0 deletions
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.16.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.16.imx.bb new file mode 100644 index 000000000..3cf0c7af0 --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.16.imx.bb | |||
| @@ -0,0 +1,174 @@ | |||
| 1 | require recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc | ||
| 2 | |||
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=73a5855a8119deb017f5f13cf327095d \ | ||
| 4 | file://COPYING.LIB;md5=21682e4e8fea52413fd26c60acb907e5 " | ||
| 5 | |||
| 6 | DEPENDS_append_imxgpu2d = " virtual/libg2d" | ||
| 7 | DEPENDS_append_mx8 = " libdrm" | ||
| 8 | |||
| 9 | PACKAGECONFIG_append_mx6q = " opencv" | ||
| 10 | PACKAGECONFIG_append_mx6qp = " opencv" | ||
| 11 | PACKAGECONFIG_append_mx8 = " opencv kms" | ||
| 12 | |||
| 13 | FILESEXTRAPATHS_prepend := "${BSPDIR}/sources/poky/meta/recipes-multimedia/gstreamer/${PN}:" | ||
| 14 | FILESEXTRAPATHS_prepend := "${BSPDIR}/sources/poky/meta/recipes-multimedia/gstreamer/files:" | ||
| 15 | |||
| 16 | GST1.0-PLUGINS-BAD_SRC ?= "gitsm://source.codeaurora.org/external/imx/gst-plugins-bad.git;protocol=https" | ||
| 17 | SRCBRANCH = "MM_04.05.01_1909_L4.19.35" | ||
| 18 | |||
| 19 | SRC_URI = " \ | ||
| 20 | ${GST1.0-PLUGINS-BAD_SRC};branch=${SRCBRANCH} \ | ||
| 21 | file://configure-allow-to-disable-libssh2.patch \ | ||
| 22 | file://fix-maybe-uninitialized-warnings-when-compiling-with-Os.patch \ | ||
| 23 | file://avoid-including-sys-poll.h-directly.patch \ | ||
| 24 | file://ensure-valid-sentinels-for-gst_structure_get-etc.patch \ | ||
| 25 | file://0001-introspection.m4-prefix-pkgconfig-paths-with-PKG_CON.patch \ | ||
| 26 | " | ||
| 27 | |||
| 28 | SRCREV = "eba3db4034fc17b712808d5e90ed5ff22ef490ca" | ||
| 29 | |||
| 30 | DEFAULT_PREFERENCE = "-1" | ||
| 31 | |||
| 32 | # This remove "--exclude=autopoint" option from autoreconf argument to avoid | ||
| 33 | # configure.ac:30: error: required file './ABOUT-NLS' not found | ||
| 34 | EXTRA_AUTORECONF = "" | ||
| 35 | |||
| 36 | # include fragment shaders | ||
| 37 | FILES_${PN}-opengl += "/usr/share/*.fs" | ||
| 38 | |||
| 39 | PACKAGE_ARCH_imxpxp = "${MACHINE_SOCARCH}" | ||
| 40 | PACKAGE_ARCH_mx8 = "${MACHINE_SOCARCH}" | ||
| 41 | |||
| 42 | S = "${WORKDIR}/git" | ||
| 43 | |||
| 44 | LICENSE = "GPLv2+ & LGPLv2+ & LGPLv2.1+" | ||
| 45 | |||
| 46 | DEPENDS += "gstreamer1.0-plugins-base jpeg" | ||
| 47 | |||
| 48 | inherit gettext | ||
| 49 | |||
| 50 | PACKAGECONFIG ??= " \ | ||
| 51 | ${GSTREAMER_ORC} \ | ||
| 52 | ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \ | ||
| 53 | ${@bb.utils.filter('DISTRO_FEATURES', 'directfb vulkan', d)} \ | ||
| 54 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \ | ||
| 55 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gl', '', d)} \ | ||
| 56 | bz2 curl dash dtls hls rsvg sbc smoothstreaming sndfile ttml uvch264 webp \ | ||
| 57 | " | ||
| 58 | |||
| 59 | # the gl packageconfig enables OpenGL elements that haven't been ported | ||
| 60 | # to -base yet. They depend on the gstgl library in -base, so we do | ||
| 61 | # not add GL dependencies here, since these are taken care of in -base. | ||
| 62 | |||
| 63 | PACKAGECONFIG[assrender] = "--enable-assrender,--disable-assrender,libass" | ||
| 64 | PACKAGECONFIG[bluez] = "--enable-bluez,--disable-bluez,bluez5" | ||
| 65 | PACKAGECONFIG[bz2] = "--enable-bz2,--disable-bz2,bzip2" | ||
| 66 | PACKAGECONFIG[curl] = "--enable-curl,--disable-curl,curl" | ||
| 67 | PACKAGECONFIG[dash] = "--enable-dash,--disable-dash,libxml2" | ||
| 68 | PACKAGECONFIG[dc1394] = "--enable-dc1394,--disable-dc1394,libdc1394" | ||
| 69 | PACKAGECONFIG[directfb] = "--enable-directfb,--disable-directfb,directfb" | ||
| 70 | PACKAGECONFIG[dtls] = "--enable-dtls,--disable-dtls,openssl" | ||
| 71 | PACKAGECONFIG[faac] = "--enable-faac,--disable-faac,faac" | ||
| 72 | PACKAGECONFIG[faad] = "--enable-faad,--disable-faad,faad2" | ||
| 73 | PACKAGECONFIG[flite] = "--enable-flite,--disable-flite,flite-alsa" | ||
| 74 | PACKAGECONFIG[fluidsynth] = "--enable-fluidsynth,--disable-fluidsynth,fluidsynth" | ||
| 75 | PACKAGECONFIG[hls] = "--enable-hls --with-hls-crypto=nettle,--disable-hls,nettle" | ||
| 76 | PACKAGECONFIG[gl] = "--enable-gl,--disable-gl," | ||
| 77 | PACKAGECONFIG[kms] = "--enable-kms,--disable-kms,libdrm" | ||
| 78 | PACKAGECONFIG[libde265] = "--enable-libde265,--disable-libde265,libde265" | ||
| 79 | PACKAGECONFIG[libmms] = "--enable-libmms,--disable-libmms,libmms" | ||
| 80 | PACKAGECONFIG[libssh2] = "--enable-libssh2,--disable-libssh2,libssh2" | ||
| 81 | PACKAGECONFIG[modplug] = "--enable-modplug,--disable-modplug,libmodplug" | ||
| 82 | PACKAGECONFIG[neon] = "--enable-neon,--disable-neon,neon" | ||
| 83 | PACKAGECONFIG[openal] = "--enable-openal,--disable-openal,openal-soft" | ||
| 84 | PACKAGECONFIG[opencv] = "--enable-opencv,--disable-opencv,opencv" | ||
| 85 | PACKAGECONFIG[openh264] = "--enable-openh264,--disable-openh264,openh264" | ||
| 86 | PACKAGECONFIG[openjpeg] = "--enable-openjpeg,--disable-openjpeg,openjpeg" | ||
| 87 | # the opus encoder/decoder elements are now in the -base package, | ||
| 88 | # but the opus parser remains in -bad | ||
| 89 | PACKAGECONFIG[opusparse] = "--enable-opus,--disable-opus,libopus" | ||
| 90 | PACKAGECONFIG[resindvd] = "--enable-resindvd,--disable-resindvd,libdvdread libdvdnav" | ||
| 91 | PACKAGECONFIG[rsvg] = "--enable-rsvg,--disable-rsvg,librsvg" | ||
| 92 | PACKAGECONFIG[rtmp] = "--enable-rtmp,--disable-rtmp,rtmpdump" | ||
| 93 | PACKAGECONFIG[sbc] = "--enable-sbc,--disable-sbc,sbc" | ||
| 94 | PACKAGECONFIG[smoothstreaming] = "--enable-smoothstreaming,--disable-smoothstreaming,libxml2" | ||
| 95 | PACKAGECONFIG[sndfile] = "--enable-sndfile,--disable-sndfile,libsndfile1" | ||
| 96 | PACKAGECONFIG[srtp] = "--enable-srtp,--disable-srtp,libsrtp" | ||
| 97 | PACKAGECONFIG[tinyalsa] = "--enable-tinyalsa,--disable-tinyalsa,tinyalsa" | ||
| 98 | PACKAGECONFIG[ttml] = "--enable-ttml,--disable-ttml,libxml2 pango cairo" | ||
| 99 | PACKAGECONFIG[uvch264] = "--enable-uvch264,--disable-uvch264,libusb1 libgudev" | ||
| 100 | PACKAGECONFIG[voaacenc] = "--enable-voaacenc,--disable-voaacenc,vo-aacenc" | ||
| 101 | PACKAGECONFIG[voamrwbenc] = "--enable-voamrwbenc,--disable-voamrwbenc,vo-amrwbenc" | ||
| 102 | PACKAGECONFIG[vulkan] = "--enable-vulkan,--disable-vulkan,vulkan-headers" | ||
| 103 | PACKAGECONFIG[lcms2] = "--enable-lcms2,--disable-lcms2,lcms" | ||
| 104 | PACKAGECONFIG[openmpt] = "--enable-openmpt,--disable-openmpt,libopenmpt" | ||
| 105 | PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,wayland-native wayland wayland-protocols libdrm" | ||
| 106 | PACKAGECONFIG[webp] = "--enable-webp,--disable-webp,libwebp" | ||
| 107 | PACKAGECONFIG[webrtc] = "--enable-webrtc,--disable-webrtc,libnice" | ||
| 108 | PACKAGECONFIG[webrtcdsp] = "--enable-webrtcdsp,--disable-webrtcdsp,webrtc-audio-processing" | ||
| 109 | |||
| 110 | # these plugins have no corresponding library in OE-core or meta-openembedded: | ||
| 111 | # openni2 winks direct3d directsound winscreencap apple_media iqa | ||
| 112 | # android_media avc bs2b chromaprint dts fdkaac gme gsm kate ladspa | ||
| 113 | # lv2 mpeg2enc mplex msdk musepack nvenc ofa openmpt opensles soundtouch | ||
| 114 | # spandsp teletextdec vdpau wasapi x265 zbar | ||
| 115 | |||
| 116 | EXTRA_OECONF += " \ | ||
| 117 | --enable-decklink \ | ||
| 118 | --enable-dvb \ | ||
| 119 | --enable-fbdev \ | ||
| 120 | --enable-ipcpipeline \ | ||
| 121 | --enable-netsim \ | ||
| 122 | --enable-shm \ | ||
| 123 | --disable-android_media \ | ||
| 124 | --disable-aom \ | ||
| 125 | --disable-apple_media \ | ||
| 126 | --disable-avc \ | ||
| 127 | --disable-bs2b \ | ||
| 128 | --disable-chromaprint \ | ||
| 129 | --disable-direct3d \ | ||
| 130 | --disable-directsound \ | ||
| 131 | --disable-dts \ | ||
| 132 | --disable-fdk_aac \ | ||
| 133 | --disable-gme \ | ||
| 134 | --disable-gsm \ | ||
| 135 | --disable-iqa \ | ||
| 136 | --disable-kate \ | ||
| 137 | --disable-ladspa \ | ||
| 138 | --disable-lv2 \ | ||
| 139 | --disable-mpeg2enc \ | ||
| 140 | --disable-mplex \ | ||
| 141 | --disable-msdk \ | ||
| 142 | --disable-musepack \ | ||
| 143 | --disable-nvenc \ | ||
| 144 | --disable-ofa \ | ||
| 145 | --disable-openexr \ | ||
| 146 | --disable-openmpt \ | ||
| 147 | --disable-openni2 \ | ||
| 148 | --disable-opensles \ | ||
| 149 | --disable-soundtouch \ | ||
| 150 | --disable-spandsp \ | ||
| 151 | --disable-srt \ | ||
| 152 | --disable-teletextdec \ | ||
| 153 | --disable-vdpau \ | ||
| 154 | --disable-wasapi \ | ||
| 155 | --disable-wildmidi \ | ||
| 156 | --disable-winks \ | ||
| 157 | --disable-winscreencap \ | ||
| 158 | --disable-x265 \ | ||
| 159 | --disable-zbar \ | ||
| 160 | ${@bb.utils.contains("TUNE_FEATURES", "mx32", "--disable-yadif", "", d)} \ | ||
| 161 | --disable-introspection \ | ||
| 162 | " | ||
| 163 | export OPENCV_PREFIX = "${STAGING_DIR_TARGET}${prefix}" | ||
| 164 | |||
| 165 | ARM_INSTRUCTION_SET_armv4 = "arm" | ||
| 166 | ARM_INSTRUCTION_SET_armv5 = "arm" | ||
| 167 | |||
| 168 | FILES_${PN}-freeverb += "${datadir}/gstreamer-${LIBV}/presets/GstFreeverb.prs" | ||
| 169 | FILES_${PN}-opencv += "${datadir}/gst-plugins-bad/${LIBV}/opencv*" | ||
| 170 | FILES_${PN}-voamrwbenc += "${datadir}/gstreamer-${LIBV}/presets/GstVoAmrwbEnc.prs" | ||
| 171 | # include fragment shaders | ||
| 172 | FILES_${PN}-opengl += "/usr/share/*.fs" | ||
| 173 | |||
| 174 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" | ||
