[build] type = "cmake" [build.flags] build_dir = "build" configure = [ "-DBUILD_SHARED_LIBS=ON", "-DNDEBUG=ON", "-DWITH_FORTIFY_SOURCE=OFF", "-DWITH_STACK_PROTECTOR=OFF", "-G Ninja", ] make-test-vars = [ "-j1" ] post_install = [ 'install -Dm 644 src/*/*.m4 -t "$DESTDIR/usr/share/aclocal"' ] [dependencies] build = [ "cmake", "nasm", "ninja", "pandoc", ] runtime = [ "glibc", "libunwind", "libcxx", "libogg", ] [package] description = "Free Lossless Audio Codec" homepage = "https://xiph.org/flac/" license = [ "BSD-3-Clause", "GPL-2.0-or-later", ] name = "flac" version = "1.5.0" [[source]] extract_dir = "$name-$version" post_extract = ["sed -i 's/FLAC__TEST_LEVEL=1/FLAC__TEST_LEVEL=0/' test/CMakeLists.txt"] url = "https://github.com/xiph/flac.git#$version"