| @@ -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 | |
3 | PKGNAME= ${DISTNAME:S/ffmpeg/ffmpeg2/} | | 3 | PKGNAME= ${DISTNAME:S/ffmpeg/ffmpeg2/} |
4 | MAINTAINER= pkgsrc-users@NetBSD.org | | 4 | MAINTAINER= pkgsrc-users@NetBSD.org |
5 | HOMEPAGE= http://ffmpeg.mplayerhq.hu/ | | 5 | HOMEPAGE= http://ffmpeg.mplayerhq.hu/ |
6 | COMMENT= Decoding, encoding and streaming software | | 6 | COMMENT= Decoding, encoding and streaming software |
7 | | | 7 | |
8 | CONFIGURE_ARGS+= --enable-avfilter | | 8 | CONFIGURE_ARGS+= --enable-avfilter |
9 | #CONFIGURE_ARGS+= --enable-avfilter-lavf | | 9 | #CONFIGURE_ARGS+= --enable-avfilter-lavf |
10 | CONFIGURE_ARGS+= --enable-postproc | | 10 | CONFIGURE_ARGS+= --enable-postproc |
11 | | | 11 | |
12 | INSTALLATION_DIRS= lib share/doc/ffmpeg2 share/examples/ffmpeg2 | | 12 | INSTALLATION_DIRS= lib share/doc/ffmpeg2 share/examples/ffmpeg2 |
13 | | | 13 | |
14 | CONF_FILES+= ${PREFIX}/share/examples/ffmpeg2/ffserver.conf \ | | 14 | CONF_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*) |
44 | CONFIGURE_ARGS+= --disable-asm | | 47 | CONFIGURE_ARGS+= --disable-asm |
45 | . elif !empty(CC_VERSION:Mgcc-4.[2345]*) | | 48 | . elif !empty(CC_VERSION:Mgcc-4.[2345]*) |
46 | CFLAGS+=-mstackrealign -mpreferred-stack-boundary=4 | | 49 | CFLAGS+= -mstackrealign -mpreferred-stack-boundary=4 |
47 | . elif !empty(CC_VERSION:Mgcc-[123]*) \ | | | |
48 | || !empty(CC_VERSION:Mgcc-4.[01]*) || empty(CC_VERSION:Mgcc*) | | | |
49 | CONFIGURE_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) |
54 | CFLAGS+= -no-integrated-as | | 54 | CFLAGS+= -no-integrated-as |
55 | .endif | | 55 | .endif |
56 | | | 56 | |
57 | .include "../../multimedia/ffmpeg2/Makefile.common" | | 57 | .include "../../multimedia/ffmpeg2/Makefile.common" |