git: 7b5633d04690 - main - multimedia/xvid: fix build on powerpc with LLVM 13

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sun, 20 Mar 2022 01:52:28 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7b5633d04690ab0194dcbe7edcf39584f2ac2c10

commit 7b5633d04690ab0194dcbe7edcf39584f2ac2c10
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-03-20 01:43:48 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-03-20 01:43:48 +0000

    multimedia/xvid: fix build on powerpc with LLVM 13
    
    ../../src/image/ppc_asm/colorspace_altivec.c:434:1: error: address of register variable requested
    MAKE_COLORSPACE_ALTIVEC_FROM_RGB(bgra_to_yv12_altivec_c, 4, 8, 2, RGB_TO_YV12_ALTIVEC, 2, 1, 0, 0)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../../src/image/ppc_asm/colorspace_altivec.c:65:5: note: expanded from macro 'MAKE_COLORSPACE_ALTIVEC_FROM_RGB'
        shift_consts[0] = vec_add(vec_splat_u32(12), vec_splat_u32(12));    \
        ^~~~~~~~~~~~
    
    Fix similar to 0efce95397d4b53be14448a803902191ab8c1df3.
---
 multimedia/xvid/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/multimedia/xvid/Makefile b/multimedia/xvid/Makefile
index 0451c26a09cf..575d26f9ece5 100644
--- a/multimedia/xvid/Makefile
+++ b/multimedia/xvid/Makefile
@@ -21,6 +21,7 @@ USE_LDCONFIG=	yes
 # PR230208 Allow relocations against read-only segments (override lld default)
 LDFLAGS_i386=	-Wl,-z,notext
 
+CFLAGS_powerpc=	-Dregister=
 CONFIGURE_ENV+=	ac_cv_prog_ac_yasm=no
 
 PLIST_FILES=	include/xvid.h \