pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia Add support for libmpg123 (default on) and ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d6a140f6ac8a
branches:  trunk
changeset: 331759:d6a140f6ac8a
user:      rhialto <rhialto%pkgsrc.org@localhost>
date:      Sun Mar 24 20:38:25 2019 +0000

description:
Add support for libmpg123 (default on) and libopus (default off).

libmpg123 is the internally preferred mp3 decoder, according to codecs.conf.
The ffmpeg fallback complains a lot about many audio streams, causing
stuttering sound. Using mpg123 should avoid that.

diffstat:

 multimedia/gmplayer/Makefile        |   4 ++--
 multimedia/mencoder/Makefile        |   4 ++--
 multimedia/mplayer-share/options.mk |  20 +++++++++++++++++---
 multimedia/mplayer/Makefile         |   4 ++--
 4 files changed, 23 insertions(+), 9 deletions(-)

diffs (99 lines):

diff -r 33d690683163 -r d6a140f6ac8a multimedia/gmplayer/Makefile
--- a/multimedia/gmplayer/Makefile      Sun Mar 24 19:44:48 2019 +0000
+++ b/multimedia/gmplayer/Makefile      Sun Mar 24 20:38:25 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.141 2019/01/12 15:26:42 tsutsui Exp $
+# $NetBSD: Makefile,v 1.142 2019/03/24 20:38:25 rhialto Exp $
 #
 # NOTE: if you are updating both mplayer and gmplayer, you must ensure
 # that *both* distinfo files contain the correct, up-to-date files and
@@ -8,7 +8,7 @@
 #
 
 PKGNAME=       gmplayer-${MPLAYER_VERSION}
-PKGREVISION=   10
+PKGREVISION=   11
 
 SKIN_SITES=    http://www1.mplayerhq.hu/MPlayer/skins/         \
                http://www2.mplayerhq.hu/MPlayer/skins/         \
diff -r 33d690683163 -r d6a140f6ac8a multimedia/mencoder/Makefile
--- a/multimedia/mencoder/Makefile      Sun Mar 24 19:44:48 2019 +0000
+++ b/multimedia/mencoder/Makefile      Sun Mar 24 20:38:25 2019 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.69 2019/01/12 15:26:42 tsutsui Exp $
+# $NetBSD: Makefile,v 1.70 2019/03/24 20:38:25 rhialto Exp $
 
 PKGNAME=       mencoder-${MPLAYER_VERSION}
-PKGREVISION=   2
+PKGREVISION=   3
 
 COMMENT=       Simple movie encoder for MPlayer-playable movies
 
diff -r 33d690683163 -r d6a140f6ac8a multimedia/mplayer-share/options.mk
--- a/multimedia/mplayer-share/options.mk       Sun Mar 24 19:44:48 2019 +0000
+++ b/multimedia/mplayer-share/options.mk       Sun Mar 24 20:38:25 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.60 2018/04/04 12:26:24 triaxx Exp $
+# $NetBSD: options.mk,v 1.61 2019/03/24 20:38:25 rhialto Exp $
 
 .if defined(PKGNAME) && empty(PKGNAME:Mmplayer-share*)
 
@@ -24,7 +24,7 @@
 # Options supported by both mplayer* or mencoder*.
 
 PKG_SUPPORTED_OPTIONS= gif jpeg mad dts dv png theora vorbis x264 debug
-PKG_SUPPORTED_OPTIONS+= dvdread dvdnav
+PKG_SUPPORTED_OPTIONS+= dvdread dvdnav libmpg123 opus
 .if ${OSS_TYPE} != "none"
 PKG_SUPPORTED_OPTIONS+=        oss
 .endif
@@ -83,7 +83,7 @@
 
 .for o in cdparanoia dv esound gif jpeg \
            dvdread dvdnav \
-           lame mad mplayer-menu \
+           lame libmpg123 mad mplayer-menu \
            mplayer-default-cflags mplayer-runtime-cpudetection \
            nas oss pulseaudio png sdl theora vorbis x264 xvid vdpau lirc
 .  if !empty(PKG_SUPPORTED_OPTIONS:M${o})
@@ -204,6 +204,13 @@
 CONFIGURE_ARGS+=       --disable-jpeg
 .endif
 
+.if !empty(PKG_OPTIONS:Mlibmpg123)
+# no --enable-mpg123: configure forgets to add -lmpg123.
+.  include "../../audio/mpg123/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --disable-mpg123
+.endif
+
 .if !empty(PKG_OPTIONS:Mlame)
 CONFIGURE_ARGS+=       --enable-mp3lame
 .  include "../../audio/lame/buildlink3.mk"
@@ -211,6 +218,13 @@
 CONFIGURE_ARGS+=       --disable-mp3lame
 .endif
 
+.if !empty(PKG_OPTIONS:Mopus)
+CONFIGURE_ARGS+=       --enable-libopus
+.  include "../../audio/libopus/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --disable-opus
+.endif
+
 .if !empty(PKG_OPTIONS:Mmad)
 CONFIGURE_ARGS+=       --enable-mad
 .  include "../../audio/libmad/buildlink3.mk"
diff -r 33d690683163 -r d6a140f6ac8a multimedia/mplayer/Makefile
--- a/multimedia/mplayer/Makefile       Sun Mar 24 19:44:48 2019 +0000
+++ b/multimedia/mplayer/Makefile       Sun Mar 24 20:38:25 2019 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.102 2019/01/12 15:26:42 tsutsui Exp $
+# $NetBSD: Makefile,v 1.103 2019/03/24 20:38:25 rhialto Exp $
 
 PKGNAME=       mplayer-${MPLAYER_VERSION}
-PKGREVISION=   2
+PKGREVISION=   3
 
 COMMENT=       Fast, cross-platform movie player
 



Home | Main Index | Thread Index | Old Index