diff options
author | Dennis Herrmann <dhn@FreeBSD.org> | 2011-03-20 21:28:56 +0000 |
---|---|---|
committer | Dennis Herrmann <dhn@FreeBSD.org> | 2011-03-20 21:28:56 +0000 |
commit | ed75aa39aa049fb4a71ae445a29dd676313ebbd5 (patch) | |
tree | d5e79ce01b25cc2832811f0b3aa4f21c3a291223 | |
parent | be6cae75fa8e2caf9bad9848e27076676729db2a (diff) | |
download | ports-ed75aa39aa049fb4a71ae445a29dd676313ebbd5.tar.gz ports-ed75aa39aa049fb4a71ae445a29dd676313ebbd5.zip |
Notes
-rw-r--r-- | audio/musicpd/Makefile | 21 | ||||
-rw-r--r-- | audio/musicpd/distinfo | 4 |
2 files changed, 10 insertions, 15 deletions
diff --git a/audio/musicpd/Makefile b/audio/musicpd/Makefile index 5a2dedaf549f..19759adbedbf 100644 --- a/audio/musicpd/Makefile +++ b/audio/musicpd/Makefile @@ -6,8 +6,7 @@ # PORTNAME= musicpd -PORTVERSION= 0.16.1 -PORTREVISION= 2 +PORTVERSION= 0.16.2 CATEGORIES= audio ipv6 MASTER_SITES= SF/${PORTNAME}/mpd/${PORTVERSION} DISTNAME= mpd-${PORTVERSION} @@ -63,7 +62,7 @@ OPTIONS= ID3TAG "Support ID3 v1/v2 tags" on \ HTTPD "Support for httpd output streaming" off \ SAMPLERATE "Support sample rate conversion" off -MPDDIR= var/mpd +MPDDIR?= /var/mpd MPDUSER= mpd MPDGROUP= mpd MPDCONF?= mpd.conf @@ -80,7 +79,7 @@ PLIST_SUB= MPDUSER=${MPDUSER} \ SUB_LIST+= MPDUSER=${MPDUSER} \ MPDGROUP=${MPDGROUP} \ - MPDDIR=${PREFIX}/${MPDDIR} \ + MPDDIR=${MPDDIR} \ MPDUID=${MPDUID} \ MPDGID=${MPDGID} \ MPDCONF=${MPDCONF} @@ -226,14 +225,10 @@ CONFIGURE_ARGS+=--enable-lsr .endif post-patch: -# Fix issues with garbled sound for 24-bit on FreeBSD. This is fixed in git, -# so should be removed with next update. - @${REINPLACE_CMD} -e '383,395d;421,430d' \ - ${WRKSRC}/src/output/oss_plugin.c - @${REINPLACE_CMD} -e "s/%%MPDDIR%%/${PREFIX:C/\//\\\//g}\/${MPDDIR:C/\//\\\//g}/g" -e "s/%%MPDUSER%%/${MPDUSER}/g" \ +# Replace ~/ with MPDDIR and make musicpd run as mpd by default + @${REINPLACE_CMD} -e 's,^#\([^"]*"\)~/,\1${MPDDIR}/,g' \ + -e 's,^#\(user[^"]*"\)nobody,\1${MPDUSER},g' \ ${WRKSRC}/doc/mpdconf.example - @${REINPLACE_CMD} -e 's/tremor == xno/tremor = xno/' \ - ${WRKSRC}/configure .if (${OSVERSION} < 800000) ${REINPLACE_CMD} -e 's/nan[f]\{0,1\}(\"\")/NAN/g' \ ${WRKSRC}/src/crossfade.c \ @@ -251,8 +246,8 @@ post-install: ${CP} -p ${PREFIX}/etc/${MPDCONF}.sample \ ${PREFIX}/etc/${MPDCONF} ; \ fi - @${MKDIR} ${PREFIX}/${MPDDIR} - @${CHOWN} -R ${MPDUSER}:${MPDGROUP} ${PREFIX}/${MPDDIR} + @${MKDIR} ${MPDDIR} + @${CHOWN} -R ${MPDUSER}:${MPDGROUP} ${MPDDIR} @${ECHO_MSG} @${CAT} ${PKGMESSAGE} @${ECHO_MSG} diff --git a/audio/musicpd/distinfo b/audio/musicpd/distinfo index 85098c51c548..70a3832314c9 100644 --- a/audio/musicpd/distinfo +++ b/audio/musicpd/distinfo @@ -1,2 +1,2 @@ -SHA256 (mpd-0.16.1.tar.bz2) = b85ca840e31aea2249ad8e9c5c36f6533fc0f88d357a7441817ccacb1e31df57 -SIZE (mpd-0.16.1.tar.bz2) = 480244 +SHA256 (mpd-0.16.2.tar.bz2) = 59a3c191bbfcbbbc119f4b1e44bcb62ce15e45bc4d5041153408acc3074cb1d5 +SIZE (mpd-0.16.2.tar.bz2) = 478096 |