1
0
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:
William Grzybowski 2015-01-20 12:05:26 +00:00
parent 579fb06398
commit 0daf34d9e0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=377509
2 changed files with 30 additions and 0 deletions

View File

@ -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

View 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