pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/multimedia/mpv mpv: Requires 64-bit atomic operations



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ca7756f03f26
branches:  trunk
changeset: 443813:ca7756f03f26
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu Dec 24 09:28:14 2020 +0000

description:
mpv: Requires 64-bit atomic operations

Noticed by John D. Baker on pkgsrc-users

diffstat:

 multimedia/mpv/Makefile |  13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r 96bca07cefe4 -r ca7756f03f26 multimedia/mpv/Makefile
--- a/multimedia/mpv/Makefile   Thu Dec 24 04:29:58 2020 +0000
+++ b/multimedia/mpv/Makefile   Thu Dec 24 09:28:14 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.118 2020/12/19 11:27:51 leot Exp $
+# $NetBSD: Makefile,v 1.119 2020/12/24 09:28:14 nia Exp $
 
 DISTNAME=      mpv-0.33.0
 CATEGORIES=    multimedia
@@ -59,6 +59,17 @@
 .  endif
 .endif
 
+# 64-bit atomic operations
+# https://mail-index.netbsd.org/pkgsrc-users/2020/12/23/msg032927.html
+.if ${MACHINE_ARCH} == "i386"
+CFLAGS+=       -march=i586
+CXXFLAGS+=     -march=i586
+.endif
+
+.if ${MACHINE_ARCH} == "powerpc"
+.include "../../devel/libatomic/buildlink3.mk"
+.endif
+
 post-install:
        cd ${DESTDIR}${PREFIX} && ${MV} etc/mpv/encoding-profiles.conf share/examples/mpv
 



Home | Main Index | Thread Index | Old Index