diff options
author | jperkin <jperkin@pkgsrc.org> | 2020-02-20 09:10:30 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2020-02-20 09:10:30 +0000 |
commit | e2f90b45131abb5f8e0a5b8a89860228849bc6ef (patch) | |
tree | 0ebda11f1cac83e76b8b45b10600832062a87d67 /multimedia | |
parent | c6ff3134b4c985d7372c01b3c900945611717856 (diff) | |
download | pkgsrc-e2f90b45131abb5f8e0a5b8a89860228849bc6ef.tar.gz |
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.
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/mpv/Makefile | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/multimedia/mpv/Makefile b/multimedia/mpv/Makefile index 648d997f14e..6ca603ad815 100644 --- a/multimedia/mpv/Makefile +++ b/multimedia/mpv/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.94 2020/02/19 07:40:33 jperkin Exp $ +# $NetBSD: Makefile,v 1.95 2020/02/20 09:10:30 jperkin Exp $ DISTNAME= mpv-0.32.0 PKGREVISION= 1 @@ -46,6 +46,23 @@ SUBST_FILES.python+= wscript 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 +. endif +.endif + post-install: cd ${DESTDIR}${PREFIX} && ${MV} etc/mpv/encoding-profiles.conf share/examples/mpv |