1 | # $Id: Portfile 24349 2007-04-23 03:00:36Z boeyms@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name ffmpeg |
---|
5 | version 0.4.9-pre1 |
---|
6 | revision 3 |
---|
7 | categories multimedia |
---|
8 | maintainers bytestorm@gmail.com openmaintainer@macports.org |
---|
9 | description Digital VCR and streaming server |
---|
10 | long_description FFmpeg is a complete solution to record, convert and \ |
---|
11 | stream audio and video. It includes libavcodec, the \ |
---|
12 | leading audio/video codec library. \ |
---|
13 | \ |
---|
14 | The project is made of several components: \ |
---|
15 | \ |
---|
16 | ffmpeg is a command line tool to convert one video \ |
---|
17 | file format to another. It also supports grabbing and \ |
---|
18 | encoding in real time from a TV card. \ |
---|
19 | \ |
---|
20 | ffserver is an HTTP (RTSP is being developped) \ |
---|
21 | multimedia streaming server for live broadcasts. Time \ |
---|
22 | shifting of live broadcast is also supported. \ |
---|
23 | \ |
---|
24 | ffplay is a simple media player based on SDL and on \ |
---|
25 | the ffmpeg libraries. \ |
---|
26 | \ |
---|
27 | libavcodec is a library containing all the ffmpeg \ |
---|
28 | audio/video encoders and decoders. Most codecs were \ |
---|
29 | developped from scratch to ensure best performances \ |
---|
30 | and high code reusability. \ |
---|
31 | \ |
---|
32 | libavformat is a library containing parsers and \ |
---|
33 | generators for all common audio/video formats. |
---|
34 | homepage http://ffmpeg.sourceforge.net/ |
---|
35 | |
---|
36 | fetch.type svn |
---|
37 | svn.url svn://svn.mplayerhq.hu/ffmpeg/trunk |
---|
38 | svn.tag 9102 |
---|
39 | worksrcdir trunk |
---|
40 | depends_build bin:svn:subversion |
---|
41 | |
---|
42 | platforms darwin |
---|
43 | configure.cflags-append -DHAVE_LRINTF ${configure.cppflags} |
---|
44 | configure.args --prefix=${prefix} --disable-vhook \ |
---|
45 | --mandir=${prefix}/share/man \ |
---|
46 | --enable-shared --enable-pthreads |
---|
47 | |
---|
48 | post-destroot { |
---|
49 | file mkdir ${destroot}/${prefix}/share/doc/${name} |
---|
50 | file copy ${worksrcpath}/doc/TODO ${destroot}/${prefix}/share/doc/${name} |
---|
51 | foreach f [glob ${worksrcpath}/doc/*.txt ${worksrcpath}/doc/*.html] { |
---|
52 | file copy $f ${destroot}/${prefix}/share/doc/${name} |
---|
53 | } |
---|
54 | } |
---|
55 | |
---|
56 | variant gpl { |
---|
57 | configure.args-append --enable-gpl |
---|
58 | } |
---|
59 | |
---|
60 | variant postproc requires gpl { |
---|
61 | configure.args-append --enable-pp |
---|
62 | } |
---|
63 | |
---|
64 | # Adds MP3 support |
---|
65 | variant lame { |
---|
66 | depends_lib-append port:lame |
---|
67 | configure.args-append --enable-libmp3lame |
---|
68 | } |
---|
69 | |
---|
70 | variant libogg { |
---|
71 | depends_lib-append port:libogg |
---|
72 | configure.args-append --enable-libogg |
---|
73 | } |
---|
74 | |
---|
75 | variant vorbis requires libogg { |
---|
76 | depends_lib-append port:libvorbis |
---|
77 | configure.args-append --enable-libvorbis |
---|
78 | } |
---|
79 | |
---|
80 | variant theora requires libogg { |
---|
81 | depends_lib-append port:libtheora |
---|
82 | configure.args-append --enable-libtheora |
---|
83 | } |
---|
84 | |
---|
85 | variant faac requires gpl { |
---|
86 | depends_lib-append port:faac |
---|
87 | configure.args-append --enable-libfaac |
---|
88 | } |
---|
89 | |
---|
90 | variant faad requires gpl { |
---|
91 | depends_lib-append port:faad2 |
---|
92 | configure.args-append --enable-libfaad |
---|
93 | } |
---|
94 | |
---|
95 | variant xvid requires gpl { |
---|
96 | depends_lib-append port:XviD |
---|
97 | configure.args-append --enable-xvid |
---|
98 | } |
---|
99 | |
---|
100 | variant x264 requires gpl { |
---|
101 | depends_lib-append port:x264 |
---|
102 | configure.args-append --enable-x264 |
---|
103 | } |
---|
104 | |
---|
105 | variant a52 { |
---|
106 | depends_lib-append port:a52dec |
---|
107 | configure.args-append --enable-liba52 |
---|
108 | } |
---|