blob: 92ef8973e91e028c1581d279bd859cf0f0410678 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001SUMMARY = "Free Lossless Audio Codec"
2DESCRIPTION = "FLAC stands for Free Lossless Audio Codec, a lossless audio compression format."
3HOMEPAGE = "https://xiph.org/flac/"
4BUGTRACKER = "http://sourceforge.net/p/flac/bugs/"
5SECTION = "libs"
6LICENSE = "GFDL-1.2 & GPLv2+ & LGPLv2.1+ & BSD"
7LIC_FILES_CHKSUM = "file://COPYING.FDL;md5=ad1419ecc56e060eccf8184a87c4285f \
8 file://src/Makefile.am;beginline=1;endline=17;md5=09501c864f89dfc7ead65553129817ca \
9 file://COPYING.GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
10 file://src/flac/main.c;beginline=1;endline=18;md5=09777e2934947a36f13568d0beb81199 \
11 file://COPYING.LGPL;md5=fbc093901857fcd118f065f900982c24 \
12 file://src/plugin_common/all.h;beginline=1;endline=18;md5=f56cb4ba9a3bc9ec6102e8df03215271 \
13 file://COPYING.Xiph;md5=b59c1b6d7fc0fb7965f821a3d36505e3 \
14 file://include/FLAC/all.h;beginline=65;endline=70;md5=64474f2b22e9e77b28d8b8b25c983a48"
15DEPENDS = "libogg"
16
Brad Bishop220d5532018-08-14 00:59:39 +010017SRC_URI = "http://downloads.xiph.org/releases/flac/${BP}.tar.xz \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080018 file://CVE-2017-6888.patch "
19
Brad Bishop6e60e8b2018-02-01 10:27:11 -050020
21SRC_URI[md5sum] = "454f1bfa3f93cc708098d7890d0499bd"
22SRC_URI[sha256sum] = "91cfc3ed61dc40f47f050a109b08610667d73477af6ef36dcad31c31a4a8d53f"
23
24CVE_PRODUCT = "libflac"
25
26inherit autotools gettext
27
28EXTRA_OECONF = "--disable-oggtest \
29 --with-ogg-libraries=${STAGING_LIBDIR} \
30 --with-ogg-includes=${STAGING_INCDIR} \
31 --disable-xmms-plugin \
32 --without-libiconv-prefix \
33 ac_cv_prog_NASM="" \
34 "
35
36EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "altivec", " --enable-altivec", " --disable-altivec", d)}"
37EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "core2", " --enable-sse", "", d)}"
38EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "corei7", " --enable-sse", "", d)}"
39
40PACKAGES += "libflac libflac++ liboggflac liboggflac++"
41FILES_${PN} = "${bindir}/*"
42FILES_libflac = "${libdir}/libFLAC.so.*"
43FILES_libflac++ = "${libdir}/libFLAC++.so.*"
44FILES_liboggflac = "${libdir}/libOggFLAC.so.*"
45FILES_liboggflac++ = "${libdir}/libOggFLAC++.so.*"
46