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 | |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 7 | DEPENDS = "libpng ffmpeg libsndfile1 libtool" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 8 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 9 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'alsa pulseaudio', d)} \ |
| 10 | magic \ |
| 11 | " |
| 12 | PACKAGECONFIG[pulseaudio] = "--with-pulseaudio=dyn,--with-pulseaudio=no,pulseaudio," |
| 13 | PACKAGECONFIG[alsa] = "--with-alsa=dyn,--with-alsa=no,alsa-lib," |
| 14 | PACKAGECONFIG[wavpack] = "--with-wavpack=dyn,--with-wavpack=no,wavpack," |
| 15 | PACKAGECONFIG[flac] = "--with-flac=dyn,--with-flac=no,flac," |
| 16 | PACKAGECONFIG[amrwb] = "--with-amrwb=dyn,--with-amrwb=no,opencore-amr," |
| 17 | PACKAGECONFIG[amrnb] = "--with-amrnb=dyn,--with-amrnb=no,opencore-amr," |
| 18 | PACKAGECONFIG[oggvorbis] = "--with-oggvorbis=dyn,--with-oggvorbis=no,libvorbis" |
| 19 | PACKAGECONFIG[opus] = "--with-opus=dyn,--with-opus=no,opusfile" |
| 20 | PACKAGECONFIG[magic] = "--with-magic,--without-magic,file," |
| 21 | PACKAGECONFIG[mad] = "--with-mad,--without-mad,libmad," |
| 22 | PACKAGECONFIG[id3tag] = "--with-id3tag,--without-id3tag,libid3tag," |
| 23 | PACKAGECONFIG[lame] = "--with-lame,--without-lame,lame," |
| 24 | PACKAGECONFIG[ao] = "--with-ao,--without-ao,libao," |
| 25 | |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 26 | LICENSE = "GPL-2.0-only & LGPL-2.1-only" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 27 | LIC_FILES_CHKSUM = "file://LICENSE.GPL;md5=751419260aa954499f7abaabaa882bbe \ |
| 28 | file://LICENSE.LGPL;md5=fbc093901857fcd118f065f900982c24" |
| 29 | |
| 30 | SRC_URI = "${SOURCEFORGE_MIRROR}/sox/sox-${PV}.tar.gz \ |
| 31 | file://0001-remove-the-error-line-and-live-without-file-type-det.patch \ |
| 32 | file://0001-Update-exported-symbol-list.patch \ |
| 33 | " |
| 34 | SRC_URI[md5sum] = "d04fba2d9245e661f245de0577f48a33" |
| 35 | SRC_URI[sha256sum] = "b45f598643ffbd8e363ff24d61166ccec4836fea6d3888881b8df53e3bb55f6c" |
| 36 | |
| 37 | inherit autotools pkgconfig |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 38 | |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 39 | # Enable largefile support |
| 40 | CFLAGS += "-D_FILE_OFFSET_BITS=64" |
| 41 | |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 42 | EXCLUDE_FROM_WORLD = "${@bb.utils.contains("LICENSE_FLAGS_ACCEPTED", "commercial", "0", "1", d)}" |