2020-07-08 13:02:24 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.132 2020/07/08 13:02:24 bket Exp $
|
2006-05-13 09:52:49 +00:00
|
|
|
|
2015-03-16 21:40:18 +00:00
|
|
|
BROKEN-hppa = no atomic ops
|
2010-01-12 18:51:07 +00:00
|
|
|
COMMENT = Music Player Daemon
|
2020-07-08 13:02:24 +00:00
|
|
|
VER = 0.21.25
|
2017-02-23 13:03:46 +00:00
|
|
|
DISTNAME = mpd-${VER}
|
2019-08-06 17:28:12 +00:00
|
|
|
EXTRACT_SUFX = .tar.xz
|
2010-01-12 18:51:07 +00:00
|
|
|
CATEGORIES = audio
|
2018-04-23 16:58:40 +00:00
|
|
|
HOMEPAGE = https://www.musicpd.org/
|
2006-05-13 09:52:49 +00:00
|
|
|
|
2010-08-23 14:46:55 +00:00
|
|
|
# GPLv2+
|
2019-07-12 20:43:27 +00:00
|
|
|
PERMIT_PACKAGE = Yes
|
2006-05-13 09:52:49 +00:00
|
|
|
|
2017-02-23 13:03:46 +00:00
|
|
|
WANTLIB = FLAC audiofile avcodec avformat avutil \
|
|
|
|
bz2 c cdio cdio_cdda cdio_paranoia curl \
|
2020-01-02 09:37:43 +00:00
|
|
|
expat faad icui18n icuuc \
|
2017-02-23 13:03:46 +00:00
|
|
|
id3tag iso9660 m mikmod mp3lame mpcdec \
|
2019-08-06 17:28:12 +00:00
|
|
|
mpdclient ogg opus pcre pthread samplerate \
|
|
|
|
shout sndfile sndio sqlite3 \
|
2017-07-16 19:18:47 +00:00
|
|
|
vorbis vorbisenc yajl z ${COMPILER_LIBCXX}
|
2006-05-13 09:52:49 +00:00
|
|
|
|
2018-04-23 16:58:40 +00:00
|
|
|
MASTER_SITES = https://www.musicpd.org/download/mpd/${VER:R}/
|
2006-05-13 09:52:49 +00:00
|
|
|
|
2018-04-19 06:36:40 +00:00
|
|
|
COMPILER = base-clang ports-gcc
|
2006-05-13 09:52:49 +00:00
|
|
|
|
2014-10-27 11:07:18 +00:00
|
|
|
BUILD_DEPENDS = devel/boost
|
|
|
|
|
2014-11-27 18:20:55 +00:00
|
|
|
LIB_DEPENDS = audio/faad>=2.6.1p0 \
|
|
|
|
audio/flac \
|
|
|
|
audio/lame \
|
2012-08-23 14:28:19 +00:00
|
|
|
audio/libcdio \
|
2019-05-12 15:26:06 +00:00
|
|
|
audio/libcdio-paranoia \
|
2010-11-15 00:22:45 +00:00
|
|
|
audio/libid3tag \
|
|
|
|
audio/libmikmod \
|
2014-05-06 10:49:23 +00:00
|
|
|
audio/libmpdclient \
|
2014-11-27 18:20:55 +00:00
|
|
|
audio/libsamplerate \
|
|
|
|
audio/libvorbis \
|
|
|
|
audio/musepack \
|
|
|
|
audio/opus \
|
2016-09-23 09:16:52 +00:00
|
|
|
databases/sqlite3 \
|
2014-11-27 18:20:55 +00:00
|
|
|
devel/libaudiofile \
|
2015-09-24 08:28:48 +00:00
|
|
|
devel/libyajl \
|
2019-08-06 17:28:12 +00:00
|
|
|
devel/pcre \
|
2014-06-06 14:53:37 +00:00
|
|
|
graphics/ffmpeg \
|
2010-11-15 00:22:45 +00:00
|
|
|
net/curl \
|
2014-11-27 18:20:55 +00:00
|
|
|
net/libshout \
|
2014-10-27 11:07:18 +00:00
|
|
|
textproc/icu4c
|
2006-05-13 09:52:49 +00:00
|
|
|
|
2019-08-06 17:28:12 +00:00
|
|
|
MODULES = devel/meson
|
|
|
|
|
2019-08-15 05:44:37 +00:00
|
|
|
CONFIGURE_ARGS += -Dsystemd=disabled \
|
2019-08-06 17:28:12 +00:00
|
|
|
-Dinotify=false \
|
|
|
|
-Depoll=false \
|
|
|
|
-Dsyslog=enabled \
|
|
|
|
-Dupnp=disabled \
|
|
|
|
-Dlibmpdclient=enabled \
|
|
|
|
-Dneighbor=false \
|
|
|
|
# storage
|
|
|
|
CONFIGURE_ARGS += -Dudisks=disabled \
|
|
|
|
-Dwebdav=enabled
|
|
|
|
|
|
|
|
# playlist
|
|
|
|
CONFIGURE_ARGS += -Dcue=true
|
|
|
|
|
|
|
|
# inputs
|
|
|
|
CONFIGURE_ARGS += -Dcdio_paranoia=enabled \
|
|
|
|
-Dcurl=enabled \
|
|
|
|
-Dnfs=disabled \
|
|
|
|
-Dmms=disabled \
|
|
|
|
-Dsmbclient=disabled
|
|
|
|
|
|
|
|
# commercial
|
|
|
|
CONFIGURE_ARGS += -Dqobuz=disabled \
|
|
|
|
-Dsoundcloud=enabled \
|
|
|
|
-Dtidal=disabled
|
|
|
|
|
|
|
|
# archive
|
|
|
|
CONFIGURE_ARGS += -Dbzip2=enabled \
|
|
|
|
-Diso9660=enabled \
|
|
|
|
-Dzzip=disabled
|
|
|
|
# tag
|
|
|
|
CONFIGURE_ARGS += -Did3tag=enabled \
|
|
|
|
-Dchromaprint=disabled
|
|
|
|
# decoders
|
|
|
|
CONFIGURE_ARGS += -Dadplug=disabled \
|
|
|
|
-Daudiofile=enabled \
|
|
|
|
-Dfaad=enabled \
|
|
|
|
-Dffmpeg=enabled \
|
|
|
|
-Dflac=enabled \
|
|
|
|
-Dfluidsynth=disabled \
|
|
|
|
-Dgme=disabled \
|
|
|
|
-Dmad=disabled \
|
|
|
|
-Dmikmod=enabled \
|
|
|
|
-Dmodplug=disabled \
|
|
|
|
-Dmpcdec=enabled \
|
|
|
|
-Dmpg123=disabled \
|
|
|
|
-Dopus=enabled \
|
|
|
|
-Dsidplay=disabled \
|
|
|
|
-Dsndfile=enabled \
|
|
|
|
-Dtremor=disabled \
|
|
|
|
-Dvorbis=enabled \
|
|
|
|
-Dwavpack=disabled \
|
|
|
|
-Dwildmidi=disabled
|
|
|
|
|
|
|
|
# encoders
|
|
|
|
CONFIGURE_ARGS += -Dvorbisenc=enabled \
|
|
|
|
-Dlame=enabled \
|
|
|
|
-Dtwolame=disabled \
|
|
|
|
-Dshine=disabled \
|
|
|
|
-Dwave_encoder=true
|
|
|
|
|
|
|
|
# filters
|
|
|
|
CONFIGURE_ARGS += -Dlibsamplerate=enabled \
|
|
|
|
-Dsoxr=disabled
|
|
|
|
|
|
|
|
# outputs
|
|
|
|
CONFIGURE_ARGS += -Dalsa=disabled \
|
|
|
|
-Dao=disabled \
|
|
|
|
-Dfifo=true \
|
|
|
|
-Dhttpd=true \
|
|
|
|
-Djack=disabled \
|
|
|
|
-Dopenal=disabled \
|
|
|
|
-Doss=disabled \
|
|
|
|
-Dpipe=true \
|
|
|
|
-Dpulse=disabled \
|
|
|
|
-Drecorder=true \
|
|
|
|
-Dshout=enabled \
|
|
|
|
-Dsndio=enabled \
|
|
|
|
-Dsolaris_output=disabled
|
|
|
|
|
|
|
|
# misc
|
|
|
|
CONFIGURE_ARGS += -Ddbus=disabled \
|
|
|
|
-Dexpat=enabled \
|
|
|
|
-Dicu=enabled \
|
|
|
|
-Diconv=enabled \
|
|
|
|
-Dlibwrap=disabled \
|
|
|
|
-Dpcre=enabled \
|
|
|
|
-Dsqlite=enabled \
|
|
|
|
-Dyajl=enabled \
|
|
|
|
-Dzlib=enabled \
|
|
|
|
-Dzeroconf=disabled
|
2011-04-05 19:55:38 +00:00
|
|
|
|
2014-11-27 18:20:55 +00:00
|
|
|
# OggFLAC tests, initgroups(3)
|
2010-01-12 18:51:07 +00:00
|
|
|
CONFIGURE_ENV = LDFLAGS="-L${LOCALBASE}/lib" \
|
2008-09-09 08:11:29 +00:00
|
|
|
CPPFLAGS="-I${LOCALBASE}/include -D_BSD_SOURCE"
|
2007-05-20 13:05:27 +00:00
|
|
|
|
2006-05-13 09:52:49 +00:00
|
|
|
post-install:
|
2019-08-06 17:28:12 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/mpd.1 ${PREFIX}/man/man1/mpd.1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/mpd.conf.5 ${PREFIX}/man/man5/mpd.conf.5
|
|
|
|
|
|
|
|
# avoid dependency on gtk3,-guic
|
|
|
|
@rm -Rf ${PREFIX}/share/icons/
|
2006-05-13 09:52:49 +00:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mpd
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/mpdconf.example \
|
|
|
|
${PREFIX}/share/examples/mpd/mpd.conf
|
|
|
|
|
2019-08-06 17:28:12 +00:00
|
|
|
# disable meson's default of using "-Wl,--as-needed" on ld.bfd arches;
|
|
|
|
# build failures due to undefined references are often seen.
|
|
|
|
.include <bsd.port.arch.mk>
|
|
|
|
.if !${PROPERTIES:Mlld}
|
|
|
|
CONFIGURE_ARGS += -Db_asneeded=false
|
|
|
|
.endif
|
|
|
|
|
2006-05-13 09:52:49 +00:00
|
|
|
.include <bsd.port.mk>
|