pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/multimedia/x264-devel Apply upstream eb95c29 to fix ma...
details: https://anonhg.NetBSD.org/pkgsrc/rev/c5c145b6f448
branches: trunk
changeset: 455914:c5c145b6f448
user: schmonz <schmonz%pkgsrc.org@localhost>
date: Wed Jul 14 13:19:41 2021 +0000
description:
Apply upstream eb95c29 to fix macOS M1 build.
diffstat:
multimedia/x264-devel/distinfo | 6 ++-
multimedia/x264-devel/patches/patch-config.guess | 16 ++++++++
multimedia/x264-devel/patches/patch-config.sub | 24 +++++++++++++
multimedia/x264-devel/patches/patch-configure | 43 ++++++++++++++++++++++-
4 files changed, 85 insertions(+), 4 deletions(-)
diffs (130 lines):
diff -r cbe50113811d -r c5c145b6f448 multimedia/x264-devel/distinfo
--- a/multimedia/x264-devel/distinfo Wed Jul 14 10:18:28 2021 +0000
+++ b/multimedia/x264-devel/distinfo Wed Jul 14 13:19:41 2021 +0000
@@ -1,9 +1,11 @@
-$NetBSD: distinfo,v 1.53 2020/03/04 15:53:24 wiz Exp $
+$NetBSD: distinfo,v 1.54 2021/07/14 13:19:41 schmonz Exp $
SHA1 (x264-snapshot-20191217-2245.tar.bz2) = f2c36c5a2e81eb0456af4e1f06b827d98ccc6c18
RMD160 (x264-snapshot-20191217-2245.tar.bz2) = 8565a3af522b47430cfc1527968e8ae851fc05c4
SHA512 (x264-snapshot-20191217-2245.tar.bz2) = 89061f66fa86dfb868759e5b1dabbb6d1cd9d1240b1bf16afc789f1aa080b3940df5766ddb25e0f0faf0bc8b2603bc35b932848426eeaa4b603199066368f5f0
Size (x264-snapshot-20191217-2245.tar.bz2) = 774081 bytes
SHA1 (patch-common_cpu.c) = ef15bae000163e9c10d2e414e841486dd2920b80
-SHA1 (patch-configure) = 101800ee97242ab4f42da8fc6f83b8a6209a1993
+SHA1 (patch-config.guess) = 0ea57f57cdc5c2b98c9fa1a865274b08a8136b07
+SHA1 (patch-config.sub) = bb6303f5200128fb65a7f9ae90653a2dc6876877
+SHA1 (patch-configure) = a55a26beef54352ae8d4b30bddcd9afe664cb8e4
SHA1 (patch-encoder_analyse.c) = 2057583899e029a4c2173c511293e6a35cf80f78
diff -r cbe50113811d -r c5c145b6f448 multimedia/x264-devel/patches/patch-config.guess
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/x264-devel/patches/patch-config.guess Wed Jul 14 13:19:41 2021 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-config.guess,v 1.1 2021/07/14 13:19:42 schmonz Exp $
+
+Apply upstream eb95c29 to fix macOS M1 build.
+
+--- config.guess.orig 2019-12-17 21:45:04.000000000 +0000
++++ config.guess
+@@ -1238,6 +1238,9 @@ EOF
+ *:Rhapsody:*:*)
+ echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
+ exit ;;
++ arm64:Darwin:*:*)
++ echo arm64-apple-darwin${UNAME_RELEASE}
++ exit ;;
+ *:Darwin:*:*)
+ UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
+ case $UNAME_PROCESSOR in
diff -r cbe50113811d -r c5c145b6f448 multimedia/x264-devel/patches/patch-config.sub
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/x264-devel/patches/patch-config.sub Wed Jul 14 13:19:41 2021 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-config.sub,v 1.1 2021/07/14 13:19:42 schmonz Exp $
+
+Apply upstream eb95c29 to fix macOS M1 build.
+
+--- config.sub.orig 2019-12-17 21:45:04.000000000 +0000
++++ config.sub
+@@ -255,7 +255,7 @@ case $basic_machine in
+ # Some are omitted here because they have special meanings below.
+ 1750a | 580 \
+ | a29k \
+- | aarch64 | aarch64_be \
++ | aarch64 | aarch64_be | arm64 \
+ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
+ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
+ | am33_2.0 \
+@@ -369,7 +369,7 @@ case $basic_machine in
+ # Recognize the basic CPU types with company name.
+ 580-* \
+ | a29k-* \
+- | aarch64-* | aarch64_be-* \
++ | aarch64-* | aarch64_be-* | arm64*-* \
+ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
+ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
+ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
diff -r cbe50113811d -r c5c145b6f448 multimedia/x264-devel/patches/patch-configure
--- a/multimedia/x264-devel/patches/patch-configure Wed Jul 14 10:18:28 2021 +0000
+++ b/multimedia/x264-devel/patches/patch-configure Wed Jul 14 13:19:41 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-configure,v 1.4 2019/03/13 17:40:26 adam Exp $
+$NetBSD: patch-configure,v 1.5 2021/07/14 13:19:42 schmonz Exp $
Add support for DragonFly.
Use 'amd64' as a synonym for 'x86_64'.
@@ -6,8 +6,9 @@
Do not force compiler optimisations.
If we fail an assembly test, continue as if --disable-asm
was passed.
+Apply upstream eb95c29 to fix macOS M1 build.
---- configure.orig 2019-03-12 21:45:03.000000000 +0000
+--- configure.orig 2021-07-14 13:16:59.000000000 +0000
+++ configure
@@ -630,6 +630,10 @@ case $host_os in
SYS="FREEBSD"
@@ -46,6 +47,44 @@
CFLAGS="$CFLAGS -maltivec -mabi=altivec"
define HAVE_ALTIVEC_H
fi
+@@ -788,6 +793,18 @@ case $host_cpu in
+ AS="${AS-${CC}}"
+ AS_EXT=".c"
+ ;;
++ aarch64|arm64*)
++ ARCH="AARCH64"
++ stack_alignment=16
++ if [ "$SYS" = MACOSX ] ; then
++ AS="${AS-${CC}}"
++ ASFLAGS="$ASFLAGS -DPREFIX -DPIC"
++ elif [ "$SYS" = WINDOWS ] && [ "$compiler" = CL ] ; then
++ AS="${AS-${SRCPATH}/tools/gas-preprocessor.pl -arch aarch64 -as-type armasm -- armasm64 -nologo}"
++ else
++ AS="${AS-${CC}}"
++ fi
++ ;;
+ arm*)
+ ARCH="ARM"
+ if [ "$SYS" = MACOSX ] ; then
+@@ -806,18 +823,6 @@ case $host_cpu in
+ AS="${AS-${CC}}"
+ fi
+ ;;
+- aarch64)
+- ARCH="AARCH64"
+- stack_alignment=16
+- if [ "$SYS" = MACOSX ] ; then
+- AS="${AS-${CC}}"
+- ASFLAGS="$ASFLAGS -DPREFIX -DPIC"
+- elif [ "$SYS" = WINDOWS ] && [ "$compiler" = CL ] ; then
+- AS="${AS-${SRCPATH}/tools/gas-preprocessor.pl -arch aarch64 -as-type armasm -- armasm64 -nologo}"
+- else
+- AS="${AS-${CC}}"
+- fi
+- ;;
+ s390|s390x)
+ ARCH="S390"
+ ;;
@@ -944,8 +949,8 @@ if [ $asm = auto -a $ARCH = ARM ] ; then
ASFLAGS="$ASFLAGS -c"
else
Home |
Main Index |
Thread Index |
Old Index