pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/multimedia/libvpx libvpx: Fix macOS/aarch64 build.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/09bde3cb71b1
branches:  trunk
changeset: 372395:09bde3cb71b1
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Mon Jan 24 11:07:56 2022 +0000

description:
libvpx: Fix macOS/aarch64 build.

diffstat:

 multimedia/libvpx/Makefile |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 258f43625a33 -r 09bde3cb71b1 multimedia/libvpx/Makefile
--- a/multimedia/libvpx/Makefile        Mon Jan 24 11:05:59 2022 +0000
+++ b/multimedia/libvpx/Makefile        Mon Jan 24 11:07:56 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.92 2021/12/07 12:24:22 jperkin Exp $
+# $NetBSD: Makefile,v 1.93 2022/01/24 11:07:56 jperkin Exp $
 
 DISTNAME=      libvpx-1.11.0
 CATEGORIES=    multimedia
@@ -26,7 +26,8 @@
 
 .include "../../mk/bsd.prefs.mk"
 
-.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || \
+    (${OPSYS} == "Darwin" && ${MACHINE_ARCH} == "aarch64")
 TOOL_DEPENDS+=         yasm-[0-9]*:../../devel/yasm
 .endif
 
@@ -56,6 +57,7 @@
 CONFIGURE_ARGS+=       --target=x86_64-darwin9-gcc
 .    endif
 .  elif ${MACHINE_ARCH} == "aarch64"
+CONFIGURE_ARGS+=       --target=arm64-darwin20-gcc
 CONFIGURE_ARGS+=       --disable-runtime-cpu-detect
 .  endif
 .elif ${OPSYS} == "SunOS" && !empty(PKGSRC_COMPILER:Mgcc*)



Home | Main Index | Thread Index | Old Index