8 | | name ffmpeg |
9 | | conflicts ffmpeg-devel |
10 | | epoch 1 |
11 | | version 0.7.8 |
12 | | set branch [join [lrange [split ${version} .] 0 1] .] |
13 | | license GPL-2+ |
14 | | categories multimedia |
15 | | maintainers devans openmaintainer |
16 | | |
17 | | description FFmpeg is a complete solution to play, record, convert and \ |
18 | | stream audio and video. |
19 | | |
20 | | long_description FFmpeg is a complete solution to record, convert and \ |
21 | | stream audio and video. It includes libavcodec, the \ |
22 | | leading audio/video codec library. \ |
23 | | \ |
24 | | The project is made of several components: \ |
25 | | \ |
26 | | ffmpeg is a command line tool to convert one video \ |
27 | | file format to another. It also supports grabbing and \ |
28 | | encoding in real time from a TV card. \ |
29 | | \ |
30 | | ffserver is an HTTP (RTSP is being developped) \ |
31 | | multimedia streaming server for live broadcasts. Time \ |
32 | | shifting of live broadcast is also supported. \ |
33 | | \ |
34 | | ffplay is a simple media player based on SDL and on \ |
35 | | the ffmpeg libraries. \ |
36 | | \ |
37 | | ffprobe gathers information from multimedia streams and \ |
38 | | prints it in human- and machine-readable fashion. \ |
39 | | \ |
40 | | libavcodec is a library containing all the ffmpeg \ |
41 | | audio/video encoders and decoders. Most codecs were \ |
42 | | developped from scratch to ensure best performances \ |
43 | | and high code reusability. \ |
44 | | \ |
45 | | libavformat is a library containing parsers and \ |
46 | | generators for all common audio/video formats. |
47 | | |
48 | | platforms darwin |
49 | | homepage http://www.ffmpeg.org/ |
50 | | master_sites http://www.ffmpeg.org/releases/ |
51 | | |
52 | | use_bzip2 yes |
53 | | |
54 | | checksums sha1 df4983c028a61d4bf3baceab3bae535b91b8928a \ |
55 | | rmd160 8f69a6bc5caaba4e3d440c2d5dc96a946454a52c |
56 | | |
57 | | depends_build port:pkgconfig \ |
58 | | port:gmake \ |
59 | | port:texi2html |
60 | | |
61 | | depends_lib port:lame \ |
62 | | port:libvorbis \ |
63 | | port:libogg \ |
64 | | port:libtheora \ |
65 | | port:dirac \ |
66 | | port:schroedinger \ |
67 | | port:openjpeg \ |
68 | | path:lib/libspeex.dylib:speex \ |
69 | | port:XviD \ |
70 | | port:x264 \ |
71 | | port:libvpx \ |
72 | | path:lib/pkgconfig/sdl.pc:libsdl \ |
73 | | port:bzip2 \ |
74 | | port:zlib |
| 8 | name ffmpeg |
| 9 | conflicts ffmpeg-devel |
| 10 | version 0.9 |
| 11 | set branch [join [lrange [split ${version} .] 0 1] .] |
| 12 | license GPL-2+ |
| 13 | categories multimedia |
| 14 | maintainers devans openmaintainer |
| 15 | |
| 16 | description FFmpeg is a complete solution to play, record, convert and \ |
| 17 | stream audio and video. |
| 18 | |
| 19 | long_description \ |
| 20 | FFmpeg is a complete solution to record, convert and stream audio and \ |
| 21 | video. It includes libavcodec, the leading audio/video codec library. \ |
| 22 | The project is made of several components: \ |
| 23 | \ |
| 24 | ffmpeg is a command line tool to convert one video file format to \ |
| 25 | another. It also supports grabbing and encoding in real time from a \ |
| 26 | TV card. \ |
| 27 | \ |
| 28 | ffserver is an HTTP (RTSP is being developed) multimedia streaming \ |
| 29 | server for live broadcasts. Time shifting of live broadcast is also \ |
| 30 | supported. \ |
| 31 | \ |
| 32 | ffplay is a simple media player based on SDL and on the ffmpeg libraries. \ |
| 33 | \ |
| 34 | ffprobe gathers information from multimedia streams and prints it in \ |
| 35 | human- and machine-readable fashion. \ |
| 36 | \ |
| 37 | libavcodec is a library containing all the ffmpeg audio/video encoders \ |
| 38 | and decoders. Most codecs were developped from scratch to ensure best \ |
| 39 | performances and high code reusability. \ |
| 40 | \ |
| 41 | libavformat is a library containing parsers and generators for all common \ |
| 42 | audio/video formats. |
| 43 | |
| 44 | platforms darwin |
| 45 | homepage http://www.ffmpeg.org/ |
| 46 | master_sites http://www.ffmpeg.org/releases/ |
| 47 | use_bzip2 yes |
| 48 | |
| 49 | checksums sha256 2a9eb7795e6c1ad746aa2cc0fce9f71ec3763f610e362530ab277c6bc327d705 \ |
| 50 | rmd160 56e1e240363d4f1bc09390f5a3893a1b6b362908 |
| 51 | |
| 52 | depends_build port:pkgconfig |
| 53 | depends_lib port:lame \ |
| 54 | port:libvorbis \ |
| 55 | port:libogg \ |
| 56 | port:libtheora \ |
| 57 | port:dirac \ |
| 58 | port:schroedinger \ |
| 59 | port:openjpeg \ |
| 60 | port:speex \ |
| 61 | port:XviD \ |
| 62 | port:x264 \ |
| 63 | port:libvpx \ |
| 64 | port:libsdl \ |
| 65 | port:bzip2 \ |
| 66 | port:zlib |
87 | | # Under some conditions, llvm-gcc-4.2 drops some "unused" code even though it is used |
88 | | # fixed in llvm-gcc trunk, but not in Apple's shipped llvm-gccs. |
89 | | # |
90 | | # similarly clang fails to build on i386 platforms |
91 | | # |
92 | | # use code provided by jeremyhu here to use gcc-4.2 instead |
93 | | # |
94 | | # http://lists.macosforge.org/pipermail/macports-dev/2011-July/015263.html |
95 | | # |
96 | | |
97 | | if {${configure.compiler} == "clang" || |
98 | | ${configure.compiler} == "llvm-gcc-4.2"} { |
99 | | configure.compiler gcc-4.2 |
100 | | if {![file executable ${configure.cc}]} { |
101 | | depends_build-append port:apple-gcc42 |
102 | | configure.compiler apple-gcc-4.2 |
103 | | } |
104 | | } |
105 | | |
106 | | configure.cflags-append -DHAVE_LRINTF ${configure.cppflags} |
| 76 | configure.cflags-append -DHAVE_LRINTF ${configure.cppflags} |
131 | | file mkdir ${destroot}${prefix}/share/doc/ffmpeg |
132 | | file copy ${worksrcpath}/doc/APIchanges ${destroot}${prefix}/share/doc/ffmpeg |
133 | | file copy ${worksrcpath}/doc/RELEASE_NOTES ${destroot}${prefix}/share/doc/ffmpeg |
134 | | foreach f [glob ${worksrcpath}/doc/*.txt] { |
135 | | file copy $f ${destroot}${prefix}/share/doc/ffmpeg |
136 | | } |
| 100 | if {[variant_isset doc]} { |
| 101 | file mkdir ${destroot}${prefix}/share/doc/ffmpeg |
| 102 | file copy ${worksrcpath}/doc/APIchanges ${destroot}${prefix}/share/doc/ffmpeg |
| 103 | file copy ${worksrcpath}/doc/RELEASE_NOTES ${destroot}${prefix}/share/doc/ffmpeg |
| 104 | foreach f [glob ${worksrcpath}/doc/*.txt] { |
| 105 | file copy $f ${destroot}${prefix}/share/doc/ffmpeg |
| 106 | } |
| 107 | } |
149 | | foreach arch ${configure.universal_archs} { |
150 | | lappend merger_configure_args($arch) --arch=${arch} |
151 | | lappend merger_configure_env($arch) ASFLAGS='-arch ${arch}' |
152 | | } |
153 | | if {[string match "*86*" ${configure.universal_archs}]} { |
154 | | depends_build-append port:yasm |
155 | | } |
156 | | lappend merger_configure_args(i386) --enable-yasm |
157 | | lappend merger_configure_args(x86_64) --enable-yasm |
| 120 | foreach arch ${configure.universal_archs} { |
| 121 | lappend merger_configure_args($arch) --arch=${arch} |
| 122 | lappend merger_configure_env($arch) ASFLAGS='-arch ${arch}' |
| 123 | } |
| 124 | if {[string match "*86*" ${configure.universal_archs}]} { |
| 125 | depends_build-append port:yasm |
| 126 | } |
| 127 | lappend merger_configure_args(i386) --enable-yasm |
| 128 | lappend merger_configure_args(x86_64) --enable-yasm |