Thu Aug 15 10:21:30 2013 UTC ()
Apply patch from Onno van der Linden to try fixing PR 48116.


(adam)
diff -r1.1 -r1.2 pkgsrc/multimedia/ffmpeg2/Makefile

cvs diff -r1.1 -r1.2 pkgsrc/multimedia/ffmpeg2/Makefile (expand / switch to unified diff)

--- pkgsrc/multimedia/ffmpeg2/Makefile 2013/08/04 10:29:02 1.1
+++ pkgsrc/multimedia/ffmpeg2/Makefile 2013/08/15 10:21:30 1.2
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.1 2013/08/04 10:29:02 adam Exp $ 1# $NetBSD: Makefile,v 1.2 2013/08/15 10:21:30 adam Exp $
2 2
3PKGNAME= ${DISTNAME:S/ffmpeg/ffmpeg2/} 3PKGNAME= ${DISTNAME:S/ffmpeg/ffmpeg2/}
4MAINTAINER= pkgsrc-users@NetBSD.org 4MAINTAINER= pkgsrc-users@NetBSD.org
5HOMEPAGE= http://ffmpeg.mplayerhq.hu/ 5HOMEPAGE= http://ffmpeg.mplayerhq.hu/
6COMMENT= Decoding, encoding and streaming software 6COMMENT= Decoding, encoding and streaming software
7 7
8CONFIGURE_ARGS+= --enable-avfilter 8CONFIGURE_ARGS+= --enable-avfilter
9#CONFIGURE_ARGS+= --enable-avfilter-lavf 9#CONFIGURE_ARGS+= --enable-avfilter-lavf
10CONFIGURE_ARGS+= --enable-postproc 10CONFIGURE_ARGS+= --enable-postproc
11 11
12INSTALLATION_DIRS= lib share/doc/ffmpeg2 share/examples/ffmpeg2 12INSTALLATION_DIRS= lib share/doc/ffmpeg2 share/examples/ffmpeg2
13 13
14CONF_FILES+= ${PREFIX}/share/examples/ffmpeg2/ffserver.conf \ 14CONF_FILES+= ${PREFIX}/share/examples/ffmpeg2/ffserver.conf \
@@ -30,28 +30,28 @@ post-install: @@ -30,28 +30,28 @@ post-install:
30 ${INSTALL_DATA} ${WRKSRC}/doc/*.txt \ 30 ${INSTALL_DATA} ${WRKSRC}/doc/*.txt \
31 ${DESTDIR}${PREFIX}/share/doc/ffmpeg2 31 ${DESTDIR}${PREFIX}/share/doc/ffmpeg2
32 ${INSTALL_DATA} ${WRKSRC}/doc/ffserver.conf \ 32 ${INSTALL_DATA} ${WRKSRC}/doc/ffserver.conf \
33 ${DESTDIR}${PREFIX}/share/examples/ffmpeg2 33 ${DESTDIR}${PREFIX}/share/examples/ffmpeg2
34 34
35.include "options.mk" 35.include "options.mk"
36 36
37.include "../../mk/compiler.mk" 37.include "../../mk/compiler.mk"
38 38
39# disable asm on i386 for non-gcc and gcc < 4.2 39# disable asm on i386 for non-gcc and gcc < 4.2
40# no alignment options needed for gcc >= 4.6 on i386 40# no alignment options needed for gcc >= 4.6 on i386
41.if ${MACHINE_ARCH} == "i386" 41.if ${MACHINE_ARCH} == "i386"
42. if !empty(MACHINE_PLATFORM:MDarwin-*-i386) \ 42. if !empty(MACHINE_PLATFORM:MDarwin-*-i386) \
43 || !empty(MACHINE_PLATFORM:MSunOS-*-i386) 43 || !empty(MACHINE_PLATFORM:MSunOS-*-i386) \
 44 || !empty(CC_VERSION:Mgcc-[123]*) \
 45 || !empty(CC_VERSION:Mgcc-4.[01]*) \
 46 || empty(CC_VERSION:Mgcc*)
44CONFIGURE_ARGS+= --disable-asm 47CONFIGURE_ARGS+= --disable-asm
45. elif !empty(CC_VERSION:Mgcc-4.[2345]*) 48. elif !empty(CC_VERSION:Mgcc-4.[2345]*)
46CFLAGS+=-mstackrealign -mpreferred-stack-boundary=4 49CFLAGS+= -mstackrealign -mpreferred-stack-boundary=4
47. elif !empty(CC_VERSION:Mgcc-[123]*) \ 
48 || !empty(CC_VERSION:Mgcc-4.[01]*) || empty(CC_VERSION:Mgcc*) 
49CONFIGURE_ARGS+= --disable-asm 
50. endif 50. endif
51.endif 51.endif
52 52
53.if !empty(PKGSRC_COMPILER:Mclang) 53.if !empty(PKGSRC_COMPILER:Mclang)
54CFLAGS+= -no-integrated-as 54CFLAGS+= -no-integrated-as
55.endif 55.endif
56 56
57.include "../../multimedia/ffmpeg2/Makefile.common" 57.include "../../multimedia/ffmpeg2/Makefile.common"