# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortGroup compiler_blacklist_versions 1.0
description Free Lossless Audio Codec
long_description FLAC stands for Free Lossless Audio Codec. Grossly \
oversimplified, FLAC is similar to MP3, but \
lossless, meaning that audio is compressed in FLAC \
without throwing away any information. This is \
similar to how Zip works, except with FLAC you \
will get much better compression because it is \
designed specifically for audio, and you can play \
back compressed FLAC files in your favorite player \
(or your car or home stereo) just like you would \
homepage https://xiph.org/flac/
depends_lib port:libiconv port:libogg
master_sites https://downloads.xiph.org/releases/flac/
checksums rmd160 8e5d51781d2cead83f2f0cdd1f28ba4cc641e0e1 \
sha256 213e82bd716c9de6db2f98bcadbc4c24c7e2efe8c75939a1a84e28539c4e1748 \
patchfiles patch-nasm.h.diff \
# <rdar://problem/15203338>
configure.cflags-append -std=gnu89
# https://trac.macports.org/ticket/46038
# 3.1 through 3.3 have cpuid.h but lack __cpuid_count()
compiler.blacklist macports-clang-3.3 {clang < 503}
configure.args --disable-silent-rules \
configure.args-append --disable-asm-optimizations
if {[variant_isset universal]} {
system -W ${worksrcpath} "ed - ${worksrcpath}/config.h < ${filespath}/config.h.ed && touch stamp-h1"
build.args OBJ_FORMAT=macho