source: trunk/dports/audio/flac/Portfile

Last change on this file was 141182, checked in by jeremyhu@…, 2 years ago

misc: Remove references to older versions of macports-clang that are no longer used

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