blob: 9e2b94ede8c00bb0651b28825905e3f590039893 [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 Williamsd8c66bc2016-06-20 12:57:21 -050024 ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \
25 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 Williamsc124f4f2015-09-15 14:41:29 -050035PACKAGECONFIG[faac] = "--enable-faac,--disable-faac,faac"
36PACKAGECONFIG[faad] = "--enable-faad,--disable-faad,faad2"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050037PACKAGECONFIG[flite] = "--enable-flite,--disable-flite,flite-alsa"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050038PACKAGECONFIG[fluidsynth] = "--enable-fluidsynth,--disable-fluidsynth,fluidsynth"
39PACKAGECONFIG[gles2] = "--enable-gles2,--disable-gles2,virtual/libgles2"
40PACKAGECONFIG[gtk] = "--enable-gtk3,--disable-gtk3,gtk+3"
41PACKAGECONFIG[hls] = "--enable-hls,--disable-hls,nettle"
42PACKAGECONFIG[libmms] = "--enable-libmms,--disable-libmms,libmms"
43PACKAGECONFIG[libssh2] = "--enable-libssh2,--disable-libssh2,libssh2"
44PACKAGECONFIG[modplug] = "--enable-modplug,--disable-modplug,libmodplug"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050045PACKAGECONFIG[neon] = "--enable-neon,--disable-neon,neon"
46PACKAGECONFIG[openal] = "--enable-openal,--disable-openal,openal-soft"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050047PACKAGECONFIG[opencv] = "--enable-opencv,--disable-opencv,opencv"
48PACKAGECONFIG[opengl] = "--enable-opengl,--disable-opengl,virtual/libgl libglu"
49PACKAGECONFIG[opus] = "--enable-opus,--disable-opus,libopus"
50PACKAGECONFIG[resindvd] = "--enable-resindvd,--disable-resindvd,libdvdread libdvdnav"
51PACKAGECONFIG[rsvg] = "--enable-rsvg,--disable-rsvg,librsvg"
52PACKAGECONFIG[rtmp] = "--enable-rtmp,--disable-rtmp,rtmpdump"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050053PACKAGECONFIG[sbc] = "--enable-sbc,--disable-sbc,sbc"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050054PACKAGECONFIG[schroedinger] = "--enable-schro,--disable-schro,schroedinger"
55PACKAGECONFIG[smoothstreaming] = "--enable-smoothstreaming,--disable-smoothstreaming,libxml2"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050056PACKAGECONFIG[sndfile] = "--enable-sndfile,--disable-sndfile,libsndfile1"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050057PACKAGECONFIG[srtp] = "--enable-srtp,--disable-srtp,libsrtp"
58PACKAGECONFIG[uvch264] = "--enable-uvch264,--disable-uvch264,libusb1 libgudev"
Patrick Williamsf1e5d692016-03-30 15:21:19 -050059PACKAGECONFIG[voaacenc] = "--enable-voaacenc,--disable-voaacenc,vo-aacenc"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050060PACKAGECONFIG[voamrwbenc] = "--enable-voamrwbenc,--disable-voamrwbenc,vo-amrwbenc"
61PACKAGECONFIG[wayland] = "--enable-wayland --enable-egl,--disable-wayland --disable-egl,wayland virtual/egl"
62PACKAGECONFIG[webp] = "--enable-webp,--disable-webp,libwebp"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050063
64# these plugins have not been ported to 1.0 (yet):
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050065# apexsink dc1394 lv2 linsys musepack nas timidity teletextdec sdl xvid wininet
66# acm gsettings sndio cdxaparse dccp faceoverlay hdvparse tta mve nuvdemux
67# patchdetect real sdi videomeasure gsettings
Patrick Williamsc124f4f2015-09-15 14:41:29 -050068
69# these plugins have no corresponding library in OE-core or meta-openembedded:
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050070# openni2 winks direct3d directsound winscreencap
71# apple_media android_media avc bs2b chromaprint daala dts gme gsm kate ladspa
72# libde265 mimic mpeg2enc mplex ofa openh264 opensles pvr soundtouch spandsp
73# spc vdpau wasapi x265 zbar
74
75# qt5 support is disabled, because it is not present in OE core, and requires more work than
76# just adding a packageconfig (it requires access to moc, uic, rcc, and qmake paths).
77# This is better done in a separate qt5 layer (which then should add a "qt5" packageconfig
78# in a gstreamer1.0-plugins-bad bbappend).
Patrick Williamsc124f4f2015-09-15 14:41:29 -050079
80EXTRA_OECONF += " \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050081 --enable-decklink \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050082 --enable-dvb \
83 --enable-fbdev \
84 --enable-shm \
85 --enable-vcd \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050086 --disable-acm \
87 --disable-android_media \
88 --disable-apexsink \
89 --disable-apple_media \
90 --disable-avc \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050091 --disable-bs2b \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050092 --disable-chromaprint \
93 --disable-cocoa \
94 --disable-daala \
95 --disable-dc1394 \
96 --disable-direct3d \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050097 --disable-directsound \
98 --disable-dts \
99 --disable-gme \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500100 --disable-gsm \
101 --disable-kate \
102 --disable-ladspa \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500103 --disable-libde265 \
104 --disable-libvisual \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500105 --disable-linsys \
106 --disable-lv2 \
107 --disable-mimic \
108 --disable-mpeg2enc \
109 --disable-mplex \
110 --disable-musepack \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500111 --disable-nas \
112 --disable-ofa \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500113 --disable-openexr \
114 --disable-openh264 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500115 --disable-openjpeg \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500116 --disable-openni2 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500117 --disable-opensles \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500118 --disable-pvr \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500119 --disable-qt \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500120 --disable-sdl \
121 --disable-sdltest \
122 --disable-sndio \
123 --disable-soundtouch \
124 --disable-spandsp \
125 --disable-spc \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500126 --disable-teletextdec \
127 --disable-timidity \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500128 --disable-vdpau \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500129 --disable-wasapi \
130 --disable-wildmidi \
131 --disable-wininet \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500132 --disable-winks \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500133 --disable-winscreencap \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500134 --disable-x265 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500135 --disable-xvid \
136 --disable-zbar \
137 ${@bb.utils.contains("TUNE_FEATURES", "mx32", "--disable-yadif", "", d)} \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500138"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500139
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500140export OPENCV_PREFIX = "${STAGING_DIR_TARGET}${prefix}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500141
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500142ARM_INSTRUCTION_SET_armv4 = "arm"
143ARM_INSTRUCTION_SET_armv5 = "arm"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500144
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500145FILES_${PN}-dev += "${libdir}/gstreamer-${LIBV}/include/gst/gl/gstglconfig.h"
146FILES_${PN}-freeverb += "${datadir}/gstreamer-${LIBV}/presets/GstFreeverb.prs"
147FILES_${PN}-opencv += "${datadir}/gst-plugins-bad/${LIBV}/opencv*"
Patrick Williamsf1e5d692016-03-30 15:21:19 -0500148FILES_${PN}-voamrwbenc += "${datadir}/gstreamer-${LIBV}/presets/GstVoAmrwbEnc.prs"