source: trunk/dports/multimedia/ffmpeg/Portfile @ 30772

Last change on this file since 30772 was 30772, checked in by ryandesign@…, 13 years ago

ffmpeg: hopefully fix build problem on Mac OS X 10.5 Leopard; see #13019.

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