Import mpv-0.5.1nb20140916 as wip/mpv-git.

mpv is a movie player based on MPlayer and mplayer2. It supports
a wide variety of video file formats, audio and video codecs, and
subtitle types.

This package contains the latest development version from git.
This commit is contained in:
Thomas Klausner 2014-09-16 09:20:30 +00:00
parent eba21d953f
commit 16ffbf6b2c
4 changed files with 114 additions and 0 deletions

5
mpv-git/DESCR Normal file
View File

@ -0,0 +1,5 @@
mpv is a movie player based on MPlayer and mplayer2. It supports
a wide variety of video file formats, audio and video codecs, and
subtitle types.
This package contains the latest development version from git.

55
mpv-git/Makefile Normal file
View File

@ -0,0 +1,55 @@
# $NetBSD: Makefile,v 1.1 2014/09/16 09:20:30 thomasklausner Exp $
DISTNAME= mpv-0.5.1
CATEGORIES= multimedia
MASTER_SITES= -https://github.com/mpv-player/mpv/archive/v${PKGVERSION_NOREV}${EXTRACT_SUFX}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://mpv.io/
COMMENT= Video player based on MPlayer and mplayer2 (git version)
LICENSE= gnu-gpl-v2
BUILD_DEPENDS+= ${PYPKGPREFIX}-docutils-[0-9]*:../../textproc/py-docutils
# ${WRKSRC}/bootstrap.py mentions needed version
BUILD_DEPENDS+= waf>=1.7.16:../../devel/waf
GIT_REPOSITORIES= mpv
GIT_REPO.mpv= git://github.com/mpv-player/mpv.git
WRKSRC= ${WRKDIR}/mpv
PYTHON_FOR_BUILD_ONLY= yes
PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # py-docutils
USE_TOOLS+= perl pkg-config
MAKE_DIRS= ${PKG_SYSCONFDIR}/mpv
INSTALLATION_DIRS= share/examples/mpv
CONF_FILES+= share/examples/mpv/encoding-profiles.conf ${PKG_SYSCONFDIR}/mpv/encoding-profiles.conf
SUBST_CLASSES+= audio
SUBST_SED.audio+= -e "s,/dev/dsp,${DEVOSSAUDIO},"
SUBST_FILES.audio+= stream/audio_in.c waftools/checks/custom.py wscript
SUBST_STAGE.audio= pre-configure
SUBST_MESSAGE.audio= Fixing path to audio device.
post-install:
cd ${DESTDIR}${PREFIX} && ${MV} etc/mpv/encoding-profiles.conf share/examples/mpv
.include "options.mk"
.include "../../devel/waf/waf.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../multimedia/libass/buildlink3.mk"
.include "../../multimedia/libdvdnav/buildlink3.mk"
.include "../../multimedia/libdvdread/buildlink3.mk"
.include "../../x11/libXinerama/buildlink3.mk"
.include "../../x11/libXxf86vm/buildlink3.mk"
.include "../../x11/libXv/buildlink3.mk"
.include "../../multimedia/ffmpeg2/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
.include "../../wip/mk/git-package.mk"
.include "../../mk/bsd.pkg.mk"

8
mpv-git/PLIST Normal file
View File

@ -0,0 +1,8 @@
@comment $NetBSD: PLIST,v 1.1 2014/09/16 09:20:30 thomasklausner Exp $
bin/mpv
man/man1/mpv.1
share/applications/mpv.desktop
share/examples/mpv/encoding-profiles.conf
share/icons/hicolor/16x16/apps/mpv.png
share/icons/hicolor/32x32/apps/mpv.png
share/icons/hicolor/64x64/apps/mpv.png

46
mpv-git/options.mk Normal file
View File

@ -0,0 +1,46 @@
# $NetBSD: options.mk,v 1.1 2014/09/16 09:20:30 thomasklausner Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.mpv
PKG_SUPPORTED_OPTIONS= caca lua sdl v4l2
PKG_SUGGESTED_OPTIONS= lua
.include "../../mk/bsd.options.mk"
###
### caca support (video output)
###
.if !empty(PKG_OPTIONS:Mcaca)
WAF_CONFIGURE_ARGS+= --enable-caca
.include "../../graphics/libcaca/buildlink3.mk"
.else
WAF_CONFIGURE_ARGS+= --disable-caca
.endif
###
### lua support
###
.if !empty(PKG_OPTIONS:Mlua)
WAF_CONFIGURE_ARGS+= --enable-lua
.include "../../lang/lua/buildlink3.mk"
.else
WAF_CONFIGURE_ARGS+= --disable-lua
.endif
###
### SDL support (audio output)
###
.if !empty(PKG_OPTIONS:Msdl)
WAF_CONFIGURE_ARGS+= --enable-sdl1
.include "../../devel/SDL/buildlink3.mk"
.else
WAF_CONFIGURE_ARGS+= --disable-sdl1
.endif
###
### V4L2 support
###
.if !empty(PKG_OPTIONS:Mv4l2)
WAF_CONFIGURE_ARGS+= --enable-libv4l2
.else
WAF_CONFIGURE_ARGS+= --disable-libv4l2
.endif