diff options
-rw-r--r-- | multimedia/ffmpeg0/Makefile | 5 | ||||
-rw-r--r-- | multimedia/ffmpeg0/files/patch-libavcodec_arm_asm.S | 25 |
2 files changed, 30 insertions, 0 deletions
diff --git a/multimedia/ffmpeg0/Makefile b/multimedia/ffmpeg0/Makefile index eea7767da7b0..180987879356 100644 --- a/multimedia/ffmpeg0/Makefile +++ b/multimedia/ffmpeg0/Makefile @@ -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 diff --git a/multimedia/ffmpeg0/files/patch-libavcodec_arm_asm.S b/multimedia/ffmpeg0/files/patch-libavcodec_arm_asm.S new file mode 100644 index 000000000000..9c259a2fc629 --- /dev/null +++ b/multimedia/ffmpeg0/files/patch-libavcodec_arm_asm.S @@ -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 |