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

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

Added +a52 to default_variants as libdlna needs it when installing ushare
Added variant gpl to a52 and avfilter

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