source: trunk/dports/audio/libmad/Portfile

Last change on this file was 101196, checked in by jeremyhu@…, 5 years ago

libmad: Build with automake 1.13

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
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 101196 2013-01-06 08:42:08Z ryandesign@macports.org $
3
4PortSystem      1.0
5PortGroup       muniversal 1.0
6
7name            libmad
8version         0.15.1b
9revision        3
10categories      audio
11license         GPL-2+
12maintainers     nomaintainer
13description     MPEG Audio Decoder
14long_description \
15    MAD is a high-quality MPEG audio decoder.  \
16    It currently supports MPEG-1 as well as the \
17    MPEG-2 extension to Lower Sampling Frequencies.  \
18    All three audio layers (Layer I, Layer II, and Layer \
19    III a.k.a. MP3) are fully implemented.
20homepage        http://www.underbit.com/products/mad/
21platforms       darwin freebsd
22master_sites    ftp://ftp.mars.org/pub/mpeg/ \
23                sourceforge:mad
24
25checksums           rmd160  0f3415ee10b188681e282ca69dec74c46ca73b0f \
26                    sha256  bbfac3ed6bfbc2823d3775ebb931087371e142bb0e9bb1bee51a76a6e0078690
27
28depends_build   port:pkgconfig
29
30use_autoreconf  yes
31
32post-extract {
33    copy ${filespath}/mad.pc.in ${worksrcpath}/mad.pc
34    touch ${worksrcpath}/AUTHORS ${worksrcpath}/ChangeLog ${worksrcpath}/NEWS
35}
36
37patchfiles      patch-configure.ac.diff automake.patch
38
39post-patch {
40    reinplace "s|%PREFIX%|${prefix}|g" ${worksrcpath}/mad.pc
41    reinplace "s|%VERSION%|${version}|g" ${worksrcpath}/mad.pc
42}
43
44post-destroot {
45    xinstall -d ${destroot}${prefix}/lib/pkgconfig
46    xinstall -m 644 ${worksrcpath}/mad.pc ${destroot}${prefix}/lib/pkgconfig
47}
48
49livecheck.type  regex
50livecheck.url   ftp://ftp.mars.org/pub/mpeg/
51livecheck.regex "${name}-(\\d+(?:\\.\\d+)*\[a-z\])${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.