Ticket #20795: Portfile

File Portfile, 1.7 KB (added by jonthn+macports@…, 15 years ago)
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 54441 2009-07-27 18:25:33Z toby@macports.org $
3
4PortSystem 1.0
5PortGroup               muniversal 1.0
6
7name            libmad
8version         0.15.1b
9revision        2
10categories      audio
11maintainers     nomaintainer
12description     MPEG Audio Decoder
13long_description \
14    MAD is a high-quality MPEG audio decoder.  \
15    It currently supports MPEG-1 as well as the \
16    MPEG-2 extension to Lower Sampling Frequencies.  \
17    All three audio layers (Layer I, Layer II, and Layer \
18    III a.k.a. MP3) are fully implemented.
19homepage        http://www.underbit.com/products/mad/
20platforms       darwin freebsd
21master_sites    ftp://ftp.mars.org/pub/mpeg/ \
22                sourceforge:mad
23checksums       md5 1be543bc30c56fb6bea1d7bf6a64e66c
24
25depends_build   port:pkgconfig
26
27patchfiles      patch-configure
28
29post-patch {
30    file copy -force ${filespath}/mad.pc.in ${worksrcpath}/mad.pc
31
32    reinplace "s|%PREFIX%|${prefix}|g" ${worksrcpath}/mad.pc
33    reinplace "s|%VERSION%|${version}|g" ${worksrcpath}/mad.pc
34}
35
36post-destroot {
37    file mkdir ${destroot}${prefix}/lib/pkgconfig
38    file copy -force ${worksrcpath}/mad.pc ${destroot}${prefix}/lib/pkgconfig
39}
40
41platform macosx {
42    merger_arch_flag     no
43    merger_arch_compiler yes
44
45    set merger_configure_args(ppc)  --enable-fpm=ppc
46    set merger_configure_args(i386) --enable-fpm=ppc
47    set merger_configure_args(x86_64)   --enable-fpm=64bit
48    set merger_configure_args(ppc64)    --enable-fpm=64bit
49}
50
51livecheck.check regex
52livecheck.url   ftp://ftp.mars.org/pub/mpeg/
53livecheck.regex "${name}-(\\d+(?:\\.\\d+)*\[a-z\])${extract.suffix}"
54