blob: d4e463cda5efa2b27f5f847ec39b017f91d7eb14 [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001SUMMARY = "Free Lossless Audio Codec"
2DESCRIPTION = "FLAC stands for Free Lossless Audio Codec, a lossless audio compression format."
3HOMEPAGE = "https://xiph.org/flac/"
4BUGTRACKER = "https://github.com/xiph/flac/issues"
5SECTION = "libs"
6LICENSE = "GFDL-1.2 & GPL-2.0-or-later & LGPL-2.1-or-later & BSD-3-Clause"
7LIC_FILES_CHKSUM = "file://COPYING.FDL;md5=ad1419ecc56e060eccf8184a87c4285f \
Andrew Geissler8f840682023-07-21 09:09:43 -05008 file://src/Makefile.am;beginline=1;endline=17;md5=b1dab2704be7f01bfbd9b7f6d5f000a9 \
Andrew Geissler517393d2023-01-13 08:55:19 -06009 file://COPYING.GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
Andrew Geissler8f840682023-07-21 09:09:43 -050010 file://src/flac/main.c;beginline=1;endline=18;md5=23099119c034d894bd1bf7ef5bd22101 \
Andrew Geissler517393d2023-01-13 08:55:19 -060011 file://COPYING.LGPL;md5=fbc093901857fcd118f065f900982c24 \
Andrew Geissler8f840682023-07-21 09:09:43 -050012 file://COPYING.Xiph;md5=0c90e41ab2fa7e69ca9391330d870221 \
Andrew Geissler517393d2023-01-13 08:55:19 -060013 file://include/FLAC/all.h;beginline=65;endline=70;md5=39aaf5e03c7364363884c8b8ddda8eea"
14
15SRC_URI = "http://downloads.xiph.org/releases/flac/${BP}.tar.xz"
Andrew Geissler8f840682023-07-21 09:09:43 -050016SRC_URI[sha256sum] = "6c58e69cd22348f441b861092b825e591d0b822e106de6eb0ee4d05d27205b70"
Andrew Geissler517393d2023-01-13 08:55:19 -060017
18CVE_PRODUCT = "libflac flac"
19
20inherit autotools gettext
21
22EXTRA_OECONF = "--disable-oggtest \
23 --without-libiconv-prefix \
24 ac_cv_prog_NASM="" \
25 "
26
27PACKAGECONFIG ??= " \
Andrew Geissler517393d2023-01-13 08:55:19 -060028 ogg \
29"
Andrew Geissler517393d2023-01-13 08:55:19 -060030PACKAGECONFIG[avx] = "--enable-avx,--disable-avx"
31PACKAGECONFIG[ogg] = "--enable-ogg --with-ogg-libraries=${STAGING_LIBDIR} --with-ogg-includes=${STAGING_INCDIR},--disable-ogg,libogg"
32
33PACKAGES += "libflac libflac++"
34FILES:${PN} = "${bindir}/*"
35FILES:libflac = "${libdir}/libFLAC.so.*"
36FILES:libflac++ = "${libdir}/libFLAC++.so.*"