File: [cvs.NetBSD.org] / pkgsrc / audio / musicpd / Makefile (download)
Revision 1.229, Mon Nov 9 10:53:42 2020 UTC (3 years, 5 months ago) by wiz
Branch: MAIN
Changes since 1.228: +2 -3
lines
musicpd: update to 0.22.3.
ver 0.22.3 (2020/11/06)
* playlist
- add option "as_directory", making CUE file expansion optional
* storage
- curl: fix crash bug
* filter
- fix garbage after "Audio format not supported by filter" message
- ffmpeg: support planar output
- ffmpeg: support sample formats other than 16 bit
ver 0.22.2 (2020/10/28)
* database
- simple: purge songs and virtual directories for unavailable plugins
on update
* input
- qobuz/tidal: fix protocol errors due to newlines in error messages
- smbclient: disable by default due to libsmbclient crash bug
* playlist
- soundcloud: fix protocol errors due to newlines in error messages
* state_file: save on shutdown
|
# $NetBSD: Makefile,v 1.229 2020/11/09 10:53:42 wiz Exp $
DISTNAME= mpd-0.22.3
PKGNAME= ${DISTNAME:S/mpd/musicpd/}
CATEGORIES= audio
MASTER_SITES= https://www.musicpd.org/download/mpd/0.22/
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.musicpd.org/
COMMENT= Remote controllable audio player
LICENSE= gnu-gpl-v2
CONFLICTS= mpd-[0-9]*
USE_TOOLS+= pkg-config
USE_LANGUAGES= c c++
# c++17
GCC_REQD+= 8
MESON_ARGS+= -Ddocumentation=enabled
# worrying libraries with limited maintainance:
# - audiofile, many CVEs, no activity since 2016
# using sndfile instead
# - mad, no release since 2004
# using mpg123 instead
MESON_ARGS+= -Dmad=disabled
MESON_ARGS+= -Daudiofile=disabled
# not available in pkgsrc?
MESON_ARGS+= -Dnfs=disabled
MESON_ARGS+= -Diso9660=disabled
MESON_ARGS+= -Dsndio=disabled
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS"
MESON_ARGS+= -Dsolaris_output=enabled
.endif
MPD_USER?= mpd
MPD_GROUP?= mpd
PKG_GROUPS= ${MPD_GROUP}
PKG_USERS= ${MPD_USER}:${MPD_GROUP}
PKG_GROUPS_VARS= MPD_USER
PKG_USERS_VARS= MPD_GROUP
.include "../../mk/oss.buildlink3.mk"
.if ${OSS_TYPE} == "none"
MESON_ARGS+= -Doss=disabled
.else
MESON_ARGS+= -Doss=enabled
LDFLAGS+= ${LIBOSSAUDIO}
SUBST_CLASSES+= oss
SUBST_STAGE.oss= pre-configure
SUBST_MESSAGE.oss= Correcting the path to the OSS device.
SUBST_FILES.oss+= src/output/plugins/OssOutputPlugin.cxx
SUBST_SED.oss+= -e "s,/dev/sound/dsp,${DEVOSSAUDIO},g"
.endif
EGDIR= ${PREFIX}/share/examples/mpd
CONF_FILES= ${EGDIR}/mpd.conf ${PKG_SYSCONFDIR}/mpd.conf
RCD_SCRIPTS= mpd
FILES_SUBST+= MPD_USER=${MPD_USER:Q}
FILES_SUBST+= MPD_GROUP=${MPD_GROUP:Q}
FILES_SUBST+= VARBASE=${VARBASE}
BUILD_DEFS+= VARBASE
OWN_DIRS_PERMS+= ${VARBASE}/lib/mpd \
${MPD_USER} ${MPD_GROUP} 0755
OWN_DIRS_PERMS+= ${VARBASE}/lib/mpd/music \
${MPD_USER} ${MPD_GROUP} 0755
OWN_DIRS_PERMS+= ${VARBASE}/lib/mpd/playlists \
${MPD_USER} ${MPD_GROUP} 0755
CPPFLAGS.SunOS+= -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__
.include "options.mk"
SUBST_CLASSES+= conf
SUBST_STAGE.conf= pre-configure
SUBST_FILES.conf= mpd.conf
SUBST_MESSAGE.conf= Setting variables in the configuration file.
SUBST_VARS.conf+= VARBASE
SUBST_VARS.conf+= MPD_USER
SUBST_CLASSES+= sphinx
SUBST_STAGE.sphinx= pre-configure
SUBST_FILES.sphinx= doc/meson.build
SUBST_MESSAGE.sphinx= Fixing sphinx binary name.
SUBST_SED.sphinx+= -e "s,sphinx-build,sphinx-build-${PYVERSSUFFIX},"
INSTALLATION_DIRS= ${EGDIR}
PYTHON_FOR_BUILD_ONLY= tool
PYTHON_VERSIONED_DEPENDENCIES= sphinx:tool
post-extract:
${CP} ${FILESDIR}/mpd.conf ${WRKSRC}/mpd.conf
post-install:
${INSTALL_DATA} ${WRKSRC}/mpd.conf ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKSRC}/doc/mpdconf.example ${DESTDIR}${EGDIR}
.include "../../devel/meson/build.mk"
BUILDLINK_API_DEPENDS.flac+= flac>=1.2
.include "../../audio/flac/buildlink3.mk"
.include "../../audio/libid3tag/buildlink3.mk"
.include "../../audio/libopus/buildlink3.mk"
.include "../../audio/libsndfile/buildlink3.mk"
.include "../../audio/mpg123/buildlink3.mk"
.include "../../databases/sqlite3/buildlink3.mk"
.include "../../devel/boost-libs/buildlink3.mk"
.include "../../devel/pcre/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../lang/python/versioned_dependencies.mk"
.include "../../security/libgcrypt/buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"
.include "../../textproc/icu/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"