blob: 0fe5564b53c6447b8fc5d7144cd301c77d3233ff [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001require gstreamer1.0-plugins.inc
2
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05003LICENSE = "GPLv2+ & LGPLv2+ & LGPLv2.1+"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05004
5DEPENDS += "gstreamer1.0-plugins-base libpng jpeg"
6
Patrick Williamsc124f4f2015-09-15 14:41:29 -05007inherit gettext bluetooth
8
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05009SRC_URI_append = " \
10 file://0001-Makefile.am-don-t-hardcode-libtool-name-when-running.patch \
11"
12
Patrick Williamsc124f4f2015-09-15 14:41:29 -050013# opengl packageconfig factored out to make it easy for distros
14# and BSP layers to pick either (desktop) opengl, gles2, or no GL
15PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2', '', d)}"
16
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050017# gtk is not in the PACKAGECONFIG variable by default until
18# the transition to gtk+3 is finished
Patrick Williamsc124f4f2015-09-15 14:41:29 -050019PACKAGECONFIG ??= " \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050020 ${GSTREAMER_ORC} \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050021 ${PACKAGECONFIG_GL} \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050022 ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \
23 ${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)} \
Patrick Williamsc0f7c042017-02-23 20:41:17 -060024 ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland egl', '', d)} \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050025 bz2 curl dash dtls hls neon rsvg sbc smoothstreaming sndfile uvch264 webp \
26"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050027
Patrick Williamsc124f4f2015-09-15 14:41:29 -050028PACKAGECONFIG[assrender] = "--enable-assrender,--disable-assrender,libass"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050029PACKAGECONFIG[bluez] = "--enable-bluez,--disable-bluez,${BLUEZ}"
30PACKAGECONFIG[bz2] = "--enable-bz2,--disable-bz2,bzip2"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050031PACKAGECONFIG[curl] = "--enable-curl,--disable-curl,curl"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050032PACKAGECONFIG[dash] = "--enable-dash,--disable-dash,libxml2"
33PACKAGECONFIG[directfb] = "--enable-directfb,--disable-directfb,directfb"
34PACKAGECONFIG[dtls] = "--enable-dtls,--disable-dtls,openssl"
Patrick Williamsc0f7c042017-02-23 20:41:17 -060035PACKAGECONFIG[egl] = "--enable-egl,--disable-egl,virtual/egl"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050036PACKAGECONFIG[faac] = "--enable-faac,--disable-faac,faac"
37PACKAGECONFIG[faad] = "--enable-faad,--disable-faad,faad2"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050038PACKAGECONFIG[flite] = "--enable-flite,--disable-flite,flite-alsa"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050039PACKAGECONFIG[fluidsynth] = "--enable-fluidsynth,--disable-fluidsynth,fluidsynth"
40PACKAGECONFIG[gles2] = "--enable-gles2,--disable-gles2,virtual/libgles2"
41PACKAGECONFIG[gtk] = "--enable-gtk3,--disable-gtk3,gtk+3"
Patrick Williamsc0f7c042017-02-23 20:41:17 -060042# ensure OpenSSL is used for HLS AES description instead of nettle
43# (OpenSSL is a shared dependency with dtls)
44PACKAGECONFIG[hls] = "--enable-hls --with-hls-crypto=openssl,--disable-hls,openssl"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050045PACKAGECONFIG[libmms] = "--enable-libmms,--disable-libmms,libmms"
46PACKAGECONFIG[libssh2] = "--enable-libssh2,--disable-libssh2,libssh2"
47PACKAGECONFIG[modplug] = "--enable-modplug,--disable-modplug,libmodplug"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050048PACKAGECONFIG[neon] = "--enable-neon,--disable-neon,neon"
49PACKAGECONFIG[openal] = "--enable-openal,--disable-openal,openal-soft"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050050PACKAGECONFIG[opencv] = "--enable-opencv,--disable-opencv,opencv"
51PACKAGECONFIG[opengl] = "--enable-opengl,--disable-opengl,virtual/libgl libglu"
Patrick Williamsc0f7c042017-02-23 20:41:17 -060052# the opus encoder/decoder elements are now in the -base package,
53# but the opus parser remains in -bad
54PACKAGECONFIG[opusparse] = "--enable-opus,--disable-opus,libopus"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050055PACKAGECONFIG[resindvd] = "--enable-resindvd,--disable-resindvd,libdvdread libdvdnav"
56PACKAGECONFIG[rsvg] = "--enable-rsvg,--disable-rsvg,librsvg"
57PACKAGECONFIG[rtmp] = "--enable-rtmp,--disable-rtmp,rtmpdump"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050058PACKAGECONFIG[sbc] = "--enable-sbc,--disable-sbc,sbc"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050059PACKAGECONFIG[schroedinger] = "--enable-schro,--disable-schro,schroedinger"
60PACKAGECONFIG[smoothstreaming] = "--enable-smoothstreaming,--disable-smoothstreaming,libxml2"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050061PACKAGECONFIG[sndfile] = "--enable-sndfile,--disable-sndfile,libsndfile1"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050062PACKAGECONFIG[srtp] = "--enable-srtp,--disable-srtp,libsrtp"
63PACKAGECONFIG[uvch264] = "--enable-uvch264,--disable-uvch264,libusb1 libgudev"
Patrick Williamsf1e5d692016-03-30 15:21:19 -050064PACKAGECONFIG[voaacenc] = "--enable-voaacenc,--disable-voaacenc,vo-aacenc"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050065PACKAGECONFIG[voamrwbenc] = "--enable-voamrwbenc,--disable-voamrwbenc,vo-amrwbenc"
Patrick Williamsc0f7c042017-02-23 20:41:17 -060066PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,wayland-native wayland"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050067PACKAGECONFIG[webp] = "--enable-webp,--disable-webp,libwebp"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050068
69# these plugins have not been ported to 1.0 (yet):
Patrick Williamsc0f7c042017-02-23 20:41:17 -060070# apexsink dc1394 lv2 linsys musepack nas timidity sdl xvid wininet
71# sndio cdxaparse dccp faceoverlay hdvparse tta mve nuvdemux
72# patchdetect sdi videomeasure
Patrick Williamsc124f4f2015-09-15 14:41:29 -050073
74# these plugins have no corresponding library in OE-core or meta-openembedded:
Patrick Williamsc0f7c042017-02-23 20:41:17 -060075# openni2 winks direct3d directsound winscreencap acm
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050076# apple_media android_media avc bs2b chromaprint daala dts gme gsm kate ladspa
Patrick Williamsc0f7c042017-02-23 20:41:17 -060077# libde265 mimic mpeg2enc mplex nvenc ofa openh264 opensles pvr soundtouch spandsp
78# spc teletextdec tinyalsa vdpau vulkan wasapi x265 zbar
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050079
80# qt5 support is disabled, because it is not present in OE core, and requires more work than
81# just adding a packageconfig (it requires access to moc, uic, rcc, and qmake paths).
82# This is better done in a separate qt5 layer (which then should add a "qt5" packageconfig
83# in a gstreamer1.0-plugins-bad bbappend).
Patrick Williamsc124f4f2015-09-15 14:41:29 -050084
85EXTRA_OECONF += " \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050086 --enable-decklink \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050087 --enable-dvb \
88 --enable-fbdev \
Patrick Williamsc0f7c042017-02-23 20:41:17 -060089 --enable-netsim \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050090 --enable-shm \
91 --enable-vcd \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050092 --disable-acm \
93 --disable-android_media \
94 --disable-apexsink \
95 --disable-apple_media \
96 --disable-avc \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050097 --disable-bs2b \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050098 --disable-chromaprint \
99 --disable-cocoa \
100 --disable-daala \
101 --disable-dc1394 \
102 --disable-direct3d \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500103 --disable-directsound \
104 --disable-dts \
105 --disable-gme \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500106 --disable-gsm \
107 --disable-kate \
108 --disable-ladspa \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500109 --disable-libde265 \
110 --disable-libvisual \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500111 --disable-linsys \
112 --disable-lv2 \
113 --disable-mimic \
114 --disable-mpeg2enc \
115 --disable-mplex \
116 --disable-musepack \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500117 --disable-nas \
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600118 --disable-nvenc \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500119 --disable-ofa \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500120 --disable-openexr \
121 --disable-openh264 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500122 --disable-openjpeg \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500123 --disable-openni2 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500124 --disable-opensles \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500125 --disable-pvr \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500126 --disable-qt \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500127 --disable-sdl \
128 --disable-sdltest \
129 --disable-sndio \
130 --disable-soundtouch \
131 --disable-spandsp \
132 --disable-spc \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500133 --disable-teletextdec \
134 --disable-timidity \
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600135 --disable-tinyalsa \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500136 --disable-vdpau \
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600137 --disable-vulkan \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500138 --disable-wasapi \
139 --disable-wildmidi \
140 --disable-wininet \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500141 --disable-winks \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500142 --disable-winscreencap \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500143 --disable-x265 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500144 --disable-xvid \
145 --disable-zbar \
146 ${@bb.utils.contains("TUNE_FEATURES", "mx32", "--disable-yadif", "", d)} \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500147"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500148
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500149export OPENCV_PREFIX = "${STAGING_DIR_TARGET}${prefix}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500150
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500151ARM_INSTRUCTION_SET_armv4 = "arm"
152ARM_INSTRUCTION_SET_armv5 = "arm"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500153
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500154FILES_${PN}-dev += "${libdir}/gstreamer-${LIBV}/include/gst/gl/gstglconfig.h"
155FILES_${PN}-freeverb += "${datadir}/gstreamer-${LIBV}/presets/GstFreeverb.prs"
156FILES_${PN}-opencv += "${datadir}/gst-plugins-bad/${LIBV}/opencv*"
Patrick Williamsf1e5d692016-03-30 15:21:19 -0500157FILES_${PN}-voamrwbenc += "${datadir}/gstreamer-${LIBV}/presets/GstVoAmrwbEnc.prs"