| @@ -1,56 +1,58 @@ | | | @@ -1,56 +1,58 @@ |
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 |
17 | | | 18 | |
18 | .include "../../mk/bsd.prefs.mk" | | 19 | .include "../../mk/bsd.prefs.mk" |
19 | | | 20 | |
20 | .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) | | 21 | .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) |
21 | CONFIGURE_ARGS+= --enable-cross-compile | | 22 | CONFIGURE_ARGS+= --enable-cross-compile |
22 | CONFIGURE_ARGS+= --arch=${MACHINE_ARCH} | | 23 | CONFIGURE_ARGS+= --arch=${MACHINE_ARCH} |
23 | CONFIGURE_ARGS+= --host-cc=${NATIVE_CC:Q} | | 24 | CONFIGURE_ARGS+= --host-cc=${NATIVE_CC:Q} |
24 | CONFIGURE_ARGS+= --host-ld=${NATIVE_CC:Q} | | 25 | CONFIGURE_ARGS+= --host-ld=${NATIVE_CC:Q} |
25 | CONFIGURE_ARGS+= --target-os=${LOWER_OPSYS} | | 26 | CONFIGURE_ARGS+= --target-os=${LOWER_OPSYS} |
26 | .endif | | 27 | .endif |
27 | | | 28 | |
28 | PRINT_PLIST_AWK+= /html/ { $$0 = "$${PLIST.doc}" $$0 } | | 29 | PRINT_PLIST_AWK+= /html/ { $$0 = "$${PLIST.doc}" $$0 } |
29 | PRINT_PLIST_AWK+= /opencl/ { $$0 = "$${PLIST.opencl}" $$0 } | | 30 | PRINT_PLIST_AWK+= /opencl/ { $$0 = "$${PLIST.opencl}" $$0 } |
30 | | | 31 | |
31 | TEST_TARGET= check | | 32 | TEST_TARGET= check |
32 | | | 33 | |
33 | post-install: | | 34 | post-install: |
34 | ${INSTALL_DATA} ${WRKSRC}/doc/*.txt \ | | 35 | ${INSTALL_DATA} ${WRKSRC}/doc/*.txt \ |
35 | ${DESTDIR}${PREFIX}/share/doc/ffmpeg2 | | 36 | ${DESTDIR}${PREFIX}/share/doc/ffmpeg2 |
36 | ${INSTALL_DATA} ${WRKSRC}/doc/ffserver.conf \ | | 37 | ${INSTALL_DATA} ${WRKSRC}/doc/ffserver.conf \ |
37 | ${DESTDIR}${PREFIX}/share/examples/ffmpeg2 | | 38 | ${DESTDIR}${PREFIX}/share/examples/ffmpeg2 |
38 | | | 39 | |
39 | .include "options.mk" | | 40 | .include "options.mk" |
40 | | | 41 | |
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" |