pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/mpv mpv: Add workaround for Swift static li...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/966f599a48ff
branches:  trunk
changeset: 411778:966f599a48ff
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Feb 20 09:10:30 2020 +0000

description:
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:

 multimedia/mpv/Makefile |  19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r b6565f1d3a44 -r 966f599a48ff multimedia/mpv/Makefile
--- a/multimedia/mpv/Makefile   Thu Feb 20 06:56:04 2020 +0000
+++ b/multimedia/mpv/Makefile   Thu Feb 20 09:10:30 2020 +0000
@@ -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_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
 



Home | Main Index | Thread Index | Old Index