Thank you, Alexander.

The method you told is indeed a good way to achieve the purpose. (By macports)
Actually, that's how i install MPD on my MacBook Pro.

But that needs people to (They are not technocial type again):
1)  first have a working internet network, 
2)  then install macports by hand,
3)  then issue "sudo port install mpd" to download all the dependencies, (may by script)
4)  compile all thoes packages on the target machine (by macports)
5)  some people may not like to install to many stuff on the machine;

What if i insist to build a static build of MPD? 
That would be handy, allow me to just copy the static build file(and config file) to my friends.

Sorry for all the bothers above, if you want to know why i'm so bother for this?
That is becasue i'm writing a simple GUI interface to control MPD, i want to share it with my friends in the future.

Thank you again.


On Sun, Mar 10, 2013 at 5:00 AM, Alexander Sack <> wrote:
On Sat, Mar 9, 2013 at 11:45 AM, zw g <> wrote:
> Dear list,
> I want to share MPD with my friends who are work on Mac OS X platform.
> Is there a way to compile/package MPD and all the common dependencies to a
> single static build like ffmpeg did?

No need. MPD is maintained by MacPorts:

Install ports then simply do:

$ sudo port info mpd
mpd @0.17.3 (audio)
Variants:             ffmpeg, mad, mod, modplug, mpg123, universal

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.

Build Dependencies:   pkgconfig
Library Dependencies: audiofile, cdparanoia, curl, faad2, flac, glib2,
libcue, libiconv, libid3tag, libmpcdec, libogg, libvorbis, zlib
Platforms:            darwin
License:              GPL-2+ LGPL-2.1

$ sudo port install mpd


Your script can do that for them.