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