Skip to content
Snippets Groups Projects
Commit 69ce6d36 authored by J0WI's avatar J0WI Committed by alice
Browse files

main/flac: upgrade to 1.4.0

parent 8b78a9e4
No related branches found
No related tags found
2 merge requests!39304[3.16] main/expat: security upgrade to 2.4.9,!38894main/flac: upgrade to 1.4.0
# Maintainer: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=flac pkgname=flac
pkgver=1.3.4 pkgver=1.4.0
pkgrel=0 pkgrel=0
pkgdesc="Free Lossless Audio Codec" pkgdesc="Free Lossless Audio Codec"
url="https://xiph.org/flac/" url="https://xiph.org/flac/"
arch="all" arch="all"
license="custom:Xiph LGPL GPL FDL" license="custom:Xiph LGPL GPL FDL"
options="!check" # Tests are infinite options="!check" # Tests are infinite
subpackages="$pkgname-dev $pkgname-doc" subpackages="$pkgname-dev $pkgname-libs $pkgname-doc"
makedepends="libogg-dev !libiconv" makedepends="cmake libogg-dev nasm !libiconv samurai"
source="http://downloads.xiph.org/releases/flac/flac-$pkgver.tar.xz" source="https://downloads.xiph.org/releases/flac/flac-$pkgver.tar.xz"
# secfixes: # secfixes:
# 1.3.4-r0: # 1.3.4-r0:
...@@ -20,36 +20,42 @@ source="http://downloads.xiph.org/releases/flac/flac-$pkgver.tar.xz" ...@@ -20,36 +20,42 @@ source="http://downloads.xiph.org/releases/flac/flac-$pkgver.tar.xz"
build() { build() {
local _arch_conf
case "$CARCH" in case "$CARCH" in
ppc*) _arch_conf="--enable-altivec" ;; x86)
x86_64) _arch_conf="--enable-sse" ;; local sse=off
x86) _arch_conf="--disable-sse" ;; ;;
x86_64)
local sse=on
;;
esac esac
./configure \ export CFLAGS="$CFLAGS -O2 -flto=auto"
--build=$CBUILD \ export CXXFLAGS="$CXXFLAGS -O2 -flto=auto"
--host=$CHOST \
--prefix=/usr \ cmake -B build -G Ninja \
--mandir=/usr/share/man \ -DCMAKE_INSTALL_PREFIX=/usr \
--enable-shared \ -DCMAKE_BUILD_TYPE=None \
--enable-ogg \ -DCMAKE_INSTALL_MANDIR=/usr/share/man/man1 \
--disable-rpath \ -DBUILD_TESTING=OFF \
--with-pic \ -DBUILD_EXAMPLES=OFF \
$_arch_conf -DBUILD_SHARED_LIBS=ON \
make -DNDEBUG=ON \
-DWITH_SSE=$sse
cmake --build build
} }
check() { check() {
make check ctest --test-dir build --output-on-failure
} }
package() { package() {
make DESTDIR="$pkgdir" install DESTDIR="$pkgdir" cmake --install build
install -Dm0644 COPYING.Xiph \ install -Dm0644 COPYING.Xiph \
"$pkgdir"/usr/share/licenses/$pkgname/COPYING.Xiph "$pkgdir"/usr/share/licenses/$pkgname/COPYING.Xiph
} }
sha512sums=" sha512sums="
4a626e8a1bd126e234c0e5061e3b46f3a27c2065fdfa228fd8cf00d3c7fa2c05fafb5cec36acce7bfce4914bfd7db0b2a27ee15decf2d8c4caad630f62d44ec9 flac-1.3.4.tar.xz b7310de7bcf49584c0a1fdc6d5ee7216a8ab3e2b1af85366fa0905752da13e1cbb9638e0d92f3b756568a69848abf4d5c2fe0d21a86c6fdb4840f2678daf0f8d flac-1.4.0.tar.xz
" "
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment