Fix the PLIST handling of the SDL option. Problem reported by Amitai Schlair.diff -r1.38 -r1.39 pkgsrc/multimedia/ffmpeg/Makefile
(ahoka)
@@ -1,79 +1,80 @@ | @@ -1,79 +1,80 @@ | |||
1 | # $NetBSD: Makefile,v 1.38 2008/09/08 00:16:35 ahoka Exp $ | 1 | # $NetBSD: Makefile,v 1.39 2008/09/08 17:57:02 ahoka Exp $ | |
2 | 2 | |||
3 | DISTNAME= ffmpeg-${DISTVERSION} | 3 | DISTNAME= ffmpeg-${DISTVERSION} | |
4 | PKGNAME= ffmpeg-${DISTVERSION:S/-//g} | 4 | PKGNAME= ffmpeg-${DISTVERSION:S/-//g} | |
5 | PKGREVISION= 1 | |||
5 | CATEGORIES= multimedia | 6 | CATEGORIES= multimedia | |
6 | MASTER_SITES= ${MASTER_SITE_FREEBSD} | 7 | MASTER_SITES= ${MASTER_SITE_FREEBSD} | |
7 | EXTRACT_SUFX= .tar.bz2 | 8 | EXTRACT_SUFX= .tar.bz2 | |
8 | 9 | |||
9 | MAINTAINER= ahoka@NetBSD.org | 10 | MAINTAINER= ahoka@NetBSD.org | |
10 | HOMEPAGE= http://ffmpeg.mplayerhq.hu/ | 11 | HOMEPAGE= http://ffmpeg.mplayerhq.hu/ | |
11 | COMMENT= MPEG decoding, encoding and streaming software | 12 | COMMENT= MPEG decoding, encoding and streaming software | |
12 | 13 | |||
13 | DISTVERSION= 2008-07-27 | 14 | DISTVERSION= 2008-07-27 | |
14 | PKG_DESTDIR_SUPPORT= user-destdir | 15 | PKG_DESTDIR_SUPPORT= user-destdir | |
15 | 16 | |||
16 | HAS_CONFIGURE= YES | 17 | HAS_CONFIGURE= YES | |
17 | USE_LIBTOOL= YES | 18 | USE_LIBTOOL= YES | |
18 | USE_TOOLS+= gmake texi2html pod2man | 19 | USE_TOOLS+= gmake texi2html pod2man | |
19 | 20 | |||
20 | REPLACE_PERL+= doc/texi2pod.pl | 21 | REPLACE_PERL+= doc/texi2pod.pl | |
21 | 22 | |||
22 | SUBST_CLASSES+= conf | 23 | SUBST_CLASSES+= conf | |
23 | SUBST_STAGE.conf= post-patch | 24 | SUBST_STAGE.conf= post-patch | |
24 | SUBST_FILES.conf= ffserver.c | 25 | SUBST_FILES.conf= ffserver.c | |
25 | SUBST_SED.conf= -e 's,/etc/ffserver.conf,${PKG_SYSCONFDIR}/ffserver.conf,g' | 26 | SUBST_SED.conf= -e 's,/etc/ffserver.conf,${PKG_SYSCONFDIR}/ffserver.conf,g' | |
26 | SUBST_MESSAGE.conf= Fixing configuration path. | 27 | SUBST_MESSAGE.conf= Fixing configuration path. | |
27 | 28 | |||
28 | CONFLICTS+= ffmpeg-devel-[0-9]* | 29 | CONFLICTS+= ffmpeg-devel-[0-9]* | |
29 | 30 | |||
30 | PLIST_SRC+= ${PKGDIR}/PLIST | 31 | PLIST_SRC+= ${PKGDIR}/PLIST | |
31 | 32 | |||
32 | CONF_FILES+= ${PREFIX}/share/examples/ffmpeg/ffserver.conf \ | 33 | CONF_FILES+= ${PREFIX}/share/examples/ffmpeg/ffserver.conf \ | |
33 | ${PKG_SYSCONFDIR}/ffserver.conf | 34 | ${PKG_SYSCONFDIR}/ffserver.conf | |
34 | 35 | |||
35 | MAKE_ENV+= EXTRA_LIBS=${LIBGETOPT:Q} | 36 | MAKE_ENV+= EXTRA_LIBS=${LIBGETOPT:Q} | |
36 | # LOCALBASE=${LOCALBASE:Q} | 37 | # LOCALBASE=${LOCALBASE:Q} | |
37 | 38 | |||
38 | # Let's not put garbage into /tmp | 39 | # Let's not put garbage into /tmp | |
39 | CONFIGURE_ENV+= TMPDIR=${WRKDIR:Q} | 40 | CONFIGURE_ENV+= TMPDIR=${WRKDIR:Q} | |
40 | 41 | |||
41 | CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR} \ | 42 | CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR} \ | |
42 | --cc=${CC:Q} \ | 43 | --cc=${CC:Q} \ | |
43 | --prefix=${PREFIX:Q} \ | 44 | --prefix=${PREFIX:Q} \ | |
44 | --disable-debug \ | 45 | --disable-debug \ | |
45 | --disable-vhook \ | 46 | --disable-vhook \ | |
46 | --enable-avfilter \ | 47 | --enable-avfilter \ | |
47 | --enable-swscale \ | 48 | --enable-swscale \ | |
48 | --enable-gpl \ | 49 | --enable-gpl \ | |
49 | --enable-postproc \ | 50 | --enable-postproc \ | |
50 | --enable-pthreads \ | 51 | --enable-pthreads \ | |
51 | --enable-shared \ | 52 | --enable-shared \ | |
52 | --enable-libvorbis \ | 53 | --enable-libvorbis \ | |
53 | --enable-libmp3lame | 54 | --enable-libmp3lame | |
54 | 55 | |||
55 | # Doesn't work without memalign and memalign looks buggy. | 56 | # Doesn't work without memalign and memalign looks buggy. | |
56 | .if !empty(MACHINE_ARCH:Mi386) | 57 | .if !empty(MACHINE_ARCH:Mi386) | |
57 | CONFIGURE_ARGS+= --disable-mmx \ | 58 | CONFIGURE_ARGS+= --disable-mmx \ | |
58 | --disable-mmx2 \ | 59 | --disable-mmx2 \ | |
59 | --disable-ssse3 | 60 | --disable-ssse3 | |
60 | .endif | 61 | .endif | |
61 | 62 | |||
62 | INSTALLATION_DIRS= lib share/examples/ffmpeg share/doc/ffmpeg | 63 | INSTALLATION_DIRS= lib share/examples/ffmpeg share/doc/ffmpeg | |
63 | 64 | |||
64 | .include "options.mk" | 65 | .include "options.mk" | |
65 | 66 | |||
66 | post-install: | 67 | post-install: | |
67 | ${INSTALL_DATA} ${WRKSRC}/libavcodec/apiexample.c \ | 68 | ${INSTALL_DATA} ${WRKSRC}/libavcodec/apiexample.c \ | |
68 | ${DESTDIR}${PREFIX}/share/doc/ffmpeg | 69 | ${DESTDIR}${PREFIX}/share/doc/ffmpeg | |
69 | ${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/doc/TODO \ | 70 | ${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/doc/TODO \ | |
70 | ${DESTDIR}${PREFIX}/share/doc/ffmpeg | 71 | ${DESTDIR}${PREFIX}/share/doc/ffmpeg | |
71 | ${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${DESTDIR}${PREFIX}/share/doc/ffmpeg | 72 | ${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${DESTDIR}${PREFIX}/share/doc/ffmpeg | |
72 | ${INSTALL_DATA} ${WRKSRC}/doc/ffserver.conf \ | 73 | ${INSTALL_DATA} ${WRKSRC}/doc/ffserver.conf \ | |
73 | ${DESTDIR}${PREFIX}/share/examples/ffmpeg | 74 | ${DESTDIR}${PREFIX}/share/examples/ffmpeg | |
74 | 75 | |||
75 | .include "../../audio/lame/buildlink3.mk" | 76 | .include "../../audio/lame/buildlink3.mk" | |
76 | .include "../../audio/libvorbis/buildlink3.mk" | 77 | .include "../../audio/libvorbis/buildlink3.mk" | |
77 | .include "../../mk/pthread.buildlink3.mk" | 78 | .include "../../mk/pthread.buildlink3.mk" | |
78 | .include "../../devel/libgetopt/buildlink3.mk" | 79 | .include "../../devel/libgetopt/buildlink3.mk" | |
79 | .include "../../mk/bsd.pkg.mk" | 80 | .include "../../mk/bsd.pkg.mk" |
@@ -1,79 +1,79 @@ | @@ -1,79 +1,79 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.7 2008/09/07 23:39:37 ahoka Exp $ | 1 | @comment $NetBSD: PLIST,v 1.8 2008/09/08 17:57:02 ahoka Exp $ | |
2 | bin/ffmpeg | 2 | bin/ffmpeg | |
3 | bin/ffplay | |||
4 | bin/ffserver | 3 | bin/ffserver | |
4 | ${PLIST.sdl}bin/ffplay | |||
5 | ${PLIST.sdl}man/man1/ffplay.1 | |||
5 | include/libavcodec/avcodec.h | 6 | include/libavcodec/avcodec.h | |
6 | include/libavcodec/opt.h | 7 | include/libavcodec/opt.h | |
7 | include/libavdevice/avdevice.h | 8 | include/libavdevice/avdevice.h | |
8 | include/libavfilter/avfilter.h | 9 | include/libavfilter/avfilter.h | |
9 | include/libavformat/avformat.h | 10 | include/libavformat/avformat.h | |
10 | include/libavformat/avio.h | 11 | include/libavformat/avio.h | |
11 | include/libavformat/rtsp.h | 12 | include/libavformat/rtsp.h | |
12 | include/libavformat/rtspcodes.h | 13 | include/libavformat/rtspcodes.h | |
13 | include/libavutil/adler32.h | 14 | include/libavutil/adler32.h | |
14 | include/libavutil/avstring.h | 15 | include/libavutil/avstring.h | |
15 | include/libavutil/avutil.h | 16 | include/libavutil/avutil.h | |
16 | include/libavutil/base64.h | 17 | include/libavutil/base64.h | |
17 | include/libavutil/common.h | 18 | include/libavutil/common.h | |
18 | include/libavutil/crc.h | 19 | include/libavutil/crc.h | |
19 | include/libavutil/fifo.h | 20 | include/libavutil/fifo.h | |
20 | include/libavutil/intfloat_readwrite.h | 21 | include/libavutil/intfloat_readwrite.h | |
21 | include/libavutil/log.h | 22 | include/libavutil/log.h | |
22 | include/libavutil/lzo.h | 23 | include/libavutil/lzo.h | |
23 | include/libavutil/mathematics.h | 24 | include/libavutil/mathematics.h | |
24 | include/libavutil/md5.h | 25 | include/libavutil/md5.h | |
25 | include/libavutil/mem.h | 26 | include/libavutil/mem.h | |
26 | include/libavutil/random.h | 27 | include/libavutil/random.h | |
27 | include/libavutil/rational.h | 28 | include/libavutil/rational.h | |
28 | include/libavutil/sha1.h | 29 | include/libavutil/sha1.h | |
29 | include/libpostproc/postprocess.h | 30 | include/libpostproc/postprocess.h | |
30 | include/libswscale/rgb2rgb.h | 31 | include/libswscale/rgb2rgb.h | |
31 | include/libswscale/swscale.h | 32 | include/libswscale/swscale.h | |
32 | lib/libavcodec.a | 33 | lib/libavcodec.a | |
33 | lib/libavcodec.so | 34 | lib/libavcodec.so | |
34 | lib/libavcodec.so.51 | 35 | lib/libavcodec.so.51 | |
35 | lib/libavcodec.so.51.61.0 | 36 | lib/libavcodec.so.51.61.0 | |
36 | lib/libavdevice.a | 37 | lib/libavdevice.a | |
37 | lib/libavdevice.so | 38 | lib/libavdevice.so | |
38 | lib/libavdevice.so.52 | 39 | lib/libavdevice.so.52 | |
39 | lib/libavdevice.so.52.0.0 | 40 | lib/libavdevice.so.52.0.0 | |
40 | lib/libavfilter.a | 41 | lib/libavfilter.a | |
41 | lib/libavfilter.so | 42 | lib/libavfilter.so | |
42 | lib/libavfilter.so.0 | 43 | lib/libavfilter.so.0 | |
43 | lib/libavfilter.so.0.0.0 | 44 | lib/libavfilter.so.0.0.0 | |
44 | lib/libavformat.a | 45 | lib/libavformat.a | |
45 | lib/libavformat.so | 46 | lib/libavformat.so | |
46 | lib/libavformat.so.52 | 47 | lib/libavformat.so.52 | |
47 | lib/libavformat.so.52.18.0 | 48 | lib/libavformat.so.52.18.0 | |
48 | lib/libavutil.a | 49 | lib/libavutil.a | |
49 | lib/libavutil.so | 50 | lib/libavutil.so | |
50 | lib/libavutil.so.49 | 51 | lib/libavutil.so.49 | |
51 | lib/libavutil.so.49.7.0 | 52 | lib/libavutil.so.49.7.0 | |
52 | lib/libpostproc.a | 53 | lib/libpostproc.a | |
53 | lib/libpostproc.so | 54 | lib/libpostproc.so | |
54 | lib/libpostproc.so.51 | 55 | lib/libpostproc.so.51 | |
55 | lib/libpostproc.so.51.1.0 | 56 | lib/libpostproc.so.51.1.0 | |
56 | lib/libswscale.a | 57 | lib/libswscale.a | |
57 | lib/libswscale.so | 58 | lib/libswscale.so | |
58 | lib/libswscale.so.0 | 59 | lib/libswscale.so.0 | |
59 | lib/libswscale.so.0.5.1 | 60 | lib/libswscale.so.0.5.1 | |
60 | lib/pkgconfig/libavcodec.pc | 61 | lib/pkgconfig/libavcodec.pc | |
61 | lib/pkgconfig/libavdevice.pc | 62 | lib/pkgconfig/libavdevice.pc | |
62 | lib/pkgconfig/libavfilter.pc | 63 | lib/pkgconfig/libavfilter.pc | |
63 | lib/pkgconfig/libavformat.pc | 64 | lib/pkgconfig/libavformat.pc | |
64 | lib/pkgconfig/libavutil.pc | 65 | lib/pkgconfig/libavutil.pc | |
65 | lib/pkgconfig/libpostproc.pc | 66 | lib/pkgconfig/libpostproc.pc | |
66 | lib/pkgconfig/libswscale.pc | 67 | lib/pkgconfig/libswscale.pc | |
67 | man/man1/ffmpeg.1 | 68 | man/man1/ffmpeg.1 | |
68 | man/man1/ffplay.1 | |||
69 | man/man1/ffserver.1 | 69 | man/man1/ffserver.1 | |
70 | share/doc/ffmpeg/README | 70 | share/doc/ffmpeg/README | |
71 | share/doc/ffmpeg/TODO | 71 | share/doc/ffmpeg/TODO | |
72 | share/doc/ffmpeg/apiexample.c | 72 | share/doc/ffmpeg/apiexample.c | |
73 | share/doc/ffmpeg/avutil.txt | 73 | share/doc/ffmpeg/avutil.txt | |
74 | share/doc/ffmpeg/ffmpeg_powerpc_performance_evaluation_howto.txt | 74 | share/doc/ffmpeg/ffmpeg_powerpc_performance_evaluation_howto.txt | |
75 | share/doc/ffmpeg/issue_tracker.txt | 75 | share/doc/ffmpeg/issue_tracker.txt | |
76 | share/doc/ffmpeg/optimization.txt | 76 | share/doc/ffmpeg/optimization.txt | |
77 | share/doc/ffmpeg/snow.txt | 77 | share/doc/ffmpeg/snow.txt | |
78 | share/doc/ffmpeg/soc.txt | 78 | share/doc/ffmpeg/soc.txt | |
79 | share/examples/ffmpeg/ffserver.conf | 79 | share/examples/ffmpeg/ffserver.conf |
@@ -1,73 +1,75 @@ | @@ -1,73 +1,75 @@ | |||
1 | # $NetBSD: options.mk,v 1.7 2008/09/07 23:39:37 ahoka Exp $ | 1 | # $NetBSD: options.mk,v 1.8 2008/09/08 17:57:02 ahoka Exp $ | |
2 | 2 | |||
3 | # Global and legacy options | 3 | # Global and legacy options | |
4 | 4 | |||
5 | PKG_OPTIONS_VAR= PKG_OPTIONS.ffmpeg | 5 | PKG_OPTIONS_VAR= PKG_OPTIONS.ffmpeg | |
6 | PKG_SUPPORTED_OPTIONS= sdl theora xvid faad faac #x264 | 6 | PKG_SUPPORTED_OPTIONS= sdl theora xvid faad faac #x264 | |
7 | PKG_SUGGESTED_OPTIONS= faac theora xvid | 7 | PKG_SUGGESTED_OPTIONS= faac theora xvid | |
8 | #PKG_OPTIONS_OPTIONAL_GROUPS= aac-decoder | 8 | #PKG_OPTIONS_OPTIONAL_GROUPS= aac-decoder | |
9 | #PKG_OPTIONS_GROUP.aac-decoder= faad faac | 9 | #PKG_OPTIONS_GROUP.aac-decoder= faad faac | |
10 | 10 | |||
11 | .include "../../mk/bsd.options.mk" | 11 | .include "../../mk/bsd.options.mk" | |
12 | .include "../../mk/bsd.prefs.mk" | 12 | .include "../../mk/bsd.prefs.mk" | |
13 | 13 | |||
14 | PLIST_VARS+= sdl | |||
15 | ||||
14 | ### | 16 | ### | |
15 | ### faad option | 17 | ### faad option | |
16 | ### | 18 | ### | |
17 | 19 | |||
18 | .if !empty(PKG_OPTIONS:Mfaad) | 20 | .if !empty(PKG_OPTIONS:Mfaad) | |
19 | CONFIGURE_ARGS+= --enable-libfaad | 21 | CONFIGURE_ARGS+= --enable-libfaad | |
20 | .include "../../audio/faad2/buildlink3.mk" | 22 | .include "../../audio/faad2/buildlink3.mk" | |
21 | .endif | 23 | .endif | |
22 | 24 | |||
23 | 25 | |||
24 | ### | 26 | ### | |
25 | ### faac option | 27 | ### faac option | |
26 | ### | 28 | ### | |
27 | 29 | |||
28 | .if !empty(PKG_OPTIONS:Mfaac) | 30 | .if !empty(PKG_OPTIONS:Mfaac) | |
29 | CONFIGURE_ARGS+= --enable-libfaac | 31 | CONFIGURE_ARGS+= --enable-libfaac | |
30 | .include "../../audio/faac/buildlink3.mk" | 32 | .include "../../audio/faac/buildlink3.mk" | |
31 | .endif | 33 | .endif | |
32 | 34 | |||
33 | ### | 35 | ### | |
34 | ### SDL support | 36 | ### SDL support | |
35 | ### | 37 | ### | |
36 | ### You can build the frontend with SDL support enabled | 38 | ### You can build the frontend with SDL support enabled | |
37 | ### | 39 | ### | |
38 | 40 | |||
39 | .if !empty(PKG_OPTIONS:Msdl) | 41 | .if !empty(PKG_OPTIONS:Msdl) | |
40 | ||||
41 | CONFIGURE_ARGS+= --enable-ffplay | 42 | CONFIGURE_ARGS+= --enable-ffplay | |
42 | PLIST_SRC+= ${PKGDIR}/PLIST.sdl | 43 | PLIST.sdl= yes | |
43 | ||||
44 | .include "../../devel/SDL/buildlink3.mk" | 44 | .include "../../devel/SDL/buildlink3.mk" | |
45 | .else | |||
46 | CONFIGURE_ARGS+= --disable-ffplay | |||
45 | .endif | 47 | .endif | |
46 | 48 | |||
47 | ### | 49 | ### | |
48 | ### OGG Theora support | 50 | ### OGG Theora support | |
49 | ### | 51 | ### | |
50 | 52 | |||
51 | .if !empty(PKG_OPTIONS:Mtheora) | 53 | .if !empty(PKG_OPTIONS:Mtheora) | |
52 | CONFIGURE_ARGS+= --enable-libtheora | 54 | CONFIGURE_ARGS+= --enable-libtheora | |
53 | .include "../../multimedia/libtheora/buildlink3.mk" | 55 | .include "../../multimedia/libtheora/buildlink3.mk" | |
54 | .endif | 56 | .endif | |
55 | 57 | |||
56 | ### | 58 | ### | |
57 | ### XviD support | 59 | ### XviD support | |
58 | ### | 60 | ### | |
59 | 61 | |||
60 | .if !empty(PKG_OPTIONS:Mxvid) | 62 | .if !empty(PKG_OPTIONS:Mxvid) | |
61 | CONFIGURE_ARGS+= --enable-libxvid | 63 | CONFIGURE_ARGS+= --enable-libxvid | |
62 | .include "../../multimedia/xvidcore/buildlink3.mk" | 64 | .include "../../multimedia/xvidcore/buildlink3.mk" | |
63 | .endif | 65 | .endif | |
64 | 66 | |||
65 | ### | 67 | ### | |
66 | ### x264 support | 68 | ### x264 support | |
67 | ### | 69 | ### | |
68 | 70 | |||
69 | .if !empty(PKG_OPTIONS:Mx264) | 71 | .if !empty(PKG_OPTIONS:Mx264) | |
70 | BUILDLINK_API_DEPENDS.x264-devel+= x264-devel>=20071218 | 72 | BUILDLINK_API_DEPENDS.x264-devel+= x264-devel>=20071218 | |
71 | CONFIGURE_ARGS+= --enable-libx264 | 73 | CONFIGURE_ARGS+= --enable-libx264 | |
72 | .include "../../multimedia/x264-devel/buildlink3.mk" | 74 | .include "../../multimedia/x264-devel/buildlink3.mk" | |
73 | .endif | 75 | .endif |