Ticket #12193: Portfile

File Portfile, 2.8 KB (added by bytestorm@…, 17 years ago)

add requires gpl to xvid variant.

Line 
1# $Id: Portfile 24349 2007-04-23 03:00:36Z boeyms@macports.org $
2
3PortSystem 1.0
4name            ffmpeg
5version         0.4.9-pre1
6revision        3
7categories      multimedia
8maintainers     bytestorm@gmail.com openmaintainer@macports.org
9description     Digital VCR and streaming server
10long_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.
34homepage        http://ffmpeg.sourceforge.net/
35
36fetch.type     svn
37svn.url        svn://svn.mplayerhq.hu/ffmpeg/trunk
38svn.tag        9102
39worksrcdir     trunk
40depends_build  bin:svn:subversion
41
42platforms       darwin
43configure.cflags-append -DHAVE_LRINTF ${configure.cppflags}
44configure.args  --prefix=${prefix} --disable-vhook \
45                --mandir=${prefix}/share/man \
46                --enable-shared --enable-pthreads
47
48post-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
56variant gpl {
57        configure.args-append --enable-gpl
58}
59
60variant postproc requires gpl {
61        configure.args-append --enable-pp
62}
63
64# Adds MP3 support
65variant lame {
66        depends_lib-append port:lame
67        configure.args-append --enable-libmp3lame
68}
69
70variant libogg {
71        depends_lib-append port:libogg
72        configure.args-append --enable-libogg
73}
74
75variant vorbis requires libogg {
76        depends_lib-append port:libvorbis
77        configure.args-append --enable-libvorbis
78}
79
80variant theora requires libogg {
81        depends_lib-append port:libtheora
82        configure.args-append --enable-libtheora
83}
84
85variant faac requires gpl {
86        depends_lib-append port:faac
87        configure.args-append --enable-libfaac
88}
89
90variant faad requires gpl {
91        depends_lib-append port:faad2
92        configure.args-append --enable-libfaad
93}
94
95variant xvid requires gpl {
96        depends_lib-append port:XviD
97        configure.args-append --enable-xvid
98}
99
100variant x264 requires gpl {
101        depends_lib-append port:x264
102        configure.args-append --enable-x264
103}
104
105variant a52 {
106        depends_lib-append port:a52dec
107        configure.args-append --enable-liba52
108}