| @@ -1,42 +1,55 @@ | | | @@ -1,42 +1,55 @@ |
1 | # $NetBSD: Makefile,v 1.11 2013/04/14 00:59:50 cheusov Exp $ | | 1 | # $NetBSD: Makefile,v 1.12 2013/06/30 12:16:18 wiz Exp $ |
2 | | | 2 | |
3 | PKGNAME= ffmpeg010-20130410.${DISTVERSION} | | 3 | PKGNAME= ffmpeg010-20130410.${DISTVERSION} |
4 | PKGREVISION= 1 | | 4 | PKGREVISION= 1 |
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 | CONFIGURE_ARGS+= --incdir=${PREFIX}/include/ffmpeg010 | | 12 | CONFIGURE_ARGS+= --incdir=${PREFIX}/include/ffmpeg010 |
13 | CONFIGURE_ARGS+= --libdir=${PREFIX}/lib/ffmpeg010 | | 13 | CONFIGURE_ARGS+= --libdir=${PREFIX}/lib/ffmpeg010 |
14 | CONFIGURE_ARGS+= --shlibdir=${PREFIX}/lib/ffmpeg010 | | 14 | CONFIGURE_ARGS+= --shlibdir=${PREFIX}/lib/ffmpeg010 |
15 | CONFIGURE_ARGS+= --datadir=${PREFIX}/share/ffmpeg010 | | 15 | CONFIGURE_ARGS+= --datadir=${PREFIX}/share/ffmpeg010 |
16 | #CONFIGURE_ARGS+= --build-suffix=010 | | 16 | #CONFIGURE_ARGS+= --build-suffix=010 |
17 | CONFIGURE_ARGS+= --progs-suffix=010 | | 17 | CONFIGURE_ARGS+= --progs-suffix=010 |
18 | | | 18 | |
19 | LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/ffmpeg010 | | 19 | LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/ffmpeg010 |
20 | | | 20 | |
21 | INSTALLATION_DIRS= lib share/examples/ffmpeg010 share/doc/ffmpeg010 | | 21 | INSTALLATION_DIRS= lib share/examples/ffmpeg010 share/doc/ffmpeg010 |
22 | | | 22 | |
23 | CONF_FILES+= ${PREFIX}/share/examples/ffmpeg010/ffserver.conf \ | | 23 | CONF_FILES+= ${PREFIX}/share/examples/ffmpeg010/ffserver.conf \ |
24 | ${PKG_SYSCONFDIR}/ffserver.conf | | 24 | ${PKG_SYSCONFDIR}/ffserver.conf |
25 | | | 25 | |
26 | .include "../../mk/bsd.prefs.mk" | | 26 | .include "../../mk/bsd.prefs.mk" |
27 | | | 27 | |
28 | .if ${OPSYS} == "Darwin" | | 28 | .include "../../mk/compiler.mk" |
| | | 29 | |
| | | 30 | # disable asm on i386 for non-gcc and gcc < 4.2 |
| | | 31 | # no alignment options needed for gcc >= 4.6 on i386 |
| | | 32 | |
| | | 33 | .if ${MACHINE_ARCH} == "i386" |
| | | 34 | .if !empty(MACHINE_PLATFORM:MDarwin-*-i386) |
29 | CONFIGURE_ARGS+= --disable-asm | | 35 | CONFIGURE_ARGS+= --disable-asm |
| | | 36 | .elif !empty(CC_VERSION:Mgcc-4.[2345]*) |
| | | 37 | CFLAGS+=-mstackrealign -mpreferred-stack-boundary=4 |
| | | 38 | .elif !empty(CC_VERSION:Mgcc-[123]*) \ |
| | | 39 | || !empty(CC_VERSION:Mgcc-4.[01]*) \ |
| | | 40 | || empty(CC_VERSION:Mgcc*) |
| | | 41 | CONFIGURE_ARGS+= --disable-asm |
| | | 42 | .endif |
30 | .endif | | 43 | .endif |
31 | | | 44 | |
32 | # "error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'" | | 45 | # "error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'" |
33 | CFLAGS.SunOS+= -DBROKEN_RELOCATIONS=1 | | 46 | CFLAGS.SunOS+= -DBROKEN_RELOCATIONS=1 |
34 | | | 47 | |
35 | TEST_TARGET= check | | 48 | TEST_TARGET= check |
36 | | | 49 | |
37 | post-install: | | 50 | post-install: |
38 | ${INSTALL_DATA} ${WRKSRC}/doc/*.txt \ | | 51 | ${INSTALL_DATA} ${WRKSRC}/doc/*.txt \ |
39 | ${DESTDIR}${PREFIX}/share/doc/ffmpeg010 | | 52 | ${DESTDIR}${PREFIX}/share/doc/ffmpeg010 |
40 | ${INSTALL_DATA} ${WRKSRC}/doc/ffserver.conf \ | | 53 | ${INSTALL_DATA} ${WRKSRC}/doc/ffserver.conf \ |
41 | ${DESTDIR}${PREFIX}/share/examples/ffmpeg010 | | 54 | ${DESTDIR}${PREFIX}/share/examples/ffmpeg010 |
42 | | | 55 | |