mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-31 10:46:16 +00:00
multimedia/ffmpeg0: fix build on armv6 with clang 3.5
PR: 196846 Submitted by: mikael.urankar gmail com
This commit is contained in:
parent
579fb06398
commit
0daf34d9e0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=377509
@ -93,6 +93,11 @@ CONFIGURE_ARGS+= --enable-x11grab
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${ARCH} == armv6
|
||||
CONFIGURE_ENV+= ASFLAGS=-no-integrated-as
|
||||
CFLAGS= -no-integrated-as
|
||||
.endif
|
||||
|
||||
CONFIGURE_ENV+= COMPILER_PATH=${LOCALBASE}/bin
|
||||
MAKE_ENV+= COMPILER_PATH=${LOCALBASE}/bin
|
||||
|
||||
|
25
multimedia/ffmpeg0/files/patch-libavcodec_arm_asm.S
Normal file
25
multimedia/ffmpeg0/files/patch-libavcodec_arm_asm.S
Normal file
@ -0,0 +1,25 @@
|
||||
--- libavcodec/arm/asm.S.orig 2013-10-06 16:18:07 UTC
|
||||
+++ libavcodec/arm/asm.S
|
||||
@@ -26,6 +26,22 @@
|
||||
# define ELF @
|
||||
#endif
|
||||
|
||||
+#if HAVE_NEON
|
||||
+ .arch armv7-a
|
||||
+#elif HAVE_ARMV6T2
|
||||
+ .arch armv6t2
|
||||
+#elif HAVE_ARMV6
|
||||
+ .arch armv6
|
||||
+#elif HAVE_ARMV5TE
|
||||
+ .arch armv5te
|
||||
+#endif
|
||||
+
|
||||
+#if HAVE_NEON
|
||||
+ .fpu neon
|
||||
+#elif HAVE_ARMVFP
|
||||
+ .fpu vfp
|
||||
+#endif
|
||||
+
|
||||
.syntax unified
|
||||
|
||||
.macro require8 val=1
|
Loading…
Reference in New Issue
Block a user