2008-12-05 21:11:46 +00:00
|
|
|
# New ports collection makefile for: Music Player Daemon
|
|
|
|
# Date created: Thu Oct 02 2003
|
|
|
|
# Whom: Mark Reidel <ports@mark.reidel.info>
|
2003-10-08 10:41:32 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= musicpd
|
2009-03-18 16:45:44 +00:00
|
|
|
PORTVERSION= 0.14.2
|
2004-02-22 22:38:36 +00:00
|
|
|
CATEGORIES= audio ipv6
|
2009-03-18 16:45:44 +00:00
|
|
|
MASTER_SITES= SF
|
2003-10-08 10:41:32 +00:00
|
|
|
DISTNAME= mpd-${PORTVERSION}
|
|
|
|
|
2007-09-10 18:39:22 +00:00
|
|
|
MAINTAINER= jo.lindqvist@gmail.com
|
2008-12-05 21:11:46 +00:00
|
|
|
COMMENT= A remote-controllable music daemon
|
2003-10-08 10:41:32 +00:00
|
|
|
|
2006-11-08 15:14:18 +00:00
|
|
|
LIB_DEPENDS+= mad.2:${PORTSDIR}/audio/libmad
|
2003-10-08 10:41:32 +00:00
|
|
|
|
2009-01-28 05:30:46 +00:00
|
|
|
USE_GMAKE= yes
|
2006-11-08 15:14:18 +00:00
|
|
|
USE_BZIP2= yes
|
2003-10-13 23:25:49 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2009-01-28 05:30:46 +00:00
|
|
|
USE_GNOME= glib20
|
|
|
|
|
2009-03-18 16:45:44 +00:00
|
|
|
USE_RC_SUBR= ${PORTNAME}
|
2008-09-06 13:16:39 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
|
|
|
|
CFLAGS+= -I${PREFIX}/include
|
|
|
|
|
|
|
|
MAN1= mpd.1
|
|
|
|
MAN5= mpd.conf.5
|
|
|
|
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/mpd
|
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
2003-10-08 10:41:32 +00:00
|
|
|
|
2008-12-05 21:11:46 +00:00
|
|
|
OPTIONS= FLAC "Support FLAC audio format" on \
|
|
|
|
VORBIS "Support OGG Vorbis audio format" on \
|
2008-12-05 21:18:03 +00:00
|
|
|
TREMOR "Support Tremor (integer-only Vorbis)" off \
|
2008-12-05 21:11:46 +00:00
|
|
|
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 \
|
2009-03-18 16:45:44 +00:00
|
|
|
FFMPEG "Support FFMPEG (wma aiff ac3 ape...)" on \
|
|
|
|
ID3TAG "Support ID3 v1/v2 tags" on \
|
2008-12-05 21:11:46 +00:00
|
|
|
IPV6 "Support IPv6 protocol" on \
|
|
|
|
AO "Support libao audio library" off \
|
|
|
|
PULSEAUDIO "Support PulseAudio sound server" off \
|
|
|
|
JACK "Support JACK audio server" off \
|
2009-03-18 16:45:44 +00:00
|
|
|
SHOUTCAST "Support for OGG Icecast and Shoutcast" off \
|
2009-01-28 05:30:46 +00:00
|
|
|
LAME "Support for MP3 Icecast Streams" off \
|
2008-12-05 21:11:46 +00:00
|
|
|
SAMPLERATE "Support sample rate conversion" off
|
2007-04-17 19:41:40 +00:00
|
|
|
|
2003-10-08 10:41:32 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2008-12-05 21:11:46 +00:00
|
|
|
.if defined(WITHOUT_FLAC)
|
2007-04-17 19:41:40 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-flac \
|
|
|
|
--disable-oggflac
|
2003-10-08 10:41:32 +00:00
|
|
|
.else
|
2008-04-07 20:37:23 +00:00
|
|
|
LIB_DEPENDS+= FLAC.10:${PORTSDIR}/audio/flac
|
2003-10-08 10:41:32 +00:00
|
|
|
.endif
|
|
|
|
|
2008-12-05 21:11:46 +00:00
|
|
|
.if defined(WITHOUT_VORBIS)
|
2009-03-18 16:45:44 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-oggvorbis
|
2003-10-08 10:41:32 +00:00
|
|
|
.else
|
2007-07-28 12:27:31 +00:00
|
|
|
LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis
|
2003-10-08 10:41:32 +00:00
|
|
|
.endif
|
|
|
|
|
2008-12-05 21:18:03 +00:00
|
|
|
.if defined(WITH_TREMOR)
|
|
|
|
CONFIGURE_ARGS+=--with-tremor
|
|
|
|
LIB_DEPENDS+= vorbisidec.1:${PORTSDIR}/audio/libtremor
|
|
|
|
.endif
|
|
|
|
|
2008-12-05 21:11:46 +00:00
|
|
|
.if defined(WITH_AAC)
|
2009-02-21 15:51:15 +00:00
|
|
|
LIB_DEPENDS+= faad.2:${PORTSDIR}/audio/faad
|
2004-03-25 19:27:40 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-aac
|
|
|
|
.endif
|
|
|
|
|
2009-01-28 05:30:46 +00:00
|
|
|
.if defined(WITH_LAME)
|
2009-03-18 16:45:44 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-shout-mp3
|
2009-01-28 05:30:46 +00:00
|
|
|
LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame
|
2009-03-18 16:45:44 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-shout-mp3
|
2009-01-28 05:30:46 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_WAV)
|
|
|
|
CONFIGURE_ARGS+=--disable-audiofile
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= audiofile.0:${PORTSDIR}/audio/libaudiofile
|
|
|
|
.endif
|
|
|
|
|
2008-12-05 21:11:46 +00:00
|
|
|
.if defined(WITH_MUSEPACK)
|
2007-02-26 05:36:23 +00:00
|
|
|
LIB_DEPENDS+= mpcdec.5:${PORTSDIR}/audio/libmpcdec
|
2006-11-11 17:21:32 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-mpc
|
|
|
|
.endif
|
|
|
|
|
2008-12-05 21:11:46 +00:00
|
|
|
.if defined(WITH_MOD)
|
2004-06-18 09:08:59 +00:00
|
|
|
LIB_DEPENDS+= mikmod.2:${PORTSDIR}/audio/libmikmod
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-mod
|
|
|
|
.endif
|
|
|
|
|
2009-03-18 16:45:44 +00:00
|
|
|
.if defined(WITHOUT_FFMPEG)
|
|
|
|
CONFIGURE_ARGS+=--disable-ffmpeg
|
2003-11-09 15:42:55 +00:00
|
|
|
.else
|
2009-03-18 16:45:44 +00:00
|
|
|
LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg \
|
|
|
|
avformat:${PORTSDIR}/multimedia/ffmpeg \
|
|
|
|
avutil.1:${PORTSDIR}/multimedia/ffmpeg
|
2003-11-09 15:42:55 +00:00
|
|
|
.endif
|
|
|
|
|
2009-03-18 16:45:44 +00:00
|
|
|
.if defined(WITHOUT_ID3TAG)
|
|
|
|
CONFIGURE_ARGS+=--disable-id3
|
|
|
|
.else
|
2007-06-22 06:45:35 +00:00
|
|
|
LIB_DEPENDS+= id3tag.0:${PORTSDIR}/audio/libid3tag
|
2005-01-14 15:45:01 +00:00
|
|
|
.endif
|
|
|
|
|
2008-12-05 21:11:46 +00:00
|
|
|
.if defined(WITHOUT_IPV6)
|
2004-03-25 19:27:40 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-ipv6
|
|
|
|
.endif
|
|
|
|
|
2008-12-05 21:11:46 +00:00
|
|
|
.if defined(WITH_AO)
|
2007-04-17 19:41:40 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-ao
|
|
|
|
LIB_DEPENDS+= ao.3:${PORTSDIR}/audio/libao
|
|
|
|
.endif
|
|
|
|
|
2008-12-05 21:11:46 +00:00
|
|
|
.if defined(WITH_PULSEAUDIO)
|
2008-09-06 13:16:39 +00:00
|
|
|
LIB_DEPENDS+= pulse.0:${PORTSDIR}/audio/pulseaudio
|
|
|
|
.else
|
2007-10-08 12:12:17 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-pulse
|
2008-09-06 13:16:39 +00:00
|
|
|
.endif
|
|
|
|
|
2008-12-05 21:11:46 +00:00
|
|
|
.if defined(WITH_JACK)
|
2008-09-06 13:16:39 +00:00
|
|
|
LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack
|
2007-10-08 12:12:17 +00:00
|
|
|
.else
|
2008-09-06 13:16:39 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-jack
|
2007-10-08 12:12:17 +00:00
|
|
|
.endif
|
|
|
|
|
2008-12-05 21:18:03 +00:00
|
|
|
# libshout streaming support will be disabled by configure script when built
|
|
|
|
# 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
|
|
|
|
.else
|
2009-03-18 16:45:44 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-shout-ogg
|
2008-02-16 10:05:32 +00:00
|
|
|
.endif
|
|
|
|
|
2008-12-05 21:11:46 +00:00
|
|
|
.if defined(WITHOUT_SAMPLERATE)
|
2008-09-06 13:16:39 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-lsr
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= samplerate.1:${PORTSDIR}/audio/libsamplerate
|
|
|
|
.endif
|
2003-10-08 10:41:32 +00:00
|
|
|
|
2008-09-06 13:16:39 +00:00
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e '/^install-data-am:/ s|install-docDATA||' \
|
|
|
|
${WRKSRC}/Makefile.in ${WRKSRC}/doc/Makefile.in
|
|
|
|
.endif
|
2003-10-08 10:41:32 +00:00
|
|
|
|
2006-11-08 15:14:18 +00:00
|
|
|
post-install:
|
2008-12-05 21:11:46 +00:00
|
|
|
@${ECHO_MSG}
|
2003-10-08 10:41:32 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2008-12-05 21:11:46 +00:00
|
|
|
@${ECHO_MSG}
|
2003-10-08 10:41:32 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|