blob: 61c9680aec2751f011711ac9571aabbae6b9bb6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
# $NetBSD: Makefile,v 1.142 2022/09/11 12:52:03 wiz Exp $
DISTNAME= mpv-0.34.1
PKGREVISION= 10
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_GITHUB:=mpv-player/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= leot@NetBSD.org
HOMEPAGE= https://mpv.io/
COMMENT= Video player based on MPlayer and mplayer2
LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2.1
# needs sem_timedwait(3)
NOT_FOR_PLATFORM= NetBSD-[1-6].*-*
TOOL_DEPENDS+= ${PYPKGPREFIX}-docutils>=0.12:../../textproc/py-docutils
# ${WRKSRC}/bootstrap.py mentions needed version
TOOL_DEPENDS+= waf>=2.0.9:../../devel/waf
WAF_REPLACE_EXECUTABLE= yes
WAF_CONFIGURE_ARGS+= --bindir=${PREFIX}/bin
WAF_CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
WAF_CONFIGURE_ARGS+= --enable-dvdnav
WAF_CONFIGURE_ARGS+= --enable-libmpv-shared
PYTHON_FOR_BUILD_ONLY= yes
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
CONF_FILES+= share/examples/mpv/mpv.conf \
${PKG_SYSCONFDIR}/mpv/mpv.conf
PKGCONFIG_OVERRIDE+= libmpv/mpv.pc.in
SUBST_CLASSES+= python
SUBST_SED.python+= -e "s,python,python${PYVERSSUFFIX},"
SUBST_SED.python+= -e "s,rst2man,rst2man-${PYVERSSUFFIX},"
SUBST_FILES.python+= wscript wscript_build.py
SUBST_STAGE.python= pre-configure
SUBST_MESSAGE.python= Fix Python command names.
.include "../../mk/bsd.prefs.mk"
#
# At some point this should be consolidated into mk/platform/Darwin.mk, it is
# here temporarily while any issues are ironed out and it can be made generic
# for Swift handling.
#
# On newer macOS releases there are a couple of swift compat static libraries
# that need to be added to the search path.
#
.if ${OPSYS} == "Darwin"
XCODE_DIR!= xcode-select -p 2>/dev/null || ${TRUE}
. if exists(${XCODE_DIR}/usr/lib/swift/macosx)
BUILDLINK_PASSTHRU_DIRS+= ${XCODE_DIR}/usr/lib/swift/macosx
. elif exists(${XCODE_DIR}/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx)
BUILDLINK_PASSTHRU_DIRS+= ${XCODE_DIR}/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx
. endif
.endif
post-install:
${MV} ${DESTDIR}${PREFIX}/share/doc/mpv/mpv.conf \
${DESTDIR}${PREFIX}/share/examples/mpv/mpv.conf
.include "options.mk"
.include "../../archivers/libarchive/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/waf/waf.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/lcms2/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../multimedia/libass/buildlink3.mk"
.include "../../multimedia/libdvdnav/buildlink3.mk"
.include "../../multimedia/ffmpeg5/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../mk/atomic64.mk"
.include "../../mk/bsd.pkg.mk"
|