mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 07:24:23 +02:00
305b6bfa24
Brad's diff; sync to unbreak. from Brad.
137 lines
3.4 KiB
Makefile
137 lines
3.4 KiB
Makefile
COMMENT = movie player based on MPlayer/mplayer2
|
|
|
|
USE_NOBTCFI = Yes
|
|
|
|
GH_ACCOUNT = mpv-player
|
|
GH_PROJECT = mpv
|
|
GH_TAGNAME = v0.41.0
|
|
REVISION = 0
|
|
|
|
SHARED_LIBS += mpv 2.1
|
|
|
|
CATEGORIES = multimedia x11
|
|
|
|
HOMEPAGE = https://mpv.io/
|
|
|
|
# GPLv2+
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB += ${MODLUA_WANTLIB} EGL X11 X11-xcb Xext Xfixes Xpresent
|
|
WANTLIB += Xrandr Xss Xv archive ass avcodec avdevice avfilter avformat
|
|
WANTLIB += avutil bluray c cdio cdio_cdda cdio_paranoia display-info
|
|
WANTLIB += drm dvdnav iconv jpeg lcms2 m placebo pthread sndio
|
|
WANTLIB += swresample swscale va va-drm va-x11 vulkan xcb xcb-shm z
|
|
WANTLIB += 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
|
|
|
|
LIB_DEPENDS = archivers/libarchive \
|
|
audio/libcdio \
|
|
audio/libcdio-paranoia \
|
|
converters/libiconv \
|
|
graphics/ffmpeg \
|
|
graphics/jpeg \
|
|
graphics/lcms2 \
|
|
graphics/libplacebo \
|
|
graphics/vulkan-loader \
|
|
graphics/zimg \
|
|
multimedia/libass \
|
|
multimedia/libbluray \
|
|
multimedia/libdvdnav \
|
|
sysutils/libdisplay-info
|
|
|
|
MODPY_RUNDEP = No
|
|
RUN_DEPENDS = devel/desktop-file-utils \
|
|
graphics/vulkan-loader \
|
|
www/yt-dlp \
|
|
x11/gtk+4,-guic
|
|
|
|
CONFIGURE_ARGS = -Daaudio=disabled \
|
|
-Dalsa=disabled \
|
|
-Dandroid-media-ndk=disabled \
|
|
-Daudiotrack=disabled \
|
|
-Daudiounit=disabled \
|
|
-Davfoundation=disabled \
|
|
-Dcaca=disabled \
|
|
-Dcocoa=disabled \
|
|
-Dcoreaudio=disabled \
|
|
-Dcuda-hwaccel=disabled \
|
|
-Dcuda-interop=disabled \
|
|
-Dd3d-hwaccel=disabled \
|
|
-Dd3d11=disabled \
|
|
-Dd3d9-hwaccel=disabled \
|
|
-Ddirect3d=disabled \
|
|
-Ddmabuf-wayland=disabled \
|
|
-Ddvbin=disabled \
|
|
-Degl-android=disabled \
|
|
-Degl-angle-lib=disabled \
|
|
-Degl-angle-win32=disabled \
|
|
-Degl-angle=disabled \
|
|
-Degl-drm=disabled \
|
|
-Degl-wayland=disabled \
|
|
-Dgbm=disabled \
|
|
-Dgl-cocoa=disabled \
|
|
-Dgl-dxinterop-d3d9=disabled \
|
|
-Dgl-dxinterop=disabled \
|
|
-Dgl-win32=disabled \
|
|
-Dios-gl=disabled \
|
|
-Djack=disabled \
|
|
-Djavascript=disabled \
|
|
-Dlua=lua${MODLUA_DEP_VERSION} \
|
|
-Dmacos-10-15-4-features=disabled \
|
|
-Dmacos-11-features=disabled \
|
|
-Dmacos-11-3-features=disabled \
|
|
-Dmacos-12-features=disabled \
|
|
-Dmacos-cocoa-cb=disabled \
|
|
-Dmacos-media-player=disabled \
|
|
-Dmacos-touchbar=disabled \
|
|
-Dopenal=disabled \
|
|
-Dopensles=disabled \
|
|
-Doss-audio=disabled \
|
|
-Dpipewire=disabled \
|
|
-Dpulse=disabled \
|
|
-Drubberband=disabled \
|
|
-Dshaderc=disabled \
|
|
-Dsixel=disabled \
|
|
-Dspirv-cross=disabled \
|
|
-Dswift-build=disabled \
|
|
-Dswift-flags=disabled \
|
|
-Duchardet=disabled \
|
|
-Dvaapi-wayland=disabled \
|
|
-Dvaapi-win32=disabled \
|
|
-Dvapoursynth=disabled \
|
|
-Dvdpau-gl-x11=disabled \
|
|
-Dvdpau=disabled \
|
|
-Dvideotoolbox-gl=disabled \
|
|
-Dvideotoolbox-pl=disabled \
|
|
-Dwasapi=disabled \
|
|
-Dwayland=disabled \
|
|
-Dwin32-threads=disabled
|
|
|
|
CFLAGS += -I${LOCALBASE}/include
|
|
LDFLAGS += -L${LOCALBASE}/lib
|
|
|
|
MODMESON_CONFIGURE_ENV += CFLAGS="${CFLAGS}" \
|
|
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
|
|
sed -Ei 's,(/dev/dvd|/dev/cdrom),/dev/rcd0c,g' ${PREFIX}/man/man1/mpv.1
|
|
|
|
.include <bsd.port.mk>
|