aboutsummaryrefslogtreecommitdiffstats
path: root/audio/musicpd
diff options
context:
space:
mode:
authoravl <avl@FreeBSD.org>2009-07-27 20:20:34 +0800
committeravl <avl@FreeBSD.org>2009-07-27 20:20:34 +0800
commit6a37173948d6ca02a36f3f635cd2002414383174 (patch)
tree7ee0ef73b680e251ce0128c6bf8e2e66f0e2f583 /audio/musicpd
parent199bd94644e57484bb120e41d860fa225b219350 (diff)
downloadfreebsd-ports-gnome-6a37173948d6ca02a36f3f635cd2002414383174.tar.gz
freebsd-ports-gnome-6a37173948d6ca02a36f3f635cd2002414383174.tar.zst
freebsd-ports-gnome-6a37173948d6ca02a36f3f635cd2002414383174.zip
- Update to 0.15 [1]
- Add new config knobs [1] - Add dependency on libcurl [2] - Use PLIST_FILES and PORTDOCS instead pkg-plist PR: ports/136305 [1], ports/131991 [2] Submitted by: David Horn <dhorn2000 AT gmail.com> [1], Rick Dicaire <kritek AT gmail.com> [2] Approved by: maintainer timeout, tabthorpe (mentor)
Diffstat (limited to 'audio/musicpd')
-rw-r--r--audio/musicpd/Makefile85
-rw-r--r--audio/musicpd/distinfo6
-rw-r--r--audio/musicpd/pkg-plist10
3 files changed, 70 insertions, 31 deletions
diff --git a/audio/musicpd/Makefile b/audio/musicpd/Makefile
index 38ac6207ae22..0634cf4184a8 100644
--- a/audio/musicpd/Makefile
+++ b/audio/musicpd/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= musicpd
-PORTVERSION= 0.14.2
-PORTREVISION= 1
+PORTVERSION= 0.15
CATEGORIES= audio ipv6
MASTER_SITES= SF
DISTNAME= mpd-${PORTVERSION}
@@ -15,7 +14,8 @@ DISTNAME= mpd-${PORTVERSION}
MAINTAINER= jo.lindqvist@gmail.com
COMMENT= A remote-controllable music daemon
-LIB_DEPENDS+= mad.2:${PORTSDIR}/audio/libmad
+LIB_DEPENDS+= mad.2:${PORTSDIR}/audio/libmad \
+ curl.5:${PORTSDIR}/ftp/curl
USE_GMAKE= yes
USE_BZIP2= yes
@@ -32,24 +32,32 @@ MAN1= mpd.1
MAN5= mpd.conf.5
DOCSDIR= ${PREFIX}/share/doc/mpd
+PORTDOCS= mpdconf.example AUTHORS README COPYING NEWS UPGRADING
SUB_FILES= pkg-message
-OPTIONS= FLAC "Support FLAC audio format" on \
- VORBIS "Support OGG Vorbis audio format" on \
+PLIST_FILES= bin/mpd
+
+OPTIONS= ID3TAG "Support ID3 v1/v2 tags" on \
+ IPV6 "Support IPv6 protocol" on \
+ FLAC "Support FLAC audio format" on \
+ VORBIS "Support OGG Vorbis audio format" on \
+ WAV "Support WAV audio format" on \
+ FFMPEG "Support FFMPEG (wma aiff ac3 ape...)" on \
TREMOR "Support Tremor (integer-only Vorbis)" off \
- WAV "Support WAV audio format" on \
AAC "Support MP4/AAC audio format" off \
MUSEPACK "Support MPC audio format" off \
- MOD "Support MOD audio format" off \
- FFMPEG "Support FFMPEG (wma aiff ac3 ape...)" on \
- ID3TAG "Support ID3 v1/v2 tags" on \
- IPV6 "Support IPv6 protocol" on \
+ MIKMOD "Support MOD audio format" off \
+ MODPLUG "Support MODPLUG decoder" off \
+ ARCHIVE "Support bzip2/zip/iso9660 archive" off \
+ MMS "Support MMS stream input" off \
+ LASTFM "Support Last.FM stream input (experimental)" off \
AO "Support libao audio library" off \
PULSEAUDIO "Support PulseAudio sound server" off \
JACK "Support JACK audio server" off \
SHOUTCAST "Support for OGG Icecast and Shoutcast" off \
LAME "Support for MP3 Icecast Streams" off \
+ HTTPD "Support for httpd output streaming" off \
SAMPLERATE "Support sample rate conversion" off
.include <bsd.port.pre.mk>
@@ -62,7 +70,7 @@ LIB_DEPENDS+= FLAC.10:${PORTSDIR}/audio/flac
.endif
.if defined(WITHOUT_VORBIS)
-CONFIGURE_ARGS+=--disable-oggvorbis
+CONFIGURE_ARGS+=--disable-vorbis
.else
LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis
.endif
@@ -79,10 +87,17 @@ CONFIGURE_ARGS+=--disable-aac
.endif
.if defined(WITH_LAME)
-CONFIGURE_ARGS+=--enable-shout-mp3
+CONFIGURE_ARGS+=--enable-lame-encoder \
+ --enable-shout
LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame
.else
-CONFIGURE_ARGS+=--disable-shout-mp3
+CONFIGURE_ARGS+=--disable-lame-encoder
+.endif
+
+.if defined(WITH_HTTPD)
+CONFIGURE_ARGS+=--enable-httpd-output
+.else
+CONFIGURE_ARGS+=--disable-httpd-output
.endif
.if defined(WITHOUT_WAV)
@@ -97,10 +112,26 @@ LIB_DEPENDS+= mpcdec.5:${PORTSDIR}/audio/libmpcdec
CONFIGURE_ARGS+=--disable-mpc
.endif
-.if defined(WITH_MOD)
+.if defined(WITH_MIKMOD)
LIB_DEPENDS+= mikmod.2:${PORTSDIR}/audio/libmikmod
+CONFIGURE_ARGS+=--enable-mikmod
.else
-CONFIGURE_ARGS+=--disable-mod
+CONFIGURE_ARGS+=--disable-mikmod
+.endif
+
+.if defined(WITH_MODPLUG)
+LIB_DEPENDS+= modplug.0:${PORTSDIR}/audio/libmodplug
+CONFIGURE_ARGS+=--enable-modplug
+.else
+CONFIGURE_ARGS+=--disable-modplug
+.endif
+
+.if defined(WITH_ARCHIVE)
+CONFIGURE_ARGS+=--enable-bzip2 \
+ --enable-zip \
+ --enable-iso9660
+LIB_DEPENDS+= zzip.13:${PORTSDIR}/devel/zziplib \
+ iso9660.5:${PORTSDIR}/sysutils/libcdio
.endif
.if defined(WITHOUT_FFMPEG)
@@ -111,6 +142,19 @@ LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg \
avutil.1:${PORTSDIR}/multimedia/ffmpeg
.endif
+.if defined(WITH_LASTFM)
+CONFIGURE_ARGS+=--enable-lastfm
+.else
+CONFIGURE_ARGS+=--disable-lastfm
+.endif
+
+.if defined(WITH_MMS)
+CONFIGURE_ARGS+=--enable-mms
+LIBDEPENDS+= libmms.0:${PORTSDIR}/net/libmms
+.else
+CONFIGURE_ARGS+=--disable-mms
+.endif
+
.if defined(WITHOUT_ID3TAG)
CONFIGURE_ARGS+=--disable-id3
.else
@@ -124,6 +168,8 @@ CONFIGURE_ARGS+=--disable-ipv6
.if defined(WITH_AO)
CONFIGURE_ARGS+=--enable-ao
LIB_DEPENDS+= ao.3:${PORTSDIR}/audio/libao
+.else
+CONFIGURE_ARGS+=--disable-ao
.endif
.if defined(WITH_PULSEAUDIO)
@@ -142,20 +188,23 @@ CONFIGURE_ARGS+=--disable-jack
# also with tremor since the latter does not support vorbis encoding
.if defined(WITH_SHOUTCAST) && !defined(WITH_TREMOR)
LIB_DEPENDS+= shout.5:${PORTSDIR}/audio/libshout2
+CONFIGURE_ARGS+=--enable-vorbis-encoder \
+ --enable-shout
.else
-CONFIGURE_ARGS+=--disable-shout-ogg
+CONFIGURE_ARGS+=--disable-vorbis-encoder
.endif
.if defined(WITHOUT_SAMPLERATE)
CONFIGURE_ARGS+=--disable-lsr
.else
LIB_DEPENDS+= samplerate.1:${PORTSDIR}/audio/libsamplerate
+CONFIGURE_ARGS+=--enable-lsr
.endif
.if defined(NOPORTDOCS)
post-patch:
- @${REINPLACE_CMD} -e '/^install-data-am:/ s|install-docDATA||' \
- ${WRKSRC}/Makefile.in ${WRKSRC}/doc/Makefile.in
+ @${REINPLACE_CMD} -e 's|install-docDATA ||' \
+ ${WRKSRC}/Makefile.in
.endif
post-install:
diff --git a/audio/musicpd/distinfo b/audio/musicpd/distinfo
index 4894c229184c..4e655f1f4dbd 100644
--- a/audio/musicpd/distinfo
+++ b/audio/musicpd/distinfo
@@ -1,3 +1,3 @@
-MD5 (mpd-0.14.2.tar.bz2) = 66817a4b4c05454e6488f6b821f2a6a3
-SHA256 (mpd-0.14.2.tar.bz2) = 0b3926a141873f179efc3c3b9d296b65d332dbb898340ac5e5d1dd0c3dd9fb20
-SIZE (mpd-0.14.2.tar.bz2) = 287115
+SIZE (mpd-0.15.tar.bz2) = 385833
+MD5 (mpd-0.15.tar.bz2) = 2ed93a60bd703ba46d6794e12cfb5f1d
+SHA256 (mpd-0.15.tar.bz2) = 38d4c4073e81585c0f0b1a3b4909f7fecd0305de90f373a9a1c087090e6ddc20
diff --git a/audio/musicpd/pkg-plist b/audio/musicpd/pkg-plist
deleted file mode 100644
index 1bd37c5ffd37..000000000000
--- a/audio/musicpd/pkg-plist
+++ /dev/null
@@ -1,10 +0,0 @@
-bin/mpd
-%%PORTDOCS%%%%DOCSDIR%%/mpdconf.example
-%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/COPYING
-%%PORTDOCS%%%%DOCSDIR%%/TODO
-%%PORTDOCS%%%%DOCSDIR%%/NEWS
-%%PORTDOCS%%%%DOCSDIR%%/UPGRADING
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
-%%PORTDOCS%%@unexec %D/%%DOCSDIR%% 2>/dev/null || true