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

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

flac: fix build when ${build_arch} is changed

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