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

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

flac: rewrite master_sites to avoid redirects

  • 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 82647 2011-08-17 15:19:03Z 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
35post-configure {
36    if {[variant_isset universal]} {
37        system "cd ${worksrcpath} && ed - ${worksrcpath}/config.h < ${filespath}/config.h.ed && touch stamp-h1"
38        set flags ${configure.universal_ldflags}
39    } else {
40        set flags ${configure.cc_archflags}
41    }
42    reinplace "s|CC -dynamiclib|CC -dynamiclib ${flags}|g" ${worksrcpath}/libtool
43}
44
45build.args      OBJ_FORMAT=macho
46
47test.run        yes
48test.target     check
49
50variant xmms_plugin description "Build xmms plugin" {
51    configure.args-delete   --disable-xmms-plugin
52    depends_lib-append      port:xmms
53}
54
55platform darwin i386 {
56    configure.args-append   --disable-asm-optimizations
57}
58
59livecheck.url   http://sourceforge.net/projects/${name}/files/${name}-src
60livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)"
Note: See TracBrowser for help on using the repository browser.