Mpd version 0.15.4 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    version 0.15.4

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


      # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
      The mpd Portfile 59232 2009-10-12 12:28:16Z rmsfisher macports.org $

      PortSystem 1.0

      Name: mpd
      Version: 0.15.4
      Category: audio
      Maintainers: milosh rmsfisher openmaintainer
      Description: Music Player Daemon
      Long Description: Music Player Daemon (MPD) allows remote access for playing music (MP3, Ogg Vorbis, FLAC, AAC, Mod, and wave files) and managing playlists. MPD is designed for integrating a computer into a stereo system that provides control for music playback over a local network. It also makes a great desktop music player, especially if you are a console junkie, like frontend options, or restart X often.
      Homepage: http://www.musicpd.org/
      Platform: darwin
      Master Sites: sourceforge:musicpd
      use_bzip2 yes
      Checksums: md5 addbbcbbf8a24a2ce80db1ba5a1f91ca sha1 4bcc52f67d2cc78394f4e7780135a47da3480eb8 rmd160 cc468b08bbcb52c9f9bfc1d4652869f9595a543f
      depends_build path:bin/pkg-config:pkgconfig
      depends_lib port:audiofile port:faad2 port:flac path:lib/pkgconfig/glib-2.0.pc:glib2 port:libiconv lib:libmad.0:libmad lib:libid3tag.0:libid3tag port:libmpcdec port:libogg port:libvorbis port:zlib port:libao
      configure.args --mandir=${prefix}/share/man --enable-ao --disable-ffmpeg
      configure.cflags-append -I${prefix}/include
      Variant: ffmpeg description {Support for myriad formats via ffmpeg} {
      depends_lib-append path:bin/ffmpeg:ffmpeg
      configure.args-delete --disable-ffmpeg
      }
      Variant: mod description {Support for several formats of tracker/sequencer files via libmikmod} {
      depends_lib-append port:libmikmod
      configure.args-append --enable-mod
      }
      Variant: modplug description {Support for several formats of tracker/sequencer files via libmodplug} {
      depends_lib-append port:libmodplug
      configure.args-append --enable-modplug
      }
      platform macosx {
      configure.args-delete --enable-ao
      depends_lib-delete port:libao
      }
      platform darwin 10 {
      patchfiles patch-src-output-osx_plugin.c
      }
      startupitem.create yes
      startupitem.start "${prefix}/bin/mpd --no-daemon ${prefix}/etc/mpd.conf"
      startupitem.stop "${prefix}/bin/mpd --kill"
      destroot.keepdirs ${destroot}${prefix}/var/lib/mpd/music ${destroot}${prefix}/var/lib/mpd/playlists ${destroot}${prefix}/var/log/mpd
      post-destroot {
      # ensure ${prefix}/var/[lib/mpd/[music,playlists],log/mpd] exist
      xinstall -m 755 -d ${destroot}${prefix}/var/lib/mpd/music ${destroot}${prefix}/var/lib/mpd/playlists ${destroot}${prefix}/var/log/mpd
      if {![file exists ${prefix}/etc/mpd.conf]} {
      xinstall -o root -m 0644 ${filespath}/mpd.conf ${destroot}${prefix}/etc/
      reinplace "s|%%PREFIX%%|${prefix}|g" ${destroot}${prefix}/etc/mpd.conf
      ui_msg "A basic configuration file has been created for you. To add music to mpd's database, create symbolic links in ${prefix}/var/lib/mpd/music using 'ln -s'. For advanced configuration, run \"man mpd.conf\" or refer to ${prefix}/share/doc/mpd/mpdconf.example for an example configuration file."
      }
      }
      post-activate {
      ui_msg "You may get \"Problems shmget'ing\" message when launching mpd. In this case, you can increase the values of kern.sysv.shmmax and kern.sysv.shmall in /etc/rc."
      }
      livecheck.url http://sourceforge.net/projects/musicpd/files/
      livecheck.distname mpd
      livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${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/mpd
      % sudo port install mpd
      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 mpd
      ---> Verifying checksum for mpd
      ---> Extracting mpd
      ---> Configuring mpd
      ---> Building mpd with target all
      ---> Staging mpd into destroot
      ---> Installing mpd
    - 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 mpd with these commands:
      %  man mpd
      % apropos mpd
      % which mpd
      % locate mpd

     Where to find more information:

    Darwin Ports



    Lightbox this page.