| 1 | # $Id$ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | |
|---|
| 5 | name mpd |
|---|
| 6 | version 0.13.2 |
|---|
| 7 | categories audio |
|---|
| 8 | maintainers milosh openmaintainer |
|---|
| 9 | description Music Player Daemon |
|---|
| 10 | long_description \ |
|---|
| 11 | Music Player Daemon (MPD) allows remote access for playing music \ |
|---|
| 12 | (MP3, Ogg Vorbis, FLAC, AAC, Mod, and wave files) and managing \ |
|---|
| 13 | playlists. MPD is designed for integrating a computer into a stereo \ |
|---|
| 14 | system that provides control for music playback over a local network. \ |
|---|
| 15 | It also makes a great desktop music player, especially if you are a \ |
|---|
| 16 | console junkie, like frontend options, or restart X often. |
|---|
| 17 | homepage http://www.musicpd.org/ |
|---|
| 18 | platforms darwin |
|---|
| 19 | master_sites ${homepage}/uploads/files/ |
|---|
| 20 | checksums md5 33d0c7b08e2c9e2a6ad55703cb0d18d0 \ |
|---|
| 21 | sha1 744800e3b667a0d11418029b8ed69f7414e06e9c \ |
|---|
| 22 | rmd160 d21e3f6858ac8fb769d4278f988c17fe1580bc53 |
|---|
| 23 | |
|---|
| 24 | depends_lib lib:libmad.0:libmad \ |
|---|
| 25 | lib:libid3tag.0:libid3tag \ |
|---|
| 26 | port:libiconv port:pkgconfig port:zlib \ |
|---|
| 27 | port:libogg port:libvorbis \ |
|---|
| 28 | port:libao |
|---|
| 29 | configure.args --mandir=${prefix}/share/man --enable-id3 --enable-ao \ |
|---|
| 30 | --disable-flac --disable-aac |
|---|
| 31 | configure.cflags-append -I${prefix}/include |
|---|
| 32 | default_variants +aac |
|---|
| 33 | variant aac description {Support for aac files (default)} { |
|---|
| 34 | depends_lib-append port:faad2 |
|---|
| 35 | configure.args-delete --disable-aac |
|---|
| 36 | configure.args-append --enable-aac |
|---|
| 37 | } |
|---|
| 38 | variant flac description {Support for flac files} { |
|---|
| 39 | depends_lib-append port:flac |
|---|
| 40 | configure.args-delete --disable-flac |
|---|
| 41 | configure.args-append --enable-flac |
|---|
| 42 | } |
|---|
| 43 | platform macosx { |
|---|
| 44 | configure.args-delete --enable-ao |
|---|
| 45 | configure.args-append --disable-ao |
|---|
| 46 | depends_lib-delete port:libao |
|---|
| 47 | } |
|---|
| 48 | |
|---|
| 49 | post-activate { |
|---|
| 50 | ui_msg "You may get \"Problems shmget'ing\" message when launching mpd. |
|---|
| 51 | In this case, you can increase the values of kern.sysv.shmmax and |
|---|
| 52 | kern.sysv.shmall in /etc/rc."} |
|---|
| 53 | |
|---|
| 54 | livecheck.check regex |
|---|
| 55 | livecheck.url http://www.musicpd.org/files.shtml |
|---|
| 56 | livecheck.regex files/mpd-(\[0-9.\]+)\\.tar\\.bz2 |
|---|