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

Last change on this file since 35074 was 35074, checked in by reiffert@…, 12 years ago

Post commit fixing the Portfile (removing stuff from a test/tryout)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.8 KB
Line 
1# $Id: Portfile 35074 2008-03-16 14:46:48Z reiffert@macports.org $
2
3PortSystem 1.0
4
5name            ffmpeg
6version         0.4.9-pre1
7revision        5
8categories      multimedia
9maintainers     acho@macports.org 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/
36master_sites    {}
37fetch.type     svn
38svn.url        svn://svn.mplayerhq.hu/ffmpeg/trunk
39svn.tag        12276
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
48pre-configure {
49        if {[variant_isset universal]} {
50                configure.args-delete --disable-dependency-tracking
51        }
52}
53post-destroot {
54        file mkdir ${destroot}${prefix}/share/doc/${name}
55        file copy ${worksrcpath}/doc/TODO ${destroot}${prefix}/share/doc/${name}
56        foreach f [glob ${worksrcpath}/doc/*.txt ${worksrcpath}/doc/*.html] {
57                file copy $f ${destroot}${prefix}/share/doc/${name}
58        }
59}
60
61platform darwin i386 {
62        # Fix Leopard problems by disabling assembly for now; see #13019.
63        configure.args-append --disable-mmx
64}
65
66variant gpl description {allow use of GPL code, the resulting libav* and ffmpeg will be under GPL} {
67        configure.args-append --enable-gpl
68}
69
70variant postproc requires gpl description {enable GPLed postprocessing support} {
71        configure.args-append --enable-pp
72}
73
74# Adds MP3 support
75variant lame description {enable MP3 encoding via libmp3lame} {
76        depends_lib-append port:lame
77        configure.args-append --enable-libmp3lame
78}
79
80variant extvorbis description {enable Vorbis encoding via libvorbis, native implementation exists} {
81        depends_lib-append port:libvorbis port:libogg
82        configure.args-append --enable-libvorbis
83}
84
85variant theora description {enable Theora encoding via libtheora} {
86        depends_lib-append port:libtheora port:libogg
87        configure.args-append --enable-libtheora
88}
89
90variant faac requires gpl description {enable FAAC support via libfaac} {
91        depends_lib-append port:faac
92        configure.args-append --enable-libfaac
93}
94
95variant faad requires gpl description {enable FAAD support via libfaad} {
96        depends_lib-append port:faad2
97        configure.args-append --enable-libfaad
98}
99
100variant xvid requires gpl description {enable Xvid encoding via xvidcore, native MPEG-4/Xvid encoder exists} {
101        depends_lib-append port:XviD
102        configure.args-append --enable-libxvid
103}
104
105# depends build until x264 port supports shared libraries
106variant x264 requires gpl description {enable H.264 encoding via x264} {
107        depends_build-append port:x264
108        configure.args-append --enable-libx264
109}
110
111variant a52 description {enable GPLed liba52 support} {
112        depends_lib-append port:a52dec
113        configure.args-append --enable-liba52
114}
115variant avfilter description {video filter support (replaces vhook)} {
116        patchfiles-append patch-libswscale-Makefile.diff
117        configure.args-append --enable-swscaler --enable-avfilter
118
119        # keep vhook as long as avfilter isnt working fully
120        configure.args-delete --disable-vhook
121}
Note: See TracBrowser for help on using the repository browser.