diff options
author | Munechika SUMIKAWA <sumikawa@FreeBSD.org> | 2003-10-08 10:41:32 +0000 |
---|---|---|
committer | Munechika SUMIKAWA <sumikawa@FreeBSD.org> | 2003-10-08 10:41:32 +0000 |
commit | 3c111dc4072040b618ca7217cd9baa93e7db9958 (patch) | |
tree | 5c88007ec7661d0c7c381416886afc61067fdc10 /audio/musicpd | |
parent | 6b16d8c1e11d044827f8d361a53cf9b58eba5f01 (diff) | |
download | ports-3c111dc4072040b618ca7217cd9baa93e7db9958.tar.gz ports-3c111dc4072040b618ca7217cd9baa93e7db9958.zip |
Notes
Diffstat (limited to 'audio/musicpd')
-rw-r--r-- | audio/musicpd/Makefile | 78 | ||||
-rw-r--r-- | audio/musicpd/distinfo | 1 | ||||
-rw-r--r-- | audio/musicpd/files/mpd.conf.sample | 27 | ||||
-rw-r--r-- | audio/musicpd/files/musicpd.sh | 29 | ||||
-rw-r--r-- | audio/musicpd/files/patch-ogg_decode.c | 10 | ||||
-rw-r--r-- | audio/musicpd/pkg-descr | 6 | ||||
-rw-r--r-- | audio/musicpd/pkg-message | 20 | ||||
-rw-r--r-- | audio/musicpd/pkg-plist | 9 |
8 files changed, 180 insertions, 0 deletions
diff --git a/audio/musicpd/Makefile b/audio/musicpd/Makefile new file mode 100644 index 000000000000..ba6b724ed938 --- /dev/null +++ b/audio/musicpd/Makefile @@ -0,0 +1,78 @@ +# New ports collection makefile for: musicpd +# Date created: Tue Oct 02 2003 +# Whom: Mark Reidel <ports@mark.reidel.info> +# +# $FreeBSD$ +# + +PORTNAME= musicpd +PORTVERSION= 0.9.1 +CATEGORIES= audio +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} +DISTNAME= mpd-${PORTVERSION} + +MAINTAINER= ports@mark.reidel.info +COMMENT= A remote-controllable music-daemon + +LIB_DEPENDS+= ao.3:${PORTSDIR}/audio/libao \ + mad.1:${PORTSDIR}/audio/mad + +GNU_CONFIGURE= yes +PKGMESSAGE= ${WRKDIR}/pkg-message + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} >= 500038 +RC_SUBR?= ${DESTDIR}/etc/rc.subr +RC_DIR= ${DESTDIR}/etc/rc.d +RC_SUFX= +.else +USE_RC_SUBR= yes +RC_DIR= ${PREFIX}/etc/rc.d +RC_SUFX= .sh +.endif + +.ifdef(WITHOUT_FLAC) +CONFIGURE_ARGS+=--disable-flac +.else +LIB_DEPENDS+= FLAC.5:${PORTSDIR}/audio/flac +.endif + +.ifdef(WITHOUT_OGG) +CONFIGURE_ARGS+=--disable-ogg +.else +LIB_DEPENDS+= vorbis.2:${PORTSDIR}/audio/libvorbis +.endif + +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +CFLAGS+= -I${PREFIX}/include + +MAN1= mpd.1 + +SED_SCRIPT+= -e 's,%%PREFIX%%,${PREFIX},g' \ + -e 's,%%RC_DIR%%,${RC_DIR},g' \ + -e 's,%%RC_SUBR%%,${RC_SUBR},g' \ + -e 's,%%RC_SUFX%%,${RC_SUFX},g' +PLIST_SUB+= RC_DIR=${RC_DIR} \ + RC_SUFX=${RC_SUFX} + +pre-everything:: + @${ECHO} "You can build ${PKGNAME} with the following options:" + @${ECHO} + @${ECHO} "WITHOUT_OGG Disable OGG-Vorbis-support" + @${ECHO} "WITHOUT_FLAC Disable FLAC-support" + @${ECHO} + +post-build: + @${SED} ${SED_SCRIPT} ${FILESDIR}/musicpd.sh >${WRKDIR}/musicpd.sh + @${SED} ${SED_SCRIPT} ${MASTERDIR}/pkg-message >${PKGMESSAGE} + +post-install: + @${INSTALL_SCRIPT} ${FILESDIR}/mpd.conf.sample ${PREFIX}/etc + @${INSTALL_SCRIPT} ${WRKDIR}/musicpd.sh ${RC_DIR}/musicpd${RC_SUFX} + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.post.mk> diff --git a/audio/musicpd/distinfo b/audio/musicpd/distinfo new file mode 100644 index 000000000000..30706ed588b0 --- /dev/null +++ b/audio/musicpd/distinfo @@ -0,0 +1 @@ +MD5 (mpd-0.9.1.tar.gz) = 1a61ef1c3b6c482b7615ad6e92c7551d diff --git a/audio/musicpd/files/mpd.conf.sample b/audio/musicpd/files/mpd.conf.sample new file mode 100644 index 000000000000..7a6e13dfaf52 --- /dev/null +++ b/audio/musicpd/files/mpd.conf.sample @@ -0,0 +1,27 @@ +# 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" +connection_timeout "60" +db_file "/mp3/.mpddb" + +# log_level can be "default", "secure", "verbose" +log_level "default" + +mixer_device "/dev/mixer" +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=/dev/dsp" + +#user "mp3" diff --git a/audio/musicpd/files/musicpd.sh b/audio/musicpd/files/musicpd.sh new file mode 100644 index 000000000000..176fd6ff3b0c --- /dev/null +++ b/audio/musicpd/files/musicpd.sh @@ -0,0 +1,29 @@ +#!/bin/sh +# + +# PROVIDE: musicpd +# REQUIRE: +# BEFORE: +# KEYWORD: FreeBSD shutdown + +# Add the following line to /etc/rc.conf to enable mpd: +# +#musicpd_enable="YES" + +. %%RC_SUBR%% + +name=musicpd +rcvar=`set_rcvar` + +config=%%PREFIX%%/etc/mpd.conf +command=%%PREFIX%%/bin/mpd +required_files=$config + +musicpd_flags="$musicpd_flags $config" + +[ -z "$musicpd_enable" ] && musicpd_enable="NO" +[ -z "$musicpd_flags" ] && musicpd_flags= + +load_rc_config $name + +run_rc_command "$1" diff --git a/audio/musicpd/files/patch-ogg_decode.c b/audio/musicpd/files/patch-ogg_decode.c new file mode 100644 index 000000000000..3dce899903b7 --- /dev/null +++ b/audio/musicpd/files/patch-ogg_decode.c @@ -0,0 +1,10 @@ +--- src/ogg_decode.c.orig Tue Sep 30 13:46:36 2003 ++++ src/ogg_decode.c Tue Sep 30 13:46:55 2003 +@@ -28,6 +28,7 @@ + #include <stdlib.h> + #include <string.h> + #include <vorbis/vorbisfile.h> ++#include <sys/time.h> + + int ogg_decode(Buffer * cb, AudioFormat * af, DecoderControl * dc) + { diff --git a/audio/musicpd/pkg-descr b/audio/musicpd/pkg-descr new file mode 100644 index 000000000000..e63f7869507f --- /dev/null +++ b/audio/musicpd/pkg-descr @@ -0,0 +1,6 @@ +Music Player Daemon (MPD) allows remote access for playing music +(MP3's, Ogg's, and Flac's) and managing playlists. +The design focus is on integrating a computer into a stereo system +that provides control for music playback over a local network. + +WWW: http://www.musicpd.org/ diff --git a/audio/musicpd/pkg-message b/audio/musicpd/pkg-message new file mode 100644 index 000000000000..c96ffedae378 --- /dev/null +++ b/audio/musicpd/pkg-message @@ -0,0 +1,20 @@ +************************************************************ + +The musicpd package has been successfully installed. + +In order to run the MPD server, you need to create + %%PREFIX%%/etc/mpd.conf out of + %%PREFIX%%/etc/mpd.conf.sample +and add the following line to /etc/rc.conf: + musicpd_enable="YES" + +Then start the server with + %%RC_DIR%%/musicpd%%RC_SUFX%% start +or reboot. + +NOTE: The musicpd server is pretty useless without a + client. You might want to install the mpc-port, + too. + +************************************************************ + diff --git a/audio/musicpd/pkg-plist b/audio/musicpd/pkg-plist new file mode 100644 index 000000000000..d3c3a3099dc8 --- /dev/null +++ b/audio/musicpd/pkg-plist @@ -0,0 +1,9 @@ +bin/mpd +@unexec %%RC_DIR%%/musicpd%%RC_SUFX%% stop 2>/dev/null || true +share/doc/mpd/COMMANDS +share/doc/mpd/README +share/doc/mpd/UPGRADING +etc/mpd.conf.sample +@dirrm share/doc/mpd +@cwd %%RC_DIR%% +musicpd%%RC_SUFX%% |