diff options
author | rhialto <rhialto@pkgsrc.org> | 2019-03-24 20:38:25 +0000 |
---|---|---|
committer | rhialto <rhialto@pkgsrc.org> | 2019-03-24 20:38:25 +0000 |
commit | 546cd16b9d0e5f69e30c4993c51d953ca497be11 (patch) | |
tree | b1def014d856e7c02cd315f3d433b26d7f6c29bd | |
parent | 87533ff124e76bf451a5b963741264a0a6eabbf3 (diff) | |
download | pkgsrc-546cd16b9d0e5f69e30c4993c51d953ca497be11.tar.gz |
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.
-rw-r--r-- | multimedia/gmplayer/Makefile | 4 | ||||
-rw-r--r-- | multimedia/mencoder/Makefile | 4 | ||||
-rw-r--r-- | multimedia/mplayer-share/options.mk | 20 | ||||
-rw-r--r-- | multimedia/mplayer/Makefile | 4 |
4 files changed, 23 insertions, 9 deletions
diff --git a/multimedia/gmplayer/Makefile b/multimedia/gmplayer/Makefile index 52ebd2344f7..8b63ed801af 100644 --- a/multimedia/gmplayer/Makefile +++ b/multimedia/gmplayer/Makefile @@ -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 --git a/multimedia/mencoder/Makefile b/multimedia/mencoder/Makefile index da5cfb63eca..afb88209a28 100644 --- a/multimedia/mencoder/Makefile +++ b/multimedia/mencoder/Makefile @@ -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 --git a/multimedia/mplayer-share/options.mk b/multimedia/mplayer-share/options.mk index afe8a6a7203..c71e371eeca 100644 --- a/multimedia/mplayer-share/options.mk +++ b/multimedia/mplayer-share/options.mk @@ -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 @@ PKG_OPTIONS_VAR= PKG_OPTIONS.${PKGNAME:C/-[0-9].*//} # 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 @@ PKG_SUPPORTED_OPTIONS+= xvid .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+= --enable-jpeg 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+= --enable-mp3lame 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 --git a/multimedia/mplayer/Makefile b/multimedia/mplayer/Makefile index d86c01edf8b..0744060ab9d 100644 --- a/multimedia/mplayer/Makefile +++ b/multimedia/mplayer/Makefile @@ -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 |