pkgsrc-Changes archive

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

CVS commit: pkgsrc/multimedia/libvpx



Module Name:    pkgsrc
Committed By:   nia
Date:           Thu Nov  9 16:48:04 UTC 2023

Modified Files:
        pkgsrc/multimedia/libvpx: Makefile

Log Message:
libvpx: Fix building on funny old architectures with funny old compilers


To generate a diff of this commit:
cvs rdiff -u -r1.101 -r1.102 pkgsrc/multimedia/libvpx/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/libvpx/Makefile
diff -u pkgsrc/multimedia/libvpx/Makefile:1.101 pkgsrc/multimedia/libvpx/Makefile:1.102
--- pkgsrc/multimedia/libvpx/Makefile:1.101     Sun Oct  1 08:20:19 2023
+++ pkgsrc/multimedia/libvpx/Makefile   Thu Nov  9 16:48:03 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.101 2023/10/01 08:20:19 wiz Exp $
+# $NetBSD: Makefile,v 1.102 2023/11/09 16:48:03 nia Exp $
 
 DISTNAME=      libvpx-1.13.1
 CATEGORIES=    multimedia
@@ -93,6 +93,21 @@ CONFIGURE_ARGS+=     --target=generic-gnu
 CONFIGURE_ARGS+=       --disable-runtime-cpu-detect
 .endif
 
+.include "../../mk/compiler.mk"
+
+# Requires special atomic support.
+# This is a mirror of the checks the software does in vpx_util/vpx_atomics.h
+#
+# There is inline assembler for i386, x86_64, arm, and mips.
+.if ${MACHINE_ARCH} != "i386" && ${MACHINE_ARCH} != "x86_64" && \
+      !${MACHINE_ARCH:M*mips*} && !${MACHINE_ARCH:M*arm*}
+# All other platforms need the GCC atomic builtins.
+.  if !empty(GCC_VERSION:Mgcc-[2-3].*) || !empty(GCC_VERSION:Mgcc-4.[0-6].*) || \
+      (empty(PKGSRC_COMPILER:M*gcc*) && empty(PKGSRC_COMPILER:M*clang*))
+CONFIGURE_ARGS+=       --disable-multithread
+.  endif
+.endif
+
 BUILDLINK_TRANSFORM.MirBSD+=   rm:-lrt
 # Compiler is too old for these newfangled features
 CONFIGURE_ENV.MirBSD+=         sse2=no sse3=no ssse3=no sse4_1=no



Home | Main Index | Thread Index | Old Index