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