diff options
author | nia <nia@pkgsrc.org> | 2020-12-24 09:28:14 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2020-12-24 09:28:14 +0000 |
commit | d7d9a0d8b32ccd46e3acc04254a14981b92f9c0a (patch) | |
tree | 5c2a24b8314cc000f64a027a64bb8022997c8391 | |
parent | cb3bf826008d5f114b245faa55ce718e77792f83 (diff) | |
download | pkgsrc-d7d9a0d8b32ccd46e3acc04254a14981b92f9c0a.tar.gz |
mpv: Requires 64-bit atomic operations
Noticed by John D. Baker on pkgsrc-users
-rw-r--r-- | multimedia/mpv/Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/multimedia/mpv/Makefile b/multimedia/mpv/Makefile index a1c25bfd080..891bc2b6384 100644 --- a/multimedia/mpv/Makefile +++ b/multimedia/mpv/Makefile @@ -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 @@ BUILDLINK_PASSTHRU_DIRS+= ${XCODE_DIR}/Toolchains/XcodeDefault.xctoolchain/usr/l . 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 |