| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.94 2020/02/19 07:40:33 jperkin Exp $ | | 1 | # $NetBSD: Makefile,v 1.95 2020/02/20 09:10:30 jperkin Exp $ |
2 | | | 2 | |
3 | DISTNAME= mpv-0.32.0 | | 3 | DISTNAME= mpv-0.32.0 |
4 | PKGREVISION= 1 | | 4 | PKGREVISION= 1 |
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) |
| @@ -36,26 +36,43 @@ CONF_FILES+= share/examples/mpv/encodin | | | @@ -36,26 +36,43 @@ CONF_FILES+= share/examples/mpv/encodin |
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" |
| | | 50 | |
| | | 51 | # |
| | | 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 |
| | | 54 | # for Swift handling. |
| | | 55 | # |
| | | 56 | # On newer macOS releases there are a couple of swift compat static libraries |
| | | 57 | # that need to be added to the search path. |
| | | 58 | # |
| | | 59 | .if ${OPSYS} == "Darwin" |
| | | 60 | XCODE_DIR!= xcode-select -p 2>/dev/null || ${TRUE} |
| | | 61 | . if exists(${XCODE_DIR}/usr/lib/swift/macosx) |
| | | 62 | BUILDLINK_PASSTHRU_DIRS+= ${XCODE_DIR}/usr/lib/swift/macosx |
| | | 63 | . endif |
| | | 64 | .endif |
| | | 65 | |
49 | post-install: | | 66 | post-install: |
50 | cd ${DESTDIR}${PREFIX} && ${MV} etc/mpv/encoding-profiles.conf share/examples/mpv | | 67 | cd ${DESTDIR}${PREFIX} && ${MV} etc/mpv/encoding-profiles.conf share/examples/mpv |
51 | | | 68 | |
52 | .include "options.mk" | | 69 | .include "options.mk" |
53 | | | 70 | |
54 | .include "../../mk/oss.buildlink3.mk" | | 71 | .include "../../mk/oss.buildlink3.mk" |
55 | .include "../../converters/libiconv/buildlink3.mk" | | 72 | .include "../../converters/libiconv/buildlink3.mk" |
56 | .include "../../devel/waf/waf.mk" | | 73 | .include "../../devel/waf/waf.mk" |
57 | .include "../../devel/zlib/buildlink3.mk" | | 74 | .include "../../devel/zlib/buildlink3.mk" |
58 | .include "../../graphics/lcms2/buildlink3.mk" | | 75 | .include "../../graphics/lcms2/buildlink3.mk" |
59 | .include "../../lang/python/application.mk" | | 76 | .include "../../lang/python/application.mk" |
60 | .include "../../multimedia/libdvdnav/buildlink3.mk" | | 77 | .include "../../multimedia/libdvdnav/buildlink3.mk" |
61 | .include "../../multimedia/ffmpeg4/buildlink3.mk" | | 78 | .include "../../multimedia/ffmpeg4/buildlink3.mk" |