pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio/moc moc: Update to 2.5.2
details: https://anonhg.NetBSD.org/pkgsrc/rev/5c75a124e0be
branches: trunk
changeset: 396861:5c75a124e0be
user: nia <nia%pkgsrc.org@localhost>
date: Tue Jun 11 11:54:56 2019 +0000
description:
moc: Update to 2.5.2
pkgsrc changes:
* support wide-curses, enabled by default so I can read my song titles.
* support for alsa, enabled by default on linux
* support for more file formats
* pkglint fixes
2.5.2
New configuration file options:
ALSAStutterDefeat: avoid the ALSA bug which causes stuttering
Significant bug fixes:
Fixed error during configure on busybox systems
Fixed calculation of average bitrate in FLAC decoder
Fixed unintentional disabling of MMAP support
Fixed build failure on split ncurses/tinfo systems
Fixed unreaped children when running in foreground mode
Fixed freeze on Nokia devices if audios play to completion
Circumvented ALSA stutter bug
Added missing 'Precache' option to example config file
Miscellaneous:
Improved the accuracy of the average bitrate for FLAC
Mitigated out-of-file seeking for several formats
Warn of TagLib version requirement rising to 1.5
Warn of Musepack library changing to libmpc (from libmpcdec)
2.5.1
Significant bug fixes:
Corrected the setting of linked libraries for Berkeley DB
Fixed ALSA volume setting problem (Tomasz Golinski)
Fixed clearing of stream status message on error
Resolved FFmpeg/LibAV's downmixing API issues (Andreas Cadhalpun)
Removed duplicate logging of fatal error messages
Miscellaneous:
Adapted to FFmpeg 3.0 API
Warn of FFmpeg/LibAV version requirement rising to 1.0/10.0
Warn of pending POSIX.1-2001 compliance requirement
Fixed several warnings and errors on OpenBSD (Brent Cook)
Fixed various (and potential) segfaults (Daniel T. Borelli, Hendrik Iben, Rastislav Barlik)
Fixed various resource leakages
Silenced various compiler warnings
Added instructions on building with autoreconf
diffstat:
audio/moc/Makefile | 45 +++-
audio/moc/PLIST | 9 +-
audio/moc/distinfo | 16 +-
audio/moc/options.mk | 110 ++++++++++---
audio/moc/patches/patch-ab | 18 --
audio/moc/patches/patch-ad | 98 ------------
audio/moc/patches/patch-alsa.c | 17 ++
audio/moc/patches/patch-decoder__plugins_vorbis_vorbis.m4 | 15 -
audio/moc/patches/patch-playlist__file.c | 7 +-
9 files changed, 147 insertions(+), 188 deletions(-)
diffs (truncated from 457 to 300 lines):
diff -r f34bd9d1cc63 -r 5c75a124e0be audio/moc/Makefile
--- a/audio/moc/Makefile Tue Jun 11 11:41:53 2019 +0000
+++ b/audio/moc/Makefile Tue Jun 11 11:54:56 2019 +0000
@@ -1,13 +1,12 @@
-# $NetBSD: Makefile,v 1.38 2018/12/13 19:51:41 adam Exp $
+# $NetBSD: Makefile,v 1.39 2019/06/11 11:54:56 nia Exp $
-DISTNAME= moc-2.5.0
-PKGREVISION= 11
+DISTNAME= moc-2.5.2
CATEGORIES= audio
MASTER_SITES= http://ftp.daper.net/pub/soft/moc/stable/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= peter.schuller%infidyne.com@localhost
-HOMEPAGE= http://moc.daper.net/
+HOMEPAGE= https://moc.daper.net/
COMMENT= Curses based console audio player
LICENSE= gnu-gpl-v2
@@ -15,14 +14,37 @@
USE_PKGLOCALEDIR= yes
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config
-# XXX: Only needed to regen configure script
-#USE_TOOLS+= autoconf automake
+USE_LANGUAGES= c c++
+SUBST_CLASSES+= eq
+SUBST_STAGE.eq= pre-configure
+SUBST_FILES.eq= configure
+SUBST_SED.eq= -e 's," == "," = ",g'
+SUBST_MESSAGE.eq= Fixing non-portable == in test
+
+.include "../../mk/oss.buildlink3.mk"
+
+.if ${OSS_TYPE} != "none"
SUBST_CLASSES+= oss
SUBST_STAGE.oss= pre-configure
-SUBST_FILES.oss= config.example options.c
+SUBST_FILES.oss= config.example.in options.c
SUBST_SED.oss= -e s,/dev/dsp,${DEVOSSAUDIO},g
SUBST_MESSAGE.oss= Fixing hardcoded audio device.
+.endif
+
+.if ${OSS_TYPE} == "none"
+CONFIGURE_ARGS+= --without-oss
+.endif
+
+# not in pkgsrc?
+CONFIGURE_ARGS+= --without-rcc
+
+# no buildlink?
+CONFIGURE_ARGS+= --without-timidity
+
+# if you're one of the two people with music collections in musepack,
+# want this, and can get it to work, please send a patch
+CONFIGURE_ARGS+= --without-musepack
BUILDLINK_TRANSFORM+= l:db:db4
@@ -32,19 +54,12 @@
# It is harmless.
CHECK_WRKREF_SKIP= bin/mocp
-# XXX: This target is [currently] for regenerating configure to add the
-# XXX: sched_get_priority_max check of librt.
-#pre-configure:
-# cd ${WRKSRC} && autoreconf -v -i
-
.include "options.mk"
-
.include "../../audio/libid3tag/buildlink3.mk"
-.include "../../audio/libmad/buildlink3.mk"
.include "../../databases/db4/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/libltdl/buildlink3.mk"
+.include "../../sysutils/file/buildlink3.mk"
.include "../../mk/curses.buildlink3.mk"
-.include "../../mk/oss.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r f34bd9d1cc63 -r 5c75a124e0be audio/moc/PLIST
--- a/audio/moc/PLIST Tue Jun 11 11:41:53 2019 +0000
+++ b/audio/moc/PLIST Tue Jun 11 11:54:56 2019 +0000
@@ -1,10 +1,15 @@
-@comment $NetBSD: PLIST,v 1.5 2016/02/16 08:46:01 leot Exp $
+@comment $NetBSD: PLIST,v 1.6 2019/06/11 11:54:56 nia Exp $
bin/mocp
+${PLIST.faad}lib/moc/decoder_plugins/libaac_decoder.la
+${PLIST.ffmpeg}lib/moc/decoder_plugins/libffmpeg_decoder.la
${PLIST.flac}lib/moc/decoder_plugins/libflac_decoder.la
-lib/moc/decoder_plugins/libmp3_decoder.la
+${PLIST.modplug}lib/moc/decoder_plugins/libmodplug_decoder.la
+${PLIST.mad}lib/moc/decoder_plugins/libmp3_decoder.la
+${PLIST.sidplay}lib/moc/decoder_plugins/libsidplay2_decoder.la
${PLIST.sndfile}lib/moc/decoder_plugins/libsndfile_decoder.la
${PLIST.speex}lib/moc/decoder_plugins/libspeex_decoder.la
${PLIST.vorbis}lib/moc/decoder_plugins/libvorbis_decoder.la
+${PLIST.wavpack}lib/moc/decoder_plugins/libwavpack_decoder.la
man/man1/mocp.1
share/doc/moc/README
share/doc/moc/README_equalizer
diff -r f34bd9d1cc63 -r 5c75a124e0be audio/moc/distinfo
--- a/audio/moc/distinfo Tue Jun 11 11:41:53 2019 +0000
+++ b/audio/moc/distinfo Tue Jun 11 11:54:56 2019 +0000
@@ -1,10 +1,8 @@
-$NetBSD: distinfo,v 1.13 2017/02/16 13:31:44 maya Exp $
+$NetBSD: distinfo,v 1.14 2019/06/11 11:54:56 nia Exp $
-SHA1 (moc-2.5.0.tar.bz2) = a02c10075541995771dbdccb7f2d0ecd19d70b81
-RMD160 (moc-2.5.0.tar.bz2) = 0c5d927b7c8ef54338ff6970f9e5d4f71dcb6168
-SHA512 (moc-2.5.0.tar.bz2) = ca6cfd4d1d13030bd561df8ab671399a17dfb675c360ecc95a2491c6a85764d0f72259ac33665405b197f370f4fd7ef59d9a485706f8a882bff30d0fafcf252c
-Size (moc-2.5.0.tar.bz2) = 594532 bytes
-SHA1 (patch-ab) = 37a3cc45df7b528613ce5c714c95895988f1570c
-SHA1 (patch-ad) = 4d4d73f819717698b37ca937477989b010adb5c8
-SHA1 (patch-decoder__plugins_vorbis_vorbis.m4) = 50f2967146be40a6d6b881cdffe5f25c4c226175
-SHA1 (patch-playlist__file.c) = cc2d5280992d713c846bfe16e8869238df6dca5d
+SHA1 (moc-2.5.2.tar.bz2) = 9d27a929b63099416263471c16367997c0ae6dba
+RMD160 (moc-2.5.2.tar.bz2) = 3b965b4f173f1d217b4dfb071376d989bdc8d2ff
+SHA512 (moc-2.5.2.tar.bz2) = 992d06809fb52e58dcee63704bde05795b99edbac46edd8381f314c564490013b18e1853926f419c2c3c7f1bb68ff35e97048de03ace3232b800cf4b3b7dbe0f
+Size (moc-2.5.2.tar.bz2) = 602728 bytes
+SHA1 (patch-alsa.c) = 7d603757dae2c1a749ab3d0ebd7bdeee18e6dc5e
+SHA1 (patch-playlist__file.c) = 0cda1917aca55341981dff94bcbb177af1be3de2
diff -r f34bd9d1cc63 -r 5c75a124e0be audio/moc/options.mk
--- a/audio/moc/options.mk Tue Jun 11 11:41:53 2019 +0000
+++ b/audio/moc/options.mk Tue Jun 11 11:54:56 2019 +0000
@@ -1,71 +1,121 @@
-# $NetBSD: options.mk,v 1.6 2016/02/16 08:46:01 leot Exp $
+# $NetBSD: options.mk,v 1.7 2019/06/11 11:54:56 nia Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.moc
-PKG_OPTIONS_VAR= PKG_OPTIONS.moc
-PKG_SUPPORTED_OPTIONS= sndfile flac vorbis speex curl samplerate jack
-PKG_SUGGESTED_OPTIONS= sndfile flac vorbis curl
+PKG_SUPPORTED_OPTIONS+= curl faad flac mad sndfile vorbis
+PKG_SUPPORTED_OPTIONS+= alsa ffmpeg jack modplug samplerate
+PKG_SUPPORTED_OPTIONS+= sidplay speex wavpack wide-curses
+
+PKG_SUGGESTED_OPTIONS+= curl faad flac mad sndfile vorbis wide-curses
+PKG_SUGGESTED_OPTIONS.Linux+= alsa
.include "../../mk/bsd.options.mk"
-PLIST_VARS+= flac sndfile speex vorbis
+PLIST_VARS+= faad ffmpeg flac mad modplug sidplay sndfile
+PLIST_VARS+= speex vorbis wavpack
+
+.if !empty(PKG_OPTIONS:Malsa)
+. include "../../audio/alsa-lib/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-alsa
+.endif
+
+.if !empty(PKG_OPTIONS:Mcurl)
+. include "../../www/curl/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-curl
+.endif
+
+.if !empty(PKG_OPTIONS:Mfaad)
+PLIST.faad= yes
+. include "../../audio/faad2/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-aac
+.endif
+
+.if !empty(PKG_OPTIONS:Mffmpeg)
+PLIST.ffmpeg= yes
+. include "../../multimedia/ffmpeg3/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-ffmpeg
+.endif
+
+.if !empty(PKG_OPTIONS:Mflac)
+PLIST.flac= yes
+. include "../../audio/flac/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-flac
+.endif
.if !empty(PKG_OPTIONS:Mjack)
-CONFIGURE_ARGS+= --with-jack
###
### Resampling support is usually required with jack.
###
. include "../../audio/jack/buildlink3.mk"
-. if empty(PKG_OPTIONS:Msamplerate)
-PKG_OPTIONS+= samplerate
-. endif
+. include "../../audio/libsamplerate/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-jack
.endif
+.if !empty(PKG_OPTIONS:Mmad)
+PLIST.mad= yes
+. include "../../audio/libmad/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-mp3
+.endif
+
+.if !empty(PKG_OPTIONS:Mmodplug)
+PLIST.modplug= yes
+. include "../../audio/libmodplug/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-modplug
+.endif
+
.if !empty(PKG_OPTIONS:Msamplerate)
-CONFIGURE_ARGS+= --with-samplerate
-. if empty(PKG_OPTIONS:Msndfile)
-PKG_OPTIONS+= sndfile
-. endif
. include "../../audio/libsamplerate/buildlink3.mk"
.else
+. if empty(PKG_OPTIONS:Mjack)
CONFIGURE_ARGS+= --without-samplerate
+. endif
+.endif
+
+.if !empty(PKG_OPTIONS:Msidplay)
+PLIST.sidplay= yes
+. include "../../audio/libsidplay2/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-sidplay2
.endif
.if !empty(PKG_OPTIONS:Msndfile)
PLIST.sndfile= yes
-CONFIGURE_ARGS+= --with-sndfile
. include "../../audio/libsndfile/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-sndfile
.endif
-.if !empty(PKG_OPTIONS:Mflac)
-PLIST.flac= yes
-CONFIGURE_ARGS+= --with-flac
-. include "../../audio/flac/buildlink3.mk"
+.if !empty(PKG_OPTIONS:Mspeex)
+PLIST.speex= yes
+. include "../../audio/speex/buildlink3.mk"
.else
-CONFIGURE_ARGS+= --without-flac
+CONFIGURE_ARGS+= --without-speex
.endif
.if !empty(PKG_OPTIONS:Mvorbis)
PLIST.vorbis= yes
-CONFIGURE_ARGS+= --with-vorbis
. include "../../audio/libvorbis/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-vorbis
.endif
-.if !empty(PKG_OPTIONS:Mspeex)
-PLIST.speex= yes
-CONFIGURE_ARGS+= --with-speex
-. include "../../audio/speex/buildlink3.mk"
+.if !empty(PKG_OPTIONS:Mwavpack)
+PLIST.wavpack= yes
+. include "../../audio/wavpack/buildlink3.mk"
.else
-CONFIGURE_ARGS+= --without-speex
+CONFIGURE_ARGS+= --without-wavpack
.endif
-.if !empty(PKG_OPTIONS:Mcurl)
-CONFIGURE_ARGS+= --with-curl
-. include "../../www/curl/buildlink3.mk"
-.else
-CONFIGURE_ARGS+= --without-curl
+.if !empty(PKG_OPTIONS:Mwide-curses)
+# handled by curses.buildlink3.mk
+# XXX i'm not sure why this is needed
+FAKE_NCURSES= yes
.endif
diff -r f34bd9d1cc63 -r 5c75a124e0be audio/moc/patches/patch-ab
--- a/audio/moc/patches/patch-ab Tue Jun 11 11:41:53 2019 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-$NetBSD: patch-ab,v 1.3 2016/02/16 08:46:01 leot Exp $
-
-Check for sched_get_priority_max being in -lrt.
-
---- configure.in.orig 2014-08-30 02:32:27.000000000 +0000
-+++ configure.in
-@@ -95,7 +95,10 @@ AC_CHECK_HEADERS([fcntl.h string.h strin
- AC_MSG_ERROR([Can't find required header files.]))
- AC_CHECK_HEADERS([sys/select.h byteswap.h])
-
--AC_CHECK_FUNCS([sched_get_priority_max])
-+AC_CHECK_FUNCS([sched_get_priority_max], ,
-+ [AC_CHECK_LIB([rt],
-+ [sched_get_priority_max],
-+ [EXTRA_LIBS="$EXTRA_LIBS -lrt"])])
-
- dnl langinfo
Home |
Main Index |
Thread Index |
Old Index