Thu Feb 20 09:10:30 2020 UTC ()
mpv: Add workaround for Swift static libraries on 10.15.

This will eventually need to be moved into the infrastructure once Swift
becomes more prevalent and we're able to handle any alternative layouts
that might be required.


(jperkin)
diff -r1.94 -r1.95 pkgsrc/multimedia/mpv/Makefile

cvs diff -r1.94 -r1.95 pkgsrc/multimedia/mpv/Makefile (expand / switch to unified diff)

--- pkgsrc/multimedia/mpv/Makefile 2020/02/19 07:40:33 1.94
+++ pkgsrc/multimedia/mpv/Makefile 2020/02/20 09:10:30 1.95
@@ -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
3DISTNAME= mpv-0.32.0 3DISTNAME= mpv-0.32.0
4PKGREVISION= 1 4PKGREVISION= 1
5CATEGORIES= multimedia 5CATEGORIES= multimedia
6MASTER_SITES= ${MASTER_SITE_GITHUB:=mpv-player/} 6MASTER_SITES= ${MASTER_SITE_GITHUB:=mpv-player/}
7GITHUB_TAG= v${PKGVERSION_NOREV} 7GITHUB_TAG= v${PKGVERSION_NOREV}
8 8
9MAINTAINER= leot@NetBSD.org 9MAINTAINER= leot@NetBSD.org
10HOMEPAGE= https://mpv.io/ 10HOMEPAGE= https://mpv.io/
11COMMENT= Video player based on MPlayer and mplayer2 11COMMENT= Video player based on MPlayer and mplayer2
12LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2.1 12LICENSE= 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
36SUBST_CLASSES+= audio 36SUBST_CLASSES+= audio
37SUBST_SED.audio+= -e "s,/dev/dsp,${DEVOSSAUDIO}," 37SUBST_SED.audio+= -e "s,/dev/dsp,${DEVOSSAUDIO},"
38SUBST_FILES.audio+= audio/out/ao_oss.c stream/ai_oss.c 38SUBST_FILES.audio+= audio/out/ao_oss.c stream/ai_oss.c
39SUBST_STAGE.audio= pre-configure 39SUBST_STAGE.audio= pre-configure
40SUBST_MESSAGE.audio= Fixing path to audio device. 40SUBST_MESSAGE.audio= Fixing path to audio device.
41 41
42SUBST_CLASSES+= python 42SUBST_CLASSES+= python
43SUBST_SED.python+= -e "s,python,python${PYVERSSUFFIX}," 43SUBST_SED.python+= -e "s,python,python${PYVERSSUFFIX},"
44SUBST_SED.python+= -e "s,rst2man,rst2man-${PYVERSSUFFIX}," 44SUBST_SED.python+= -e "s,rst2man,rst2man-${PYVERSSUFFIX},"
45SUBST_FILES.python+= wscript 45SUBST_FILES.python+= wscript
46SUBST_STAGE.python= pre-configure 46SUBST_STAGE.python= pre-configure
47SUBST_MESSAGE.python= Fix Python command names. 47SUBST_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"
 60XCODE_DIR!= xcode-select -p 2>/dev/null || ${TRUE}
 61. if exists(${XCODE_DIR}/usr/lib/swift/macosx)
 62BUILDLINK_PASSTHRU_DIRS+= ${XCODE_DIR}/usr/lib/swift/macosx
 63. endif
 64.endif
 65
49post-install: 66post-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"