libvorbis: fix for Darwin with ARM

This commit is contained in:
adam 2023-08-04 07:00:57 +00:00
parent ad5e25125d
commit 3034fff681
3 changed files with 23 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.63 2020/07/06 15:32:47 adam Exp $
# $NetBSD: Makefile,v 1.64 2023/08/04 07:00:57 adam Exp $
DISTNAME= libvorbis-1.3.7
CATEGORIES= devel audio
CATEGORIES= audio devel
MASTER_SITES= http://downloads.xiph.org/releases/vorbis/
EXTRACT_SUFX= .tar.xz

View File

@ -1,5 +1,6 @@
$NetBSD: distinfo,v 1.30 2021/10/26 09:59:10 nia Exp $
$NetBSD: distinfo,v 1.31 2023/08/04 07:00:57 adam Exp $
BLAKE2s (libvorbis-1.3.7.tar.xz) = dd92a6ac2fb16b8f03120cc9c96d102a32a93cca50e867c030ee41411f0149f7
SHA512 (libvorbis-1.3.7.tar.xz) = bbf5f11f623d959b3ba98d6b52806521b0b918b59b867f0658c153ea1013293364eead4987e9e71f8798021379310860a2e548fcf89d10caf23d45e41aba45cd
Size (libvorbis-1.3.7.tar.xz) = 1203792 bytes
SHA1 (patch-configure) = 2b22bad31bbd20b521eff833bba96df3e881cf10

View File

@ -0,0 +1,19 @@
$NetBSD: patch-configure,v 1.1 2023/08/04 07:00:58 adam Exp $
-force_cpusubtype_ALL is not supported on Darwin with ARM CPU.
--- configure.orig 2023-08-04 05:28:06.000000000 +0000
+++ configure
@@ -12840,9 +12840,9 @@ rm -f core conftest.err conftest.$ac_obj
CFLAGS="-O3 -Wall -Wextra -ffast-math -D__NO_MATH_INLINES -fsigned-char $sparc_cpu"
PROFILE="-pg -g -O3 -D__NO_MATH_INLINES -fsigned-char $sparc_cpu" ;;
*-*-darwin*)
- DEBUG="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O0 -fsigned-char"
- CFLAGS="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O3 -ffast-math -fsigned-char"
- PROFILE="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -pg -O3 -ffast-math -fsigned-char";;
+ DEBUG="-DDARWIN -fno-common -Wall -g -O0 -fsigned-char"
+ CFLAGS="-DDARWIN -fno-common -Wall -g -O3 -ffast-math -fsigned-char"
+ PROFILE="-DDARWIN -fno-common -Wall -g -pg -O3 -ffast-math -fsigned-char";;
*-*-os2*)
# Use -W instead of -Wextra because gcc on OS/2 is an old version.
DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"