Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [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 = "https://github.com/xiph/flac/issues" |
| 5 | SECTION = "libs" |
| 6 | LICENSE = "GFDL-1.2 & GPL-2.0-or-later & LGPL-2.1-or-later & BSD-3-Clause" |
| 7 | LIC_FILES_CHKSUM = "file://COPYING.FDL;md5=ad1419ecc56e060eccf8184a87c4285f \ |
| 8 | file://src/Makefile.am;beginline=1;endline=17;md5=146d2c8c2fd287545cc1bd81f31e8758 \ |
| 9 | file://COPYING.GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
| 10 | file://src/flac/main.c;beginline=1;endline=18;md5=893456854ce6bf14a1a7ea77266eebab \ |
| 11 | file://COPYING.LGPL;md5=fbc093901857fcd118f065f900982c24 \ |
| 12 | file://COPYING.Xiph;md5=3d6da238b5b57a0965d6730291119f65 \ |
| 13 | file://include/FLAC/all.h;beginline=65;endline=70;md5=39aaf5e03c7364363884c8b8ddda8eea" |
| 14 | |
| 15 | SRC_URI = "http://downloads.xiph.org/releases/flac/${BP}.tar.xz" |
| 16 | SRC_URI[sha256sum] = "e322d58a1f48d23d9dd38f432672865f6f79e73a6f9cc5a5f57fcaa83eb5a8e4" |
| 17 | |
| 18 | CVE_PRODUCT = "libflac flac" |
| 19 | |
| 20 | inherit autotools gettext |
| 21 | |
| 22 | EXTRA_OECONF = "--disable-oggtest \ |
| 23 | --without-libiconv-prefix \ |
| 24 | ac_cv_prog_NASM="" \ |
| 25 | " |
| 26 | |
| 27 | PACKAGECONFIG ??= " \ |
| 28 | ${@bb.utils.filter("TUNE_FEATURES", "altivec vsx", d)} \ |
| 29 | ogg \ |
| 30 | " |
| 31 | PACKAGECONFIG[altivec] = "--enable-altivec,--disable-altivec" |
| 32 | PACKAGECONFIG[vsx] = "--enable-vsx,--disable-vsx" |
| 33 | PACKAGECONFIG[avx] = "--enable-avx,--disable-avx" |
| 34 | PACKAGECONFIG[ogg] = "--enable-ogg --with-ogg-libraries=${STAGING_LIBDIR} --with-ogg-includes=${STAGING_INCDIR},--disable-ogg,libogg" |
| 35 | |
| 36 | PACKAGES += "libflac libflac++" |
| 37 | FILES:${PN} = "${bindir}/*" |
| 38 | FILES:libflac = "${libdir}/libFLAC.so.*" |
| 39 | FILES:libflac++ = "${libdir}/libFLAC++.so.*" |