pkgsrc-Changes archive

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

CVS commit: pkgsrc/multimedia/mpv



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Thu Feb 20 09:10:30 UTC 2020

Modified Files:
        pkgsrc/multimedia/mpv: Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.94 -r1.95 pkgsrc/multimedia/mpv/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/multimedia/mpv/Makefile
diff -u pkgsrc/multimedia/mpv/Makefile:1.94 pkgsrc/multimedia/mpv/Makefile:1.95
--- pkgsrc/multimedia/mpv/Makefile:1.94 Wed Feb 19 07:40:33 2020
+++ pkgsrc/multimedia/mpv/Makefile      Thu Feb 20 09:10:30 2020
@@ -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
 



Home | Main Index | Thread Index | Old Index