blob: 0ccfc89a2ea9bf1a2750d9fe16e212b96252f5f1 [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
Brad Bishop6e60e8b2018-02-01 10:27:11 -050015PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2 egl', '', d)}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050016
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)} \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050023 ${@bb.utils.filter('DISTRO_FEATURES', '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"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050033PACKAGECONFIG[dc1394] = "--enable-dc1394,--disable-dc1394,libdc1394"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050034PACKAGECONFIG[directfb] = "--enable-directfb,--disable-directfb,directfb"
35PACKAGECONFIG[dtls] = "--enable-dtls,--disable-dtls,openssl"
Patrick Williamsc0f7c042017-02-23 20:41:17 -060036PACKAGECONFIG[egl] = "--enable-egl,--disable-egl,virtual/egl"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050037PACKAGECONFIG[faac] = "--enable-faac,--disable-faac,faac"
38PACKAGECONFIG[faad] = "--enable-faad,--disable-faad,faad2"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050039PACKAGECONFIG[flite] = "--enable-flite,--disable-flite,flite-alsa"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050040PACKAGECONFIG[fluidsynth] = "--enable-fluidsynth,--disable-fluidsynth,fluidsynth"
41PACKAGECONFIG[gles2] = "--enable-gles2,--disable-gles2,virtual/libgles2"
42PACKAGECONFIG[gtk] = "--enable-gtk3,--disable-gtk3,gtk+3"
Patrick Williamsc0f7c042017-02-23 20:41:17 -060043# ensure OpenSSL is used for HLS AES description instead of nettle
44# (OpenSSL is a shared dependency with dtls)
45PACKAGECONFIG[hls] = "--enable-hls --with-hls-crypto=openssl,--disable-hls,openssl"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050046PACKAGECONFIG[kms] = "--enable-kms,--disable-kms,libdrm"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050047PACKAGECONFIG[libmms] = "--enable-libmms,--disable-libmms,libmms"
48PACKAGECONFIG[libssh2] = "--enable-libssh2,--disable-libssh2,libssh2"
49PACKAGECONFIG[modplug] = "--enable-modplug,--disable-modplug,libmodplug"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050050PACKAGECONFIG[neon] = "--enable-neon,--disable-neon,neon"
51PACKAGECONFIG[openal] = "--enable-openal,--disable-openal,openal-soft"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050052PACKAGECONFIG[opencv] = "--enable-opencv,--disable-opencv,opencv"
53PACKAGECONFIG[opengl] = "--enable-opengl,--disable-opengl,virtual/libgl libglu"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050054PACKAGECONFIG[openjpeg] = "--enable-openjpeg,--disable-openjpeg,openjpeg"
Patrick Williamsc0f7c042017-02-23 20:41:17 -060055# the opus encoder/decoder elements are now in the -base package,
56# but the opus parser remains in -bad
57PACKAGECONFIG[opusparse] = "--enable-opus,--disable-opus,libopus"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050058PACKAGECONFIG[resindvd] = "--enable-resindvd,--disable-resindvd,libdvdread libdvdnav"
59PACKAGECONFIG[rsvg] = "--enable-rsvg,--disable-rsvg,librsvg"
60PACKAGECONFIG[rtmp] = "--enable-rtmp,--disable-rtmp,rtmpdump"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050061PACKAGECONFIG[sbc] = "--enable-sbc,--disable-sbc,sbc"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050062PACKAGECONFIG[schroedinger] = "--enable-schro,--disable-schro,schroedinger"
63PACKAGECONFIG[smoothstreaming] = "--enable-smoothstreaming,--disable-smoothstreaming,libxml2"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050064PACKAGECONFIG[sndfile] = "--enable-sndfile,--disable-sndfile,libsndfile1"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050065PACKAGECONFIG[srtp] = "--enable-srtp,--disable-srtp,libsrtp"
66PACKAGECONFIG[uvch264] = "--enable-uvch264,--disable-uvch264,libusb1 libgudev"
Patrick Williamsf1e5d692016-03-30 15:21:19 -050067PACKAGECONFIG[voaacenc] = "--enable-voaacenc,--disable-voaacenc,vo-aacenc"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050068PACKAGECONFIG[voamrwbenc] = "--enable-voamrwbenc,--disable-voamrwbenc,vo-amrwbenc"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050069PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,wayland-native wayland wayland-protocols"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050070PACKAGECONFIG[webp] = "--enable-webp,--disable-webp,libwebp"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050071
72# these plugins have not been ported to 1.0 (yet):
Brad Bishop6e60e8b2018-02-01 10:27:11 -050073# apexsink linsys nas timidity sdl xvid wininet
Patrick Williamsc0f7c042017-02-23 20:41:17 -060074# sndio cdxaparse dccp faceoverlay hdvparse tta mve nuvdemux
75# patchdetect sdi videomeasure
Patrick Williamsc124f4f2015-09-15 14:41:29 -050076
77# these plugins have no corresponding library in OE-core or meta-openembedded:
Brad Bishop6e60e8b2018-02-01 10:27:11 -050078# openni2 winks direct3d directsound winscreencap acm apple_media
79# android_media avc bs2b chromaprint daala dts fdkaac gme gsm kate ladspa libde265
80# lv2 mimic mpeg2enc mplex musepack nvenc ofa openh264 opensles pvr soundtouch spandsp
Patrick Williamsc0f7c042017-02-23 20:41:17 -060081# spc teletextdec tinyalsa vdpau vulkan wasapi x265 zbar
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050082
83# qt5 support is disabled, because it is not present in OE core, and requires more work than
84# just adding a packageconfig (it requires access to moc, uic, rcc, and qmake paths).
85# This is better done in a separate qt5 layer (which then should add a "qt5" packageconfig
86# in a gstreamer1.0-plugins-bad bbappend).
Patrick Williamsc124f4f2015-09-15 14:41:29 -050087
88EXTRA_OECONF += " \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050089 --enable-decklink \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050090 --enable-dvb \
91 --enable-fbdev \
Patrick Williamsc0f7c042017-02-23 20:41:17 -060092 --enable-netsim \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050093 --enable-shm \
94 --enable-vcd \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050095 --disable-acm \
96 --disable-android_media \
97 --disable-apexsink \
98 --disable-apple_media \
99 --disable-avc \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500100 --disable-bs2b \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500101 --disable-chromaprint \
102 --disable-cocoa \
103 --disable-daala \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500104 --disable-direct3d \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500105 --disable-directsound \
106 --disable-dts \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500107 --disable-fdk_aac \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500108 --disable-gme \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500109 --disable-gsm \
110 --disable-kate \
111 --disable-ladspa \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500112 --disable-libde265 \
113 --disable-libvisual \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500114 --disable-linsys \
115 --disable-lv2 \
116 --disable-mimic \
117 --disable-mpeg2enc \
118 --disable-mplex \
119 --disable-musepack \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500120 --disable-nas \
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600121 --disable-nvenc \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500122 --disable-ofa \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500123 --disable-openexr \
124 --disable-openh264 \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500125 --disable-openni2 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500126 --disable-opensles \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500127 --disable-pvr \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500128 --disable-qt \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500129 --disable-sdl \
130 --disable-sdltest \
131 --disable-sndio \
132 --disable-soundtouch \
133 --disable-spandsp \
134 --disable-spc \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500135 --disable-teletextdec \
136 --disable-timidity \
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600137 --disable-tinyalsa \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500138 --disable-vdpau \
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600139 --disable-vulkan \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500140 --disable-wasapi \
141 --disable-wildmidi \
142 --disable-wininet \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500143 --disable-winks \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500144 --disable-winscreencap \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500145 --disable-x265 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500146 --disable-xvid \
147 --disable-zbar \
148 ${@bb.utils.contains("TUNE_FEATURES", "mx32", "--disable-yadif", "", d)} \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500149"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500150
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500151export OPENCV_PREFIX = "${STAGING_DIR_TARGET}${prefix}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500152
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500153ARM_INSTRUCTION_SET_armv4 = "arm"
154ARM_INSTRUCTION_SET_armv5 = "arm"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500155
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500156FILES_${PN}-dev += "${libdir}/gstreamer-${LIBV}/include/gst/gl/gstglconfig.h"
157FILES_${PN}-freeverb += "${datadir}/gstreamer-${LIBV}/presets/GstFreeverb.prs"
158FILES_${PN}-opencv += "${datadir}/gst-plugins-bad/${LIBV}/opencv*"
Patrick Williamsf1e5d692016-03-30 15:21:19 -0500159FILES_${PN}-voamrwbenc += "${datadir}/gstreamer-${LIBV}/presets/GstVoAmrwbEnc.prs"