Fix the PLIST handling of the SDL option. Problem reported by Amitai Schlair.diff -r1.38 -r1.39 pkgsrc/multimedia/ffmpeg/Makefile
(ahoka)
@@ -1,17 +1,18 @@ | @@ -1,17 +1,18 @@ | |||
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 |
@@ -1,17 +1,18 @@ | @@ -1,17 +1,18 @@ | |||
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 | |
@@ -55,25 +56,24 @@ lib/libpostproc.so.51 | @@ -55,25 +56,24 @@ 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,57 +1,59 @@ | @@ -1,57 +1,59 @@ | |||
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 |