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

Last change on this file since 86443 was 86443, checked in by ryandesign@…, 7 years ago

flac: use llvm-gcc-4.2 instead of clang; see #31766

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 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 86443 2011-10-25 23:27:50Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            flac
7version         1.2.1
8categories      audio
9platforms       darwin
10license         GPL-2+ BSD
11maintainers     nomaintainer
12description     Free Lossless Audio Codec
13
14long_description \
15    FLAC stands for Free Lossless Audio Codec. Grossly oversimplified,FLAC is similar to MP3, but lossless, \
16    meaning that audio iscompressed in FLAC without throwing away any information. This issimilar to how Zip \
17    works, except with FLAC you will get much better compression because it is designed specifically for \
18    audio, and you canplay back compressed FLAC files in your favorite player (or your car or home stereo) \
19    just like you would an MP3 file.
20
21homepage        http://flac.sourceforge.net/
22master_sites    sourceforge:project/flac/flac-src/flac-${version}-src/
23
24checksums       md5 153c8b15a54da428d1f0fadc756c22c7
25
26depends_lib     port:libogg port:libiconv
27
28patchfiles      patch-ltmain.sh.diff \
29                patch-nasm.h.diff \
30                patch-build_lib.mk.diff
31
32configure.args  --mandir=${prefix}/share/man \
33                --disable-xmms-plugin
34
35if {${configure.compiler} == "clang"} {
36    configure.compiler llvm-gcc-4.2
37}
38
39post-configure {
40    if {[variant_isset universal]} {
41        system "cd ${worksrcpath} && ed - ${worksrcpath}/config.h < ${filespath}/config.h.ed && touch stamp-h1"
42    }
43    reinplace "s|CC -dynamiclib|CC -dynamiclib [get_canonical_archflags]|g" ${worksrcpath}/libtool
44}
45
46build.args      OBJ_FORMAT=macho
47
48test.run        yes
49test.target     check
50
51variant xmms_plugin description "Build xmms plugin" {
52    configure.args-delete   --disable-xmms-plugin
53    depends_lib-append      port:xmms
54}
55
56platform darwin i386 {
57    configure.args-append   --disable-asm-optimizations
58}
59
60livecheck.url   http://sourceforge.net/projects/${name}/files/${name}-src
61livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)"
Note: See TracBrowser for help on using the repository browser.