Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | DESCRIPTION="SoX is the Swiss Army knife of sound processing tools. \ |
| 2 | It converts audio files among various standard audio file formats \ |
| 3 | and can apply different effects and filters to the audio data." |
| 4 | HOMEPAGE = "http://sox.sourceforge.net" |
| 5 | SECTION = "audio" |
| 6 | |
| 7 | DEPENDS = "libpng ffmpeg libsndfile1" |
| 8 | |
| 9 | # While this item does not require it, it depends on ffmpeg which does |
| 10 | LICENSE_FLAGS = "commercial" |
| 11 | |
| 12 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'alsa pulseaudio', d)} \ |
| 13 | magic \ |
| 14 | " |
| 15 | PACKAGECONFIG[pulseaudio] = "--with-pulseaudio=dyn,--with-pulseaudio=no,pulseaudio," |
| 16 | PACKAGECONFIG[alsa] = "--with-alsa=dyn,--with-alsa=no,alsa-lib," |
| 17 | PACKAGECONFIG[wavpack] = "--with-wavpack=dyn,--with-wavpack=no,wavpack," |
| 18 | PACKAGECONFIG[flac] = "--with-flac=dyn,--with-flac=no,flac," |
| 19 | PACKAGECONFIG[amrwb] = "--with-amrwb=dyn,--with-amrwb=no,opencore-amr," |
| 20 | PACKAGECONFIG[amrnb] = "--with-amrnb=dyn,--with-amrnb=no,opencore-amr," |
| 21 | PACKAGECONFIG[oggvorbis] = "--with-oggvorbis=dyn,--with-oggvorbis=no,libvorbis" |
| 22 | PACKAGECONFIG[opus] = "--with-opus=dyn,--with-opus=no,opusfile" |
| 23 | PACKAGECONFIG[magic] = "--with-magic,--without-magic,file," |
| 24 | PACKAGECONFIG[mad] = "--with-mad,--without-mad,libmad," |
| 25 | PACKAGECONFIG[id3tag] = "--with-id3tag,--without-id3tag,libid3tag," |
| 26 | PACKAGECONFIG[lame] = "--with-lame,--without-lame,lame," |
| 27 | PACKAGECONFIG[ao] = "--with-ao,--without-ao,libao," |
| 28 | |
| 29 | LICENSE = "GPLv2 & LGPLv2.1" |
| 30 | LIC_FILES_CHKSUM = "file://LICENSE.GPL;md5=751419260aa954499f7abaabaa882bbe \ |
| 31 | file://LICENSE.LGPL;md5=fbc093901857fcd118f065f900982c24" |
| 32 | |
| 33 | SRC_URI = "${SOURCEFORGE_MIRROR}/sox/sox-${PV}.tar.gz \ |
| 34 | file://0001-remove-the-error-line-and-live-without-file-type-det.patch \ |
| 35 | file://0001-Update-exported-symbol-list.patch \ |
| 36 | " |
| 37 | SRC_URI[md5sum] = "d04fba2d9245e661f245de0577f48a33" |
| 38 | SRC_URI[sha256sum] = "b45f598643ffbd8e363ff24d61166ccec4836fea6d3888881b8df53e3bb55f6c" |
| 39 | |
| 40 | inherit autotools pkgconfig |