Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Free Lossless Audio Codec" |
| 2 | DESCRIPTION = "FLAC stands for Free Lossless Audio Codec, a lossless audio compression format." |
| 3 | HOMEPAGE = "https://xiph.org/flac/" |
| 4 | BUGTRACKER = "http://sourceforge.net/p/flac/bugs/" |
| 5 | SECTION = "libs" |
| 6 | LICENSE = "GFDL-1.2 & GPLv2+ & LGPLv2.1+ & BSD" |
| 7 | LIC_FILES_CHKSUM = "file://COPYING.FDL;md5=ad1419ecc56e060eccf8184a87c4285f \ |
| 8 | file://src/Makefile.am;beginline=1;endline=17;md5=0a853b81d9d43d8aad3b53b05cfcc37e \ |
| 9 | file://COPYING.GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
| 10 | file://src/flac/main.c;beginline=1;endline=18;md5=d03a766558d233f9cc3ac5dfafd49deb \ |
| 11 | file://COPYING.LGPL;md5=fbc093901857fcd118f065f900982c24 \ |
| 12 | file://src/plugin_common/all.h;beginline=1;endline=18;md5=7c8a3b9e1e66ed0aba765bc6f35da85d \ |
| 13 | file://COPYING.Xiph;md5=a2c4b71c0198682376d483eb5bcc9197 \ |
| 14 | file://include/FLAC/all.h;beginline=65;endline=70;md5=64474f2b22e9e77b28d8b8b25c983a48" |
| 15 | DEPENDS = "libogg" |
| 16 | |
| 17 | SRC_URI = "http://downloads.xiph.org/releases/flac/${BP}.tar.xz" |
| 18 | |
| 19 | SRC_URI[md5sum] = "b9922c9a0378c88d3e901b234f852698" |
| 20 | SRC_URI[sha256sum] = "4773c0099dba767d963fd92143263be338c48702172e8754b9bc5103efe1c56c" |
| 21 | |
| 22 | inherit autotools gettext |
| 23 | |
| 24 | EXTRA_OECONF = "--disable-oggtest \ |
| 25 | --with-ogg-libraries=${STAGING_LIBDIR} \ |
| 26 | --with-ogg-includes=${STAGING_INCDIR} \ |
| 27 | --disable-xmms-plugin \ |
| 28 | --without-libiconv-prefix \ |
| 29 | ac_cv_prog_NASM="" \ |
| 30 | " |
| 31 | |
| 32 | EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "altivec", " --enable-altivec", " --disable-altivec", d)}" |
| 33 | EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "core2", " --enable-sse", "", d)}" |
| 34 | EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "corei7", " --enable-sse", "", d)}" |
| 35 | |
| 36 | PACKAGES += "libflac libflac++ liboggflac liboggflac++" |
| 37 | FILES_${PN} = "${bindir}/*" |
| 38 | FILES_libflac = "${libdir}/libFLAC.so.*" |
| 39 | FILES_libflac++ = "${libdir}/libFLAC++.so.*" |
| 40 | FILES_liboggflac = "${libdir}/libOggFLAC.so.*" |
| 41 | FILES_liboggflac++ = "${libdir}/libOggFLAC++.so.*" |
| 42 | |