pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/multimedia/ffmpeg4 Use -mvsx compiler flag on powerpc ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/00290787fb1f
branches: trunk
changeset: 439246:00290787fb1f
user: he <he%pkgsrc.org@localhost>
date: Mon Sep 14 20:43:36 2020 +0000
description:
Use -mvsx compiler flag on powerpc so that the appropriate section
of the compiler's <altivec.h> header is exposed, so that this builds.
diffstat:
multimedia/ffmpeg4/hacks.mk | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diffs (16 lines):
diff -r 497d0590d64e -r 00290787fb1f multimedia/ffmpeg4/hacks.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/ffmpeg4/hacks.mk Mon Sep 14 20:43:36 2020 +0000
@@ -0,0 +1,12 @@
+# $NetBSD: hacks.mk,v 1.1 2020/09/14 20:43:36 he Exp $
+
+.if !defined(FFMPEG4_HACKS_MK)
+FFMPEG4_HACKS_MK= defined
+
+# [Mon Sep 14 12:41:59 CEST 2020 : he]
+# On NetBSD/powerpc, enable -mvsx, to get vec_xl in scope.
+.if ${MACHINE_ARCH} == "powerpc"
+CFLAGS+= -mvsx
+.endif
+
+.endif # FFMPEG4_HACKS_MK
Home |
Main Index |
Thread Index |
Old Index