2007-12-07 02:46:38 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.10 2007/12/07 07:46:38 jasper Exp $
|
2006-05-13 05:52:49 -04:00
|
|
|
|
2007-07-19 04:06:24 -04:00
|
|
|
COMMENT= Music Player Daemon
|
2007-06-22 07:42:14 -04:00
|
|
|
DISTNAME= mpd-0.13.0
|
2007-12-07 02:46:38 -05:00
|
|
|
PKGNAME= ${DISTNAME}p3
|
2006-05-13 05:52:49 -04:00
|
|
|
CATEGORIES= audio
|
|
|
|
HOMEPAGE= http://www.musicpd.org/
|
|
|
|
MAINTAINER= Tobias Ulmer <tobiasu@tmux.org>
|
|
|
|
|
2006-11-05 09:42:56 -05:00
|
|
|
# GPL
|
2006-05-13 05:52:49 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
2006-06-14 08:37:52 -04:00
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2006-05-13 05:52:49 -04:00
|
|
|
|
2007-09-18 14:26:52 -04:00
|
|
|
WANTLIB= c m pthread ogg z
|
2006-05-13 05:52:49 -04:00
|
|
|
|
2006-11-05 09:42:56 -05:00
|
|
|
MASTER_SITES= ${HOMEPAGE}uploads/files/
|
2006-05-13 05:52:49 -04:00
|
|
|
|
|
|
|
MODULES= converters/libiconv
|
|
|
|
|
2007-05-20 09:05:27 -04:00
|
|
|
LIB_DEPENDS= audiofile::devel/libaudiofile \
|
|
|
|
ao::audio/libao \
|
2007-06-22 07:42:14 -04:00
|
|
|
samplerate::audio/libsamplerate \
|
2007-06-29 02:08:12 -04:00
|
|
|
faad.>=1::audio/faad \
|
2007-09-18 14:26:52 -04:00
|
|
|
FLAC::audio/flac \
|
2007-05-20 09:05:27 -04:00
|
|
|
id3tag::audio/libid3tag \
|
|
|
|
mad::audio/libmad \
|
|
|
|
mikmod::audio/libmikmod \
|
|
|
|
mpcdec::audio/libmpcdec
|
2006-05-13 05:52:49 -04:00
|
|
|
|
2007-05-20 09:05:27 -04:00
|
|
|
FLAVORS= tremor
|
|
|
|
FLAVOR?=
|
2006-05-13 05:52:49 -04:00
|
|
|
|
|
|
|
CONFIGURE_STYLE= gnu
|
2007-05-20 09:05:27 -04:00
|
|
|
CONFIGURE_ARGS+= --enable-ao \
|
2006-11-05 09:42:56 -05:00
|
|
|
--disable-alsa \
|
2007-05-20 09:05:27 -04:00
|
|
|
--disable-oss \
|
|
|
|
--disable-pulse \
|
|
|
|
--disable-sun \
|
|
|
|
--enable-mod \
|
2007-12-07 02:46:38 -05:00
|
|
|
--bindir=${PREFIX}/sbin \
|
|
|
|
--with-zeroconf=no
|
2007-05-20 09:05:27 -04:00
|
|
|
# OggFLAC and tremor tests
|
2007-07-19 04:06:24 -04:00
|
|
|
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
CPPFLAGS="-I${LOCALBASE}/include"
|
2007-05-20 09:05:27 -04:00
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mtremor}
|
|
|
|
CONFIGURE_ARGS+= --with-tremor \
|
|
|
|
--disable-oggflac \
|
|
|
|
--disable-shout
|
2007-09-18 14:26:52 -04:00
|
|
|
LIB_DEPENDS+= vorbisidec::audio/tremor
|
2007-05-20 09:05:27 -04:00
|
|
|
.else
|
|
|
|
|
|
|
|
WANTLIB+= theora
|
|
|
|
LIB_DEPENDS+= vorbis,vorbisfile,vorbisenc::audio/libvorbis \
|
|
|
|
speex::audio/speex \
|
|
|
|
shout::net/libshout
|
|
|
|
.endif
|
|
|
|
|
|
|
|
USE_LIBTOOL= Yes
|
2006-05-13 05:52:49 -04:00
|
|
|
|
|
|
|
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>
|