source: trunk/dports/audio/flac/Portfile @ 129076

Last change on this file since 129076 was 129076, checked in by jeremyhu@…, 4 years ago

flac: Fix build failure if optflags is set to -O0 -g3

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# -*- 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
2# $Id: Portfile 129076 2014-12-04 23:45:09Z jeremyhu@macports.org $
3
4PortSystem          1.0
5
6name                flac
7version             1.3.1
8revision            2
9categories          audio
10platforms           darwin
11license             GPL-2+ BSD
12maintainers         nomaintainer
13
14description         Free Lossless Audio Codec
15long_description    FLAC stands for Free Lossless Audio Codec. Grossly \
16                    oversimplified, FLAC is similar to MP3, but \
17                    lossless, meaning that audio is compressed in FLAC \
18                    without throwing away any information. This is \
19                    similar to how Zip works, except with FLAC you \
20                    will get much better compression because it is \
21                    designed specifically for audio, and you can play \
22                    back compressed FLAC files in your favorite player \
23                    (or your car or home stereo) just like you would \
24                    an MP3 file.
25homepage            https://xiph.org/flac/
26
27depends_lib         port:libiconv port:libogg
28
29master_sites        http://downloads.xiph.org/releases/flac/
30use_xz              yes
31checksums           rmd160  50d93b3663c1983af2b8cd0cea9f7069d5b8ab46 \
32                    sha256  4773c0099dba767d963fd92143263be338c48702172e8754b9bc5103efe1c56c
33
34patchfiles          patch-nasm.h.diff \
35                    patch-build_lib.mk.diff \
36                    autoconf-no-xmms.patch \
37                    autoconf-cflags.patch
38
39# Don't link with "-flat_namespace -undefined suppress" on Yosemite and later.
40patchfiles-append   yosemite-libtool.patch
41
42use_autoreconf      yes
43autoreconf.args     -fvi
44
45# <rdar://problem/15203338>
46configure.cflags-append -std=gnu89
47
48configure.args      --disable-silent-rules \
49                    --disable-xmms-plugin
50
51platform darwin i386 {
52    configure.args-append   --disable-asm-optimizations
53}
54
55post-configure {
56    if {[variant_isset universal]} {
57        system -W ${worksrcpath} "ed - ${worksrcpath}/config.h < ${filespath}/config.h.ed && touch stamp-h1"
58    }
59}
60
61build.args          OBJ_FORMAT=macho
62
63test.run            yes
64test.target         check
65
66variant xmms_plugin description "Build xmms plugin" {
67    depends_lib-append      port:xmms
68    configure.args-delete   --disable-xmms-plugin
69}
70
71livecheck.url       [lindex ${master_sites} 0]
72livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)"
Note: See TracBrowser for help on using the repository browser.