diff options
author | schmonz <schmonz@pkgsrc.org> | 2021-07-14 13:19:41 +0000 |
---|---|---|
committer | schmonz <schmonz@pkgsrc.org> | 2021-07-14 13:19:41 +0000 |
commit | 4ea3850997e85d7796236fbeb3fa40ea5d5dceef (patch) | |
tree | 2d3b4bb4027fb1fd908d73aa75b2a070b09e0749 /multimedia | |
parent | c343d08ab9acda02febfcea7f843a85fe5acb3a9 (diff) | |
download | pkgsrc-4ea3850997e85d7796236fbeb3fa40ea5d5dceef.tar.gz |
Apply upstream eb95c29 to fix macOS M1 build.
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/x264-devel/distinfo | 6 | ||||
-rw-r--r-- | multimedia/x264-devel/patches/patch-config.guess | 16 | ||||
-rw-r--r-- | multimedia/x264-devel/patches/patch-config.sub | 24 | ||||
-rw-r--r-- | multimedia/x264-devel/patches/patch-configure | 43 |
4 files changed, 85 insertions, 4 deletions
diff --git a/multimedia/x264-devel/distinfo b/multimedia/x264-devel/distinfo index 25adde618fa..472d7847c2c 100644 --- a/multimedia/x264-devel/distinfo +++ b/multimedia/x264-devel/distinfo @@ -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 --git a/multimedia/x264-devel/patches/patch-config.guess b/multimedia/x264-devel/patches/patch-config.guess new file mode 100644 index 00000000000..2c3e8c01676 --- /dev/null +++ b/multimedia/x264-devel/patches/patch-config.guess @@ -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 --git a/multimedia/x264-devel/patches/patch-config.sub b/multimedia/x264-devel/patches/patch-config.sub new file mode 100644 index 00000000000..6116e14c53c --- /dev/null +++ b/multimedia/x264-devel/patches/patch-config.sub @@ -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 --git a/multimedia/x264-devel/patches/patch-configure b/multimedia/x264-devel/patches/patch-configure index 05046b0f6b1..ef2edaca6f2 100644 --- a/multimedia/x264-devel/patches/patch-configure +++ b/multimedia/x264-devel/patches/patch-configure @@ -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 @@ Avoid endian test failure for -flto. 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 @@ was passed. 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 |