Libmad version 0.15.1b - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    version 0.15.1b

      View the most recent changes for the libmad port at: libmad.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for libmad.
      The raw portfile for libmad 0.15.1b is located here:
      http://libmad.darwinports.com/dports/audio/libmad/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/libmad


      # -*- 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
      The libmad Portfile 57217 2009-09-07 18:30:16Z nox macports.org $

      PortSystem 1.0

      Name: libmad
      Version: 0.15.1b
      Revision: 2
      Category: audio
      Maintainers: nomaintainer
      Description: MPEG Audio Decoder
      Long Description: MAD is a high-quality MPEG audio decoder. It currently supports MPEG-1 as well as the MPEG-2 extension to Lower Sampling Frequencies. All three audio layers (Layer I, Layer II, and Layer III a.k.a. MP3) are fully implemented.
      Homepage: http://www.underbit.com/products/mad/
      Platform: darwin freebsd
      Master Sites: ftp://ftp.mars.org/pub/mpeg/ sourceforge:mad
      Checksums: md5 1be543bc30c56fb6bea1d7bf6a64e66c

      depends_build port:pkgconfig port:libtool port:autoconf

      post-extract {
      copy ${filespath}/mad.pc.in ${worksrcpath}/mad.pc
      }

      post-patch {
      reinplace -E /-march=i486/d ${worksrcpath}/configure.ac

      reinplace "s|%PREFIX%|${prefix}|g" ${worksrcpath}/mad.pc
      reinplace "s|%VERSION%|${version}|g" ${worksrcpath}/mad.pc
      }

      pre-configure {
      system "cd ${worksrcpath} && aclocal && glibtoolize"
      }

      post-destroot {
      xinstall -d ${destroot}${prefix}/lib/pkgconfig
      xinstall -m 644 ${worksrcpath}/mad.pc ${destroot}${prefix}/lib/pkgconfig
      }

      livecheck.type regex
      livecheck.url ftp://ftp.mars.org/pub/mpeg/
      livecheck.regex "${name}-(\\d+(?:\\.\\d+)*\[a-z\])${extract.suffix}"

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/libmad
      % sudo port install libmad
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching libmad
      ---> Verifying checksum for libmad
      ---> Extracting libmad
      ---> Configuring libmad
      ---> Building libmad with target all
      ---> Staging libmad into destroot
      ---> Installing libmad
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using libmad with these commands:
      %  man libmad
      % apropos libmad
      % which libmad
      % locate libmad

     Where to find more information:

    Darwin Ports



    Lightbox this page.