source: trunk/dports/audio/libmad/Portfile @ 81752

Last change on this file since 81752 was 81752, checked in by jmr@…, 6 years ago

libmad: add missing automake dep

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 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 81752 2011-08-04 17:40:48Z jmr@macports.org $
3
4PortSystem 1.0
5
6name            libmad
7version         0.15.1b
8revision        2
9categories      audio
10maintainers     nomaintainer
11description     MPEG Audio Decoder
12long_description \
13    MAD is a high-quality MPEG audio decoder.  \
14    It currently supports MPEG-1 as well as the \
15    MPEG-2 extension to Lower Sampling Frequencies.  \
16    All three audio layers (Layer I, Layer II, and Layer \
17    III a.k.a. MP3) are fully implemented.
18homepage        http://www.underbit.com/products/mad/
19platforms       darwin freebsd
20master_sites    ftp://ftp.mars.org/pub/mpeg/ \
21                sourceforge:mad
22checksums       md5 1be543bc30c56fb6bea1d7bf6a64e66c
23
24depends_build   port:pkgconfig \
25                port:libtool \
26                port:automake \
27                port:autoconf
28
29post-extract {
30    copy ${filespath}/mad.pc.in ${worksrcpath}/mad.pc
31}
32
33post-patch {
34    reinplace -E /-march=i486/d ${worksrcpath}/configure.ac
35 
36    reinplace "s|%PREFIX%|${prefix}|g" ${worksrcpath}/mad.pc
37    reinplace "s|%VERSION%|${version}|g" ${worksrcpath}/mad.pc
38}
39
40pre-configure {
41    system "cd ${worksrcpath} && aclocal && glibtoolize"
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.