Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | require gstreamer1.0-plugins.inc |
| 2 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 3 | LICENSE = "GPLv2+ & LGPLv2+ & LGPLv2.1+" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 4 | |
| 5 | DEPENDS += "gstreamer1.0-plugins-base libpng jpeg" |
| 6 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 7 | inherit gettext bluetooth |
| 8 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 9 | SRC_URI_append = " \ |
| 10 | file://0001-Makefile.am-don-t-hardcode-libtool-name-when-running.patch \ |
| 11 | " |
| 12 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 13 | # opengl packageconfig factored out to make it easy for distros |
| 14 | # and BSP layers to pick either (desktop) opengl, gles2, or no GL |
| 15 | PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2', '', d)}" |
| 16 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 17 | # gtk is not in the PACKAGECONFIG variable by default until |
| 18 | # the transition to gtk+3 is finished |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 19 | PACKAGECONFIG ??= " \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 20 | ${GSTREAMER_ORC} \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 21 | ${PACKAGECONFIG_GL} \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 22 | ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \ |
| 23 | ${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)} \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 24 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \ |
| 25 | bz2 curl dash dtls hls neon rsvg sbc smoothstreaming sndfile uvch264 webp \ |
| 26 | " |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 27 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 28 | PACKAGECONFIG[assrender] = "--enable-assrender,--disable-assrender,libass" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 29 | PACKAGECONFIG[bluez] = "--enable-bluez,--disable-bluez,${BLUEZ}" |
| 30 | PACKAGECONFIG[bz2] = "--enable-bz2,--disable-bz2,bzip2" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 31 | PACKAGECONFIG[curl] = "--enable-curl,--disable-curl,curl" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 32 | PACKAGECONFIG[dash] = "--enable-dash,--disable-dash,libxml2" |
| 33 | PACKAGECONFIG[directfb] = "--enable-directfb,--disable-directfb,directfb" |
| 34 | PACKAGECONFIG[dtls] = "--enable-dtls,--disable-dtls,openssl" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 35 | PACKAGECONFIG[faac] = "--enable-faac,--disable-faac,faac" |
| 36 | PACKAGECONFIG[faad] = "--enable-faad,--disable-faad,faad2" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 37 | PACKAGECONFIG[flite] = "--enable-flite,--disable-flite,flite-alsa" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 38 | PACKAGECONFIG[fluidsynth] = "--enable-fluidsynth,--disable-fluidsynth,fluidsynth" |
| 39 | PACKAGECONFIG[gles2] = "--enable-gles2,--disable-gles2,virtual/libgles2" |
| 40 | PACKAGECONFIG[gtk] = "--enable-gtk3,--disable-gtk3,gtk+3" |
| 41 | PACKAGECONFIG[hls] = "--enable-hls,--disable-hls,nettle" |
| 42 | PACKAGECONFIG[libmms] = "--enable-libmms,--disable-libmms,libmms" |
| 43 | PACKAGECONFIG[libssh2] = "--enable-libssh2,--disable-libssh2,libssh2" |
| 44 | PACKAGECONFIG[modplug] = "--enable-modplug,--disable-modplug,libmodplug" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 45 | PACKAGECONFIG[neon] = "--enable-neon,--disable-neon,neon" |
| 46 | PACKAGECONFIG[openal] = "--enable-openal,--disable-openal,openal-soft" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 47 | PACKAGECONFIG[opencv] = "--enable-opencv,--disable-opencv,opencv" |
| 48 | PACKAGECONFIG[opengl] = "--enable-opengl,--disable-opengl,virtual/libgl libglu" |
| 49 | PACKAGECONFIG[opus] = "--enable-opus,--disable-opus,libopus" |
| 50 | PACKAGECONFIG[resindvd] = "--enable-resindvd,--disable-resindvd,libdvdread libdvdnav" |
| 51 | PACKAGECONFIG[rsvg] = "--enable-rsvg,--disable-rsvg,librsvg" |
| 52 | PACKAGECONFIG[rtmp] = "--enable-rtmp,--disable-rtmp,rtmpdump" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 53 | PACKAGECONFIG[sbc] = "--enable-sbc,--disable-sbc,sbc" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 54 | PACKAGECONFIG[schroedinger] = "--enable-schro,--disable-schro,schroedinger" |
| 55 | PACKAGECONFIG[smoothstreaming] = "--enable-smoothstreaming,--disable-smoothstreaming,libxml2" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 56 | PACKAGECONFIG[sndfile] = "--enable-sndfile,--disable-sndfile,libsndfile1" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 57 | PACKAGECONFIG[srtp] = "--enable-srtp,--disable-srtp,libsrtp" |
| 58 | PACKAGECONFIG[uvch264] = "--enable-uvch264,--disable-uvch264,libusb1 libgudev" |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 59 | PACKAGECONFIG[voaacenc] = "--enable-voaacenc,--disable-voaacenc,vo-aacenc" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 60 | PACKAGECONFIG[voamrwbenc] = "--enable-voamrwbenc,--disable-voamrwbenc,vo-amrwbenc" |
| 61 | PACKAGECONFIG[wayland] = "--enable-wayland --enable-egl,--disable-wayland --disable-egl,wayland virtual/egl" |
| 62 | PACKAGECONFIG[webp] = "--enable-webp,--disable-webp,libwebp" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 63 | |
| 64 | # these plugins have not been ported to 1.0 (yet): |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 65 | # 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 Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 68 | |
| 69 | # these plugins have no corresponding library in OE-core or meta-openembedded: |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 70 | # 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 Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 79 | |
| 80 | EXTRA_OECONF += " \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 81 | --enable-decklink \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 82 | --enable-dvb \ |
| 83 | --enable-fbdev \ |
| 84 | --enable-shm \ |
| 85 | --enable-vcd \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 86 | --disable-acm \ |
| 87 | --disable-android_media \ |
| 88 | --disable-apexsink \ |
| 89 | --disable-apple_media \ |
| 90 | --disable-avc \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 91 | --disable-bs2b \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 92 | --disable-chromaprint \ |
| 93 | --disable-cocoa \ |
| 94 | --disable-daala \ |
| 95 | --disable-dc1394 \ |
| 96 | --disable-direct3d \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 97 | --disable-directsound \ |
| 98 | --disable-dts \ |
| 99 | --disable-gme \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 100 | --disable-gsm \ |
| 101 | --disable-kate \ |
| 102 | --disable-ladspa \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 103 | --disable-libde265 \ |
| 104 | --disable-libvisual \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 105 | --disable-linsys \ |
| 106 | --disable-lv2 \ |
| 107 | --disable-mimic \ |
| 108 | --disable-mpeg2enc \ |
| 109 | --disable-mplex \ |
| 110 | --disable-musepack \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 111 | --disable-nas \ |
| 112 | --disable-ofa \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 113 | --disable-openexr \ |
| 114 | --disable-openh264 \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 115 | --disable-openjpeg \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 116 | --disable-openni2 \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 117 | --disable-opensles \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 118 | --disable-pvr \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 119 | --disable-qt \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 120 | --disable-sdl \ |
| 121 | --disable-sdltest \ |
| 122 | --disable-sndio \ |
| 123 | --disable-soundtouch \ |
| 124 | --disable-spandsp \ |
| 125 | --disable-spc \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 126 | --disable-teletextdec \ |
| 127 | --disable-timidity \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 128 | --disable-vdpau \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 129 | --disable-wasapi \ |
| 130 | --disable-wildmidi \ |
| 131 | --disable-wininet \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 132 | --disable-winks \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 133 | --disable-winscreencap \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 134 | --disable-x265 \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 135 | --disable-xvid \ |
| 136 | --disable-zbar \ |
| 137 | ${@bb.utils.contains("TUNE_FEATURES", "mx32", "--disable-yadif", "", d)} \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 138 | " |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 139 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 140 | export OPENCV_PREFIX = "${STAGING_DIR_TARGET}${prefix}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 141 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 142 | ARM_INSTRUCTION_SET_armv4 = "arm" |
| 143 | ARM_INSTRUCTION_SET_armv5 = "arm" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 144 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 145 | FILES_${PN}-dev += "${libdir}/gstreamer-${LIBV}/include/gst/gl/gstglconfig.h" |
| 146 | FILES_${PN}-freeverb += "${datadir}/gstreamer-${LIBV}/presets/GstFreeverb.prs" |
| 147 | FILES_${PN}-opencv += "${datadir}/gst-plugins-bad/${LIBV}/opencv*" |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 148 | FILES_${PN}-voamrwbenc += "${datadir}/gstreamer-${LIBV}/presets/GstVoAmrwbEnc.prs" |