openbsd-ports/audio/mpd/Makefile
beck 63131ebe8a make mpd use a reaonable Fisher-Yates shuffle for randomizing play order
instead of an incorrectly implemented Knuth shuffle. Also on openbsd
make sure we use arc4random_uniform for the random choice from the
sequence to make sure we aren't modulo biased.
Noticed when my mpd server played an unnatural amount of Rush out of the
80's playlist.
2009-04-10 00:52:07 +00:00

70 lines
1.6 KiB
Makefile

# $OpenBSD: Makefile,v 1.17 2009/04/10 00:52:07 beck Exp $
COMMENT= Music Player Daemon
DISTNAME= mpd-0.13.2
PKGNAME= ${DISTNAME}p3
CATEGORIES= audio
HOMEPAGE= http://www.musicpd.org/
MAINTAINER= Tobias Ulmer <tobiasu@tmux.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c m pthread ogg z
MASTER_SITES= ${HOMEPAGE}uploads/files/
MODULES= converters/libiconv
LIB_DEPENDS= audiofile::devel/libaudiofile \
ao::audio/libao \
samplerate::audio/libsamplerate \
faad.>=2::audio/faad \
FLAC::audio/flac \
id3tag::audio/libid3tag \
mad::audio/libmad \
mikmod::audio/libmikmod \
mpcdec::audio/libmpcdec
FLAVORS= tremor
FLAVOR?=
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --enable-ao \
--disable-alsa \
--disable-oss \
--disable-pulse \
--disable-sun \
--disable-jack \
--enable-mod \
--bindir=${PREFIX}/sbin \
--with-zeroconf=no
# OggFLAC and tremor tests, initgroups(3)
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
CPPFLAGS="-I${LOCALBASE}/include -D_BSD_SOURCE"
.if ${FLAVOR:L:Mtremor}
CONFIGURE_ARGS+= --with-tremor \
--disable-oggflac \
--disable-shout
LIB_DEPENDS+= vorbisidec::audio/tremor
.else
WANTLIB+= theora
LIB_DEPENDS+= vorbis,vorbisfile,vorbisenc::audio/libvorbis \
speex::audio/speex \
shout::net/libshout
.endif
USE_LIBTOOL= Yes
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mpd
${INSTALL_DATA} ${WRKSRC}/doc/mpdconf.example \
${PREFIX}/share/examples/mpd/mpd.conf
.include <bsd.port.mk>