xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-multimedia/recipes-multimedia/sox/sox_14.4.2.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunDESCRIPTION="SoX is the Swiss Army knife of sound processing tools. \
2*4882a593SmuzhiyunIt converts audio files among various standard audio file formats \
3*4882a593Smuzhiyunand can apply different effects and filters to the audio data."
4*4882a593SmuzhiyunHOMEPAGE = "http://sox.sourceforge.net"
5*4882a593SmuzhiyunSECTION = "audio"
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunDEPENDS = "libpng ffmpeg libsndfile1"
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunPACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'alsa pulseaudio', d)} \
10*4882a593Smuzhiyun                   magic \
11*4882a593Smuzhiyun"
12*4882a593SmuzhiyunPACKAGECONFIG[pulseaudio] = "--with-pulseaudio=dyn,--with-pulseaudio=no,pulseaudio,"
13*4882a593SmuzhiyunPACKAGECONFIG[alsa] = "--with-alsa=dyn,--with-alsa=no,alsa-lib,"
14*4882a593SmuzhiyunPACKAGECONFIG[wavpack] = "--with-wavpack=dyn,--with-wavpack=no,wavpack,"
15*4882a593SmuzhiyunPACKAGECONFIG[flac] = "--with-flac=dyn,--with-flac=no,flac,"
16*4882a593SmuzhiyunPACKAGECONFIG[amrwb] = "--with-amrwb=dyn,--with-amrwb=no,opencore-amr,"
17*4882a593SmuzhiyunPACKAGECONFIG[amrnb] = "--with-amrnb=dyn,--with-amrnb=no,opencore-amr,"
18*4882a593SmuzhiyunPACKAGECONFIG[oggvorbis] = "--with-oggvorbis=dyn,--with-oggvorbis=no,libvorbis"
19*4882a593SmuzhiyunPACKAGECONFIG[opus] = "--with-opus=dyn,--with-opus=no,opusfile"
20*4882a593SmuzhiyunPACKAGECONFIG[magic] = "--with-magic,--without-magic,file,"
21*4882a593SmuzhiyunPACKAGECONFIG[mad] = "--with-mad,--without-mad,libmad,"
22*4882a593SmuzhiyunPACKAGECONFIG[id3tag] = "--with-id3tag,--without-id3tag,libid3tag,"
23*4882a593SmuzhiyunPACKAGECONFIG[lame] = "--with-lame,--without-lame,lame,"
24*4882a593SmuzhiyunPACKAGECONFIG[ao] = "--with-ao,--without-ao,libao,"
25*4882a593Smuzhiyun
26*4882a593SmuzhiyunLICENSE = "GPL-2.0-only & LGPL-2.1-only"
27*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://LICENSE.GPL;md5=751419260aa954499f7abaabaa882bbe \
28*4882a593Smuzhiyun                    file://LICENSE.LGPL;md5=fbc093901857fcd118f065f900982c24"
29*4882a593Smuzhiyun
30*4882a593SmuzhiyunSRC_URI = "${SOURCEFORGE_MIRROR}/sox/sox-${PV}.tar.gz \
31*4882a593Smuzhiyun           file://0001-remove-the-error-line-and-live-without-file-type-det.patch \
32*4882a593Smuzhiyun           file://0001-Update-exported-symbol-list.patch \
33*4882a593Smuzhiyun           "
34*4882a593SmuzhiyunSRC_URI[md5sum] = "d04fba2d9245e661f245de0577f48a33"
35*4882a593SmuzhiyunSRC_URI[sha256sum] = "b45f598643ffbd8e363ff24d61166ccec4836fea6d3888881b8df53e3bb55f6c"
36*4882a593Smuzhiyun
37*4882a593Smuzhiyuninherit autotools pkgconfig
38*4882a593Smuzhiyun
39*4882a593SmuzhiyunEXCLUDE_FROM_WORLD = "${@bb.utils.contains("LICENSE_FLAGS_ACCEPTED", "commercial", "0", "1", d)}"
40