summaryrefslogtreecommitdiff
path: root/audio/musicpd
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-04-30 10:48:21 +0000
committergrant <grant@pkgsrc.org>2004-04-30 10:48:21 +0000
commit1d253420e870a05ae4a02654e92b2404ee0c4e8b (patch)
treeeb135b43695374d9e6b4b691b7af85b2dc6f5516 /audio/musicpd
parent744218de391be739a5a0ccf18bf1145d66d23b98 (diff)
downloadpkgsrc-1d253420e870a05ae4a02654e92b2404ee0c4e8b.tar.gz
Initial import of musicpd 0.10.3 into the NetBSD packages collection.
Music Player Daemon allows remote access for playing music (MP3s, Ogg Vorbis files, Flacs and AAC files) and managing playlists. It is designed for integrating a computer into a stereo system that provides control for music playback over a local network. It is also makes a great desktop music player, especially if you're a console junkie, like frontend options, or restart X often. this package is a hybrid of a package created by pkg@burningsoda.com in pkgsrc-wip and the package created independently by myself.
Diffstat (limited to 'audio/musicpd')
-rw-r--r--audio/musicpd/DESCR6
-rw-r--r--audio/musicpd/Makefile106
-rw-r--r--audio/musicpd/PLIST9
-rw-r--r--audio/musicpd/distinfo4
-rw-r--r--audio/musicpd/files/mpd.conf34
-rw-r--r--audio/musicpd/files/mpd.sh17
6 files changed, 176 insertions, 0 deletions
diff --git a/audio/musicpd/DESCR b/audio/musicpd/DESCR
new file mode 100644
index 00000000000..1f058711381
--- /dev/null
+++ b/audio/musicpd/DESCR
@@ -0,0 +1,6 @@
+Music Player Daemon allows remote access for playing music (MP3s, Ogg
+Vorbis files, Flacs and AAC files) and managing playlists. It is
+designed for integrating a computer into a stereo system that provides
+control for music playback over a local network. It is also makes a
+great desktop music player, especially if you're a console junkie,
+like frontend options, or restart X often.
diff --git a/audio/musicpd/Makefile b/audio/musicpd/Makefile
new file mode 100644
index 00000000000..f6ef5910108
--- /dev/null
+++ b/audio/musicpd/Makefile
@@ -0,0 +1,106 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/04/30 10:48:21 grant Exp $
+
+DISTNAME= mpd-${PKGVERSION}
+PKGNAME= musicpd-0.10.3
+
+CATEGORIES= audio
+MASTER_SITES= http://mercury.chem.pitt.edu/~shank/
+
+MAINTAINER= tech-pkg@NetBSD.org
+HOMEPAGE= http://musicpd.org/
+COMMENT= Remote controllable audio player
+
+GNU_CONFIGURE= yes
+USE_BUILDLINK3= yes
+USE_LIBTOOL= yes
+USE_PKGINSTALL= yes
+
+BUILD_DEFS+= MUSICPD_WITH_AAC
+BUILD_DEFS+= MUSICPD_WITH_AUDIOFILE
+BUILD_DEFS+= MUSICPD_WITH_FLAC
+BUILD_DEFS+= MUSICPD_WITH_ICONV
+BUILD_DEFS+= MUSICPD_WITH_ID3
+BUILD_DEFS+= MUSICPD_WITH_OGG
+#BUILD_DEFS+= USE_INET6
+
+.include "../../mk/bsd.prefs.mk"
+
+MUSICPD_WITH_AAC?= YES
+MUSICPD_WITH_AUDIOFILE?=YES
+MUSICPD_WITH_FLAC?= YES
+MUSICPD_WITH_ICONV?= YES
+MUSICPD_WITH_ID3?= YES
+MUSICPD_WITH_OGG?= YES
+
+EGDIR= ${PREFIX}/share/examples/mpd
+RCD_SCRIPTS= mpd
+
+FILES_SUBST+= DEVOSSAUDIO=${DEVOSSAUDIO}
+LDFLAGS+= ${LIBOSSAUDIO}
+
+SUBST_CLASSES+= config
+SUBST_STAGE.config= pre-configure
+SUBST_FILES.config= src/main.c
+SUBST_SED.config= -e s,/etc/mpd.conf,${PKG_SYSCONFDIR}/mpd.conf,
+
+.if ${MUSICPD_WITH_AAC} == "YES"
+. include "../../audio/faad2/buildlink3.mk"
+CONFIGURE_ARGS+= --with-faad=${BUILDLINK_PREFIX.faad2}
+.else
+CONFIGURE_ARGS+= --disable-aac
+.endif
+
+.if ${MUSICPD_WITH_AUDIOFILE} == "YES"
+. include "../../audio/libaudiofile/buildlink3.mk"
+CONFIGURE_ARGS+= --with-audiofile=${BUILDLINK_PREFIX.audiofile}
+.else
+CONFIGURE_ARGS+= --disable-audiofile
+.endif
+
+.if ${MUSICPD_WITH_FLAC} == "YES"
+. include "../../audio/flac/buildlink3.mk"
+CONFIGURE_ARGS+= --with-flac=${BUILDLINK_PREFIX.flac}
+.else
+CONFIGURE_ARGS+= --disable-flac
+.endif
+
+.if ${MUSICPD_WITH_ICONV} == "YES"
+. include "../../converters/libiconv/buildlink3.mk"
+CONFIGURE_ARGS+= --with-iconv=${BUILDLINK_PREFIX.iconv}
+.else
+CONFIGURE_ARGS+= --disable-iconv
+.endif
+
+.if ${MUSICPD_WITH_ID3} == "YES"
+. include "../../audio/libid3tag/buildlink3.mk"
+CONFIGURE_ARGS+= --with-id3tag=${BUILDLINK_PREFIX.libid3tag}
+.else
+CONFIGURE_ARGS+= --disable-id3
+.endif
+
+.if ${MUSICPD_WITH_OGG} == "YES"
+. include "../../audio/libvorbis/buildlink3.mk"
+CONFIGURE_ARGS+= --with-ogg=${BUILDLINK_PREFIX.libvorbis}
+.else
+CONFIGURE_ARGS+= --disable-ogg
+.endif
+
+# when IPv6 support is enabled, mpd doesn't listen on an IPv4 address.
+#.if defined(USE_INET6) && ${USE_INET6} == "YES"
+#CONFIGURE_ARGS+= --enable-ipv6
+#.else
+CONFIGURE_ARGS+= --disable-ipv6
+#.endif
+
+post-build:
+ @${SED} ${FILES_SUBST_SED} ${FILESDIR}/mpd.conf > ${WRKDIR}/mpd.conf
+
+post-install:
+ ${INSTALL_DATA_DIR} ${EGDIR}
+ ${INSTALL_DATA} ${WRKDIR}/mpd.conf ${EGDIR}
+
+.include "../../audio/libao/buildlink3.mk"
+.include "../../audio/libmad/buildlink3.mk"
+
+.include "../../mk/ossaudio.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/audio/musicpd/PLIST b/audio/musicpd/PLIST
new file mode 100644
index 00000000000..9648fd61537
--- /dev/null
+++ b/audio/musicpd/PLIST
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/04/30 10:48:21 grant Exp $
+bin/mpd
+man/man1/mpd.1
+share/doc/mpd/COMMANDS
+share/doc/mpd/README
+share/doc/mpd/UPGRADING
+share/examples/mpd/mpd.conf
+@dirrm share/examples/mpd
+@dirrm share/doc/mpd
diff --git a/audio/musicpd/distinfo b/audio/musicpd/distinfo
new file mode 100644
index 00000000000..3f7ec4793ba
--- /dev/null
+++ b/audio/musicpd/distinfo
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/04/30 10:48:21 grant Exp $
+
+SHA1 (mpd-0.10.3.tar.gz) = fa093eb6f01d1cb3522380084451432b40873c96
+Size (mpd-0.10.3.tar.gz) = 815429 bytes
diff --git a/audio/musicpd/files/mpd.conf b/audio/musicpd/files/mpd.conf
new file mode 100644
index 00000000000..c9e0ae326d2
--- /dev/null
+++ b/audio/musicpd/files/mpd.conf
@@ -0,0 +1,34 @@
+# required
+port "2100"
+music_directory "/mp3"
+playlist_directory "/mp3"
+log_file "/var/log/mpd.log"
+error_file "/var/log/mpd.error"
+
+# optional
+max_connections "5"
+max_command_list_size "2048"
+max_output_buffer_size "2048"
+connection_timeout "60"
+db_file "/mp3/.mpddb"
+state_file "/mp3/.mpdstate"
+save_absolute_paths_in_playlists "no"
+
+max_playlist_length "4096"
+buffer_before_play "25%"
+bind_to_address "any"
+
+mixer_type "oss"
+mixer_device "/dev/mixer"
+
+ao_driver "oss"
+ao_driver_options "dsp=@DEVOSSAUDIO@"
+audio_write_size "1024"
+
+#user "mp3"
+
+# log_level can be "default", "secure", "verbose"
+log_level "default"
+#password "password@read,add,control,admin"
+#default_permissions "read,add,control,admin"
+#filesystem_charset "UTF-8"
diff --git a/audio/musicpd/files/mpd.sh b/audio/musicpd/files/mpd.sh
new file mode 100644
index 00000000000..ccd4ca82d04
--- /dev/null
+++ b/audio/musicpd/files/mpd.sh
@@ -0,0 +1,17 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: mpd.sh,v 1.1.1.1 2004/04/30 10:48:21 grant Exp $
+#
+
+# PROVIDE: mpd
+# REQUIRE: DAEMON
+
+. /etc/rc.subr
+
+name="mpd"
+rcvar=$name
+command="@PREFIX@/bin/${name}"
+required_files="@PKG_SYSCONFDIR@/mpd.conf"
+
+load_rc_config $name
+run_rc_command "$1"