summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia/flac
diff options
context:
space:
mode:
authorRobert Joslyn <robert.joslyn@redrectangle.org>2022-09-18 10:22:02 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-09-20 23:17:53 +0100
commitd347251c37d0d46d19e6893ebb7e7af85f625def (patch)
treed8d686ea5d6726c23b4d5b404c3cbb3be4a82c88 /meta/recipes-multimedia/flac
parentf9696c11ac401a604ce90640d9c3e4017b23262f (diff)
downloadpoky-d347251c37d0d46d19e6893ebb7e7af85f625def.tar.gz
flac: Update 1.3.4 to 1.4.0
This is a major update with some breaking library changes. Full release notes are available at: https://xiph.org/flac/changelog.html As part of this update, make some changes to the recipe: * Development has moved from sourceforge to github, update BUGTRACKER link. * Move ogg support to a PACKAGECONFIG option rather than force enabled. Keep it enabled by default to retain previous behavior. * Move altivec, vsx, and sse flags to PACKAGECONFIG as well to make them easier to toggle. Add new avx flag which enables runtime detection of AVX/AVX2 instructions. * Remove liboggflac and liboggflac++ packaging. This was merged into the main libflac and libflac++ libraries in version 1.1.3, so these packages have been empty. License-Update: Updated copyright years (From OE-Core rev: 2903e36c93eb33d5baa3dc9aa69fc80ee319794e) Signed-off-by: Robert Joslyn <robert.joslyn@redrectangle.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia/flac')
-rw-r--r--meta/recipes-multimedia/flac/flac_1.4.0.bb (renamed from meta/recipes-multimedia/flac/flac_1.3.4.bb)38
1 files changed, 18 insertions, 20 deletions
diff --git a/meta/recipes-multimedia/flac/flac_1.3.4.bb b/meta/recipes-multimedia/flac/flac_1.4.0.bb
index 012da0a0a0..360396380d 100644
--- a/meta/recipes-multimedia/flac/flac_1.3.4.bb
+++ b/meta/recipes-multimedia/flac/flac_1.4.0.bb
@@ -1,45 +1,43 @@
1SUMMARY = "Free Lossless Audio Codec" 1SUMMARY = "Free Lossless Audio Codec"
2DESCRIPTION = "FLAC stands for Free Lossless Audio Codec, a lossless audio compression format." 2DESCRIPTION = "FLAC stands for Free Lossless Audio Codec, a lossless audio compression format."
3HOMEPAGE = "https://xiph.org/flac/" 3HOMEPAGE = "https://xiph.org/flac/"
4BUGTRACKER = "http://sourceforge.net/p/flac/bugs/" 4BUGTRACKER = "https://github.com/xiph/flac/issues"
5SECTION = "libs" 5SECTION = "libs"
6LICENSE = "GFDL-1.2 & GPL-2.0-or-later & LGPL-2.1-or-later & BSD-3-Clause" 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 \ 7LIC_FILES_CHKSUM = "file://COPYING.FDL;md5=ad1419ecc56e060eccf8184a87c4285f \
8 file://src/Makefile.am;beginline=1;endline=17;md5=09501c864f89dfc7ead65553129817ca \ 8 file://src/Makefile.am;beginline=1;endline=17;md5=146d2c8c2fd287545cc1bd81f31e8758 \
9 file://COPYING.GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ 9 file://COPYING.GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
10 file://src/flac/main.c;beginline=1;endline=18;md5=09777e2934947a36f13568d0beb81199 \ 10 file://src/flac/main.c;beginline=1;endline=18;md5=893456854ce6bf14a1a7ea77266eebab \
11 file://COPYING.LGPL;md5=fbc093901857fcd118f065f900982c24 \ 11 file://COPYING.LGPL;md5=fbc093901857fcd118f065f900982c24 \
12 file://src/plugin_common/all.h;beginline=1;endline=18;md5=f56cb4ba9a3bc9ec6102e8df03215271 \ 12 file://src/plugin_common/all.h;beginline=1;endline=18;md5=73c74192ce89ee6238d15a171e00c971 \
13 file://COPYING.Xiph;md5=b59c1b6d7fc0fb7965f821a3d36505e3 \ 13 file://COPYING.Xiph;md5=3d6da238b5b57a0965d6730291119f65 \
14 file://include/FLAC/all.h;beginline=65;endline=70;md5=64474f2b22e9e77b28d8b8b25c983a48" 14 file://include/FLAC/all.h;beginline=65;endline=70;md5=64474f2b22e9e77b28d8b8b25c983a48"
15DEPENDS = "libogg"
16 15
17SRC_URI = "http://downloads.xiph.org/releases/flac/${BP}.tar.xz \ 16SRC_URI = "http://downloads.xiph.org/releases/flac/${BP}.tar.xz"
18" 17SRC_URI[sha256sum] = "af41c0733c93c237c3e52f64dd87e3b0d9af38259f1c7d11e8cbf583c48c2506"
19
20SRC_URI[sha256sum] = "8ff0607e75a322dd7cd6ec48f4f225471404ae2730d0ea945127b1355155e737"
21 18
22CVE_PRODUCT = "libflac flac" 19CVE_PRODUCT = "libflac flac"
23 20
24inherit autotools gettext 21inherit autotools gettext
25 22
26EXTRA_OECONF = "--disable-oggtest \ 23EXTRA_OECONF = "--disable-oggtest \
27 --with-ogg-libraries=${STAGING_LIBDIR} \
28 --with-ogg-includes=${STAGING_INCDIR} \
29 --disable-xmms-plugin \ 24 --disable-xmms-plugin \
30 --without-libiconv-prefix \ 25 --without-libiconv-prefix \
31 ac_cv_prog_NASM="" \ 26 ac_cv_prog_NASM="" \
32 " 27 "
33 28
34EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "altivec", " --enable-altivec", " --disable-altivec", d)}" 29PACKAGECONFIG ??= " \
35EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "vsx", " --enable-vsx", " --disable-vsx", d)}" 30 ${@bb.utils.filter("TUNE_FEATURES", "altivec vsx", d)} \
36EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "core2", " --enable-sse", "", d)}" 31 ${@bb.utils.contains_any("TUNE_FEATURES", "core2 corei7", "sse", "", d)} \
37EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "corei7", " --enable-sse", "", d)}" 32 ogg \
33"
34PACKAGECONFIG[sse] = "--enable-sse,--disable-sse"
35PACKAGECONFIG[altivec] = "--enable-altivec,--disable-altivec"
36PACKAGECONFIG[vsx] = "--enable-vsx,--disable-vsx"
37PACKAGECONFIG[avx] = "--enable-avx,--disable-avx"
38PACKAGECONFIG[ogg] = "--enable-ogg --with-ogg-libraries=${STAGING_LIBDIR} --with-ogg-includes=${STAGING_INCDIR},--disable-ogg,libogg"
38 39
39PACKAGES += "libflac libflac++ liboggflac liboggflac++" 40PACKAGES += "libflac libflac++"
40FILES:${PN} = "${bindir}/*" 41FILES:${PN} = "${bindir}/*"
41FILES:libflac = "${libdir}/libFLAC.so.*" 42FILES:libflac = "${libdir}/libFLAC.so.*"
42FILES:libflac++ = "${libdir}/libFLAC++.so.*" 43FILES:libflac++ = "${libdir}/libFLAC++.so.*"
43FILES:liboggflac = "${libdir}/libOggFLAC.so.*"
44FILES:liboggflac++ = "${libdir}/libOggFLAC++.so.*"
45