| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
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) |
| @@ -42,32 +42,32 @@ SUBST_MESSAGE.audio= Fixing path to audi | | | @@ -42,32 +42,32 @@ SUBST_MESSAGE.audio= Fixing path to audi |
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: |