| @@ -1,16 +1,17 @@ | | | @@ -1,16 +1,17 @@ |
1 | # $NetBSD: Makefile,v 1.39 2017/06/19 08:22:47 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.40 2017/08/19 09:57:52 ryoon Exp $ |
2 | | | 2 | |
3 | PKGNAME= ${DISTNAME:S/ffmpeg/ffmpeg2/} | | 3 | PKGNAME= ${DISTNAME:S/ffmpeg/ffmpeg2/} |
| | | 4 | PKGREVISION= 1 |
4 | MAINTAINER= pkgsrc-users@NetBSD.org | | 5 | MAINTAINER= pkgsrc-users@NetBSD.org |
5 | HOMEPAGE= http://ffmpeg.mplayerhq.hu/ | | 6 | HOMEPAGE= http://ffmpeg.mplayerhq.hu/ |
6 | COMMENT= Decoding, encoding and streaming software (v2.x) | | 7 | COMMENT= Decoding, encoding and streaming software (v2.x) |
7 | | | 8 | |
8 | CONFIGURE_ARGS+= --enable-avfilter | | 9 | CONFIGURE_ARGS+= --enable-avfilter |
9 | #CONFIGURE_ARGS+= --enable-avfilter-lavf | | 10 | #CONFIGURE_ARGS+= --enable-avfilter-lavf |
10 | CONFIGURE_ARGS+= --enable-postproc | | 11 | CONFIGURE_ARGS+= --enable-postproc |
11 | CONFIGURE_ARGS+= --disable-ffplay | | 12 | CONFIGURE_ARGS+= --disable-ffplay |
12 | | | 13 | |
13 | INSTALLATION_DIRS= lib/ffmpeg2 share/doc/ffmpeg2 share/examples/ffmpeg2 | | 14 | INSTALLATION_DIRS= lib/ffmpeg2 share/doc/ffmpeg2 share/examples/ffmpeg2 |
14 | | | 15 | |
15 | CONF_FILES+= ${PREFIX}/share/examples/ffmpeg2/ffserver.conf \ | | 16 | CONF_FILES+= ${PREFIX}/share/examples/ffmpeg2/ffserver.conf \ |
16 | ${PKG_SYSCONFDIR}/ffserver.conf | | 17 | ${PKG_SYSCONFDIR}/ffserver.conf |
| @@ -41,16 +42,17 @@ post-install: | | | @@ -41,16 +42,17 @@ post-install: |
41 | .include "../../mk/compiler.mk" | | 42 | .include "../../mk/compiler.mk" |
42 | | | 43 | |
43 | # disable asm on i386 for non-gcc and gcc < 4.2 | | 44 | # disable asm on i386 for non-gcc and gcc < 4.2 |
44 | .if ${MACHINE_ARCH} == "i386" | | 45 | .if ${MACHINE_ARCH} == "i386" |
45 | . if !empty(MACHINE_PLATFORM:MDarwin-*-i386) \ | | 46 | . if !empty(MACHINE_PLATFORM:MDarwin-*-i386) \ |
46 | || !empty(MACHINE_PLATFORM:MSunOS-*-i386) \ | | 47 | || !empty(MACHINE_PLATFORM:MSunOS-*-i386) \ |
47 | || !empty(CC_VERSION:Mgcc-[123]*) \ | | 48 | || !empty(CC_VERSION:Mgcc-[123]*) \ |
48 | || !empty(CC_VERSION:Mgcc-4.[01].*) \ | | 49 | || !empty(CC_VERSION:Mgcc-4.[01].*) \ |
49 | || empty(CC_VERSION:Mgcc*) | | 50 | || empty(CC_VERSION:Mgcc*) |
50 | CONFIGURE_ARGS+= --disable-asm | | 51 | CONFIGURE_ARGS+= --disable-asm |
51 | . elif !empty(CC_VERSION:Mgcc-[456].*) | | 52 | . elif !empty(CC_VERSION:Mgcc-[456].*) |
52 | CFLAGS+= -mstackrealign -mpreferred-stack-boundary=4 | | 53 | CFLAGS+= -mstackrealign -mpreferred-stack-boundary=4 |
53 | . endif | | 54 | . endif |
| | | 55 | NOT_PAX_MPROTECT_SAFE+= bin/ffmpeg2 |
54 | .endif | | 56 | .endif |
55 | | | 57 | |
56 | .include "../../multimedia/ffmpeg2/Makefile.common" | | 58 | .include "../../multimedia/ffmpeg2/Makefile.common" |