0bbbd35e32
espie asked me in such a nice way to fix this that I'm bumping all ports that have a direct dependency on glib2.
108 lines
2.4 KiB
Makefile
108 lines
2.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.49 2012/09/01 14:36:56 ajacoutot Exp $
|
|
|
|
COMMENT = Music Player Daemon
|
|
DISTNAME = mpd-0.17.1
|
|
CATEGORIES = audio
|
|
HOMEPAGE = http://www.musicpd.org/
|
|
MAINTAINER = David Coppa <dcoppa@openbsd.org>
|
|
REVISION= 0
|
|
|
|
# GPLv2+
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
PERMIT_DISTFILES_CDROM =Yes
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
WANTLIB = FLAC ao audiofile c cdio cdio_cdda cdio_paranoia \
|
|
curl glib-2.0 gthread-2.0 id3tag m mad \
|
|
mikmod ogg pthread samplerate sndfile sndio \
|
|
stdc++ z
|
|
|
|
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=musicpd/}
|
|
|
|
MODULES = devel/gettext
|
|
|
|
LIB_DEPENDS = devel/libaudiofile \
|
|
audio/libao \
|
|
audio/libcdio \
|
|
audio/libsamplerate \
|
|
audio/flac \
|
|
audio/libid3tag \
|
|
audio/libmad \
|
|
audio/libmikmod \
|
|
net/curl \
|
|
devel/glib2
|
|
|
|
FLAVORS = tremor
|
|
FLAVOR ?=
|
|
|
|
CONFIGURE_STYLE = gnu
|
|
CONFIGURE_ARGS += --bindir=${PREFIX}/sbin \
|
|
--disable-alsa \
|
|
--disable-ffmpeg \
|
|
--disable-gme \
|
|
--disable-inotify \
|
|
--disable-jack \
|
|
--disable-libwrap \
|
|
--disable-mms \
|
|
--disable-modplug \
|
|
--disable-mpg123 \
|
|
--disable-oss \
|
|
--disable-pulse \
|
|
--disable-roar \
|
|
--disable-sidplay \
|
|
--disable-soundcloud \
|
|
--disable-soup \
|
|
--disable-sqlite \
|
|
--disable-systemd-daemon \
|
|
--disable-twolame-encoder \
|
|
--disable-wavpack \
|
|
--enable-ao \
|
|
--enable-audiofile \
|
|
--enable-cdio-paranoia \
|
|
--enable-curl \
|
|
--enable-lsr \
|
|
--enable-mad \
|
|
--enable-mikmod \
|
|
--enable-mpc \
|
|
--enable-pipe-output \
|
|
--enable-sndfile \
|
|
--with-zeroconf=no \
|
|
--without-systemdsystemunitdir
|
|
|
|
# OggFLAC and tremor tests, initgroups(3)
|
|
CONFIGURE_ENV = LDFLAGS="-L${LOCALBASE}/lib" \
|
|
CPPFLAGS="-I${LOCALBASE}/include -D_BSD_SOURCE"
|
|
|
|
.if ${FLAVOR:Mtremor}
|
|
CONFIGURE_ARGS += --with-tremor \
|
|
--disable-shout \
|
|
--disable-vorbis-encoder \
|
|
--disable-lame-encoder \
|
|
--disable-aac \
|
|
--disable-mpc
|
|
LIB_DEPENDS += audio/tremor
|
|
WANTLIB += vorbisidec
|
|
.else
|
|
WANTLIB += theora vorbis vorbisfile vorbisenc speex mp3lame \
|
|
shout faad mp4ff mpcdec
|
|
LIB_DEPENDS += audio/libvorbis \
|
|
audio/speex \
|
|
audio/lame \
|
|
net/libshout \
|
|
audio/faad>=2.6.1p0 \
|
|
audio/musepack
|
|
CONFIGURE_ARGS += --enable-aac \
|
|
--enable-shout \
|
|
--enable-vorbis-encoder
|
|
.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>
|