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

Last change on this file since 73660 was 73660, checked in by devans@…, 8 years ago

flac: fix livecheck, add mode line.

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