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

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

flac: Update to 1.3.1 (#46027)

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