138 lines
3.4 KiB
Makefile
138 lines
3.4 KiB
Makefile
COMMENT = movie player based on MPlayer/mplayer2
|
|
|
|
GH_ACCOUNT = mpv-player
|
|
GH_PROJECT = mpv
|
|
GH_TAGNAME = v0.35.1
|
|
|
|
# gz distfile was generated but no content change after gunzip
|
|
DISTNAME = mpv-v0.35.1-1
|
|
PKGNAME = mpv-0.35.1
|
|
REVISION = 0
|
|
|
|
SHARED_LIBS += mpv 1.0 # 2.0
|
|
|
|
CATEGORIES = multimedia x11
|
|
|
|
HOMEPAGE = https://mpv.io/
|
|
|
|
# GPLv2+
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB += EGL SDL2 X11 Xext Xinerama Xpresent Xrandr Xss Xv archive
|
|
WANTLIB += ass avcodec avdevice avfilter avformat avutil bluray
|
|
WANTLIB += c cdio cdio_cdda cdio_paranoia dvdnav iconv jpeg lcms2
|
|
WANTLIB += ${MODLUA_WANTLIB} m placebo pthread sndio swresample
|
|
WANTLIB += swscale z zimg
|
|
|
|
MODULES = devel/meson \
|
|
lang/lua \
|
|
lang/python
|
|
|
|
COMPILER = base-clang ports-gcc
|
|
COMPILER_LANGS = c
|
|
|
|
DEBUG_PACKAGES = ${BUILD_PACKAGES}
|
|
|
|
BUILD_DEPENDS = audio/ladspa \
|
|
textproc/py-docutils${MODPY_FLAVOR}
|
|
|
|
LIB_DEPENDS = archivers/libarchive \
|
|
audio/libcdio \
|
|
audio/libcdio-paranoia \
|
|
converters/libiconv \
|
|
devel/sdl2 \
|
|
graphics/ffmpeg \
|
|
graphics/jpeg \
|
|
graphics/lcms2 \
|
|
graphics/libplacebo \
|
|
graphics/zimg \
|
|
multimedia/libass \
|
|
multimedia/libbluray \
|
|
multimedia/libdvdnav
|
|
|
|
MODPY_RUNDEP = No
|
|
RUN_DEPENDS = devel/desktop-file-utils \
|
|
www/yt-dlp \
|
|
x11/gtk+3,-guic
|
|
|
|
CONFIGURE_ARGS = -Dlua=lua${MODLUA_DEP_VERSION} \
|
|
-Dcdda=enabled \
|
|
-Ddvdnav=enabled \
|
|
-Dlibmpv=true \
|
|
-Dsdl2=enabled \
|
|
-Dsndio=enabled \
|
|
-Dalsa=disabled \
|
|
-Dandroid-media-ndk=disabled \
|
|
-Daudiounit=disabled \
|
|
-Dcaca=disabled \
|
|
-Dcocoa=disabled \
|
|
-Dcoreaudio=disabled \
|
|
-Dcuda-hwaccel=disabled \
|
|
-Dcuda-interop=disabled \
|
|
-Dd3d9-hwaccel=disabled \
|
|
-Dd3d11=disabled \
|
|
-Dd3d-hwaccel=disabled \
|
|
-Ddirect3d=disabled \
|
|
-Degl-android=disabled \
|
|
-Degl-angle=disabled \
|
|
-Degl-angle-lib=disabled \
|
|
-Degl-angle-win32=disabled \
|
|
-Degl-drm=disabled \
|
|
-Degl-wayland=disabled \
|
|
-Dgl-cocoa=disabled \
|
|
-Dgl-dxinterop=disabled \
|
|
-Dgl-dxinterop-d3d9=disabled \
|
|
-Dgl-win32=disabled \
|
|
-Dios-gl=disabled \
|
|
-Djack=disabled \
|
|
-Djavascript=disabled \
|
|
-Dmacos-10-11-features=disabled \
|
|
-Dmacos-10-12-2-features=disabled \
|
|
-Dmacos-10-14-features=disabled \
|
|
-Dmacos-cocoa-cb=disabled \
|
|
-Dmacos-media-player=disabled \
|
|
-Dmacos-touchbar=disabled \
|
|
-Dopenal=disabled \
|
|
-Dopensles=disabled \
|
|
-Doss-audio=disabled \
|
|
-Dpipewire=disabled \
|
|
-Dpulse=disabled \
|
|
-Drpi-mmal=disabled \
|
|
-Drubberband=disabled \
|
|
-Dshaderc=disabled \
|
|
-Dsixel=disabled \
|
|
-Dswift-build=disabled \
|
|
-Dsdl2-audio=disabled \
|
|
-Dspirv-cross=disabled \
|
|
-Duchardet=disabled \
|
|
-Dvaapi=disabled \
|
|
-Dvaapi-drm=disabled \
|
|
-Dvaapi-x-egl=disabled \
|
|
-Dvaapi-x11=disabled \
|
|
-Dvaapi-wayland=disabled \
|
|
-Dvapoursynth=disabled \
|
|
-Dvdpau=disabled \
|
|
-Dvdpau-gl-x11=disabled \
|
|
-Dvideotoolbox-gl=disabled \
|
|
-Dvulkan=disabled \
|
|
-Dwayland=disabled \
|
|
-Dwin32-internal-pthreads=disabled \
|
|
-Dwasapi=disabled
|
|
|
|
CFLAGS += -I${LOCALBASE}/include
|
|
LDFLAGS += -L${LOCALBASE}/lib
|
|
|
|
MODMESON_CONFIGURE_ENV += LDFLAGS="${LDFLAGS}"
|
|
|
|
NO_TEST = Yes
|
|
|
|
post-install:
|
|
mv -f ${PREFIX}/share/doc/mpv ${PREFIX}/share/examples
|
|
${INSTALL_DATA} ${WRKDIST}/TOOLS/mpv_identify.sh \
|
|
${WRKDIST}/TOOLS/umpv ${PREFIX}/share/examples/mpv
|
|
${MODPY_BIN_ADJ} ${PREFIX}/share/examples/mpv/umpv
|
|
mv -f ${WRKINST}${SYSCONFDIR}/mpv/* ${PREFIX}/share/examples/mpv
|
|
sed -Ei 's,(/dev/dvd|/dev/cdrom),/dev/rcd0c,g' ${PREFIX}/man/man1/mpv.1
|
|
|
|
.include <bsd.port.mk>
|