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 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup muniversal 1.0 |
---|
6 | |
---|
7 | name libmad |
---|
8 | version 0.15.1b |
---|
9 | revision 2 |
---|
10 | categories audio |
---|
11 | maintainers nomaintainer |
---|
12 | description MPEG Audio Decoder |
---|
13 | long_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. |
---|
19 | homepage http://www.underbit.com/products/mad/ |
---|
20 | platforms darwin freebsd |
---|
21 | master_sites ftp://ftp.mars.org/pub/mpeg/ \ |
---|
22 | sourceforge:mad |
---|
23 | checksums md5 1be543bc30c56fb6bea1d7bf6a64e66c |
---|
24 | |
---|
25 | depends_build port:pkgconfig |
---|
26 | |
---|
27 | patchfiles patch-configure |
---|
28 | |
---|
29 | post-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 | |
---|
36 | post-destroot { |
---|
37 | file mkdir ${destroot}${prefix}/lib/pkgconfig |
---|
38 | file copy -force ${worksrcpath}/mad.pc ${destroot}${prefix}/lib/pkgconfig |
---|
39 | } |
---|
40 | |
---|
41 | platform 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=intel |
---|
47 | set merger_configure_args(x86_64) --enable-fpm=64bit |
---|
48 | set merger_configure_args(ppc64) --enable-fpm=64bit |
---|
49 | } |
---|
50 | |
---|
51 | livecheck.check regex |
---|
52 | livecheck.url ftp://ftp.mars.org/pub/mpeg/ |
---|
53 | livecheck.regex "${name}-(\\d+(?:\\.\\d+)*\[a-z\])${extract.suffix}" |
---|
54 | |
---|