Ticket #11933: Portfile

File Portfile, 3.6 KB (added by cremes@…, 18 years ago)

Portfile for the new port

Line 
1PortSystem 1.0
2name        transcode
3version     1.1.0-pre-01
4categories  multimedia
5maintainers cremes@mac.com, liontooth@cogweb.net
6description Video and audio processing tools
7long_description    transcode is a suite of tools, all of which are \
8            command line utilities, for transcoding various \
9            video, audio, and container formats, running on a \
10            platform that supports shared libraries and threads.\
11            \
12            Decoding and encoding is done by modules that are \
13            responsible for feeding transcode with raw video/ \
14            audio streams (import modules) and encoding the frames \
15            (export modules). \
16            \
17            It includes a variety of video and audio filters, \
18            including (but not limited to) video de-interlacing, \
19            audio resampling, framerate conversion, different \
20            resizing algorithms, smoothing, sharpening, denoisifying, \
21            and cutting. \
22            \
23
24homepage        http://www.transcoding.org
25
26fetch.type      cvs
27cvs.root        :pserver:cvs@cvs.exit1.org:/cvstc
28cvs.tag         HEAD
29cvs.module      transcode
30worksrcdir      ${name}
31
32depends_lib     port:automake \
33                port:autoconf \
34                port:libtool \
35                port:ffmpeg \
36                port:libmpeg2 \
37                port:libdvdread \
38                port:libjpeg \
39                port:lame \
40
41pre-configure       { cd ${worksrcpath}
42            system "LIBTOOLIZE=glibtoolize autoreconf -i -f"
43            }
44
45platforms           darwin
46
47configure.args      --disable-mmx \
48                    --disable-altivec \
49                    --with-libavcodec-prefix=${prefix} \
50                    --with-libmpeg2-prefix=${prefix} \
51                    --with-libdvdread-prefix=${prefix} \
52                    --with-libjpeg-prefix=${prefix} \
53                    --with-lame-prefix=${prefix} \
54
55# Optional components
56
57variant a52dec {
58    depends_lib-append port:a52dec
59    configure.args-append --enable-a52 --enable-a52-default-decoder --with-a52-prefix=${prefix}
60}
61
62variant faac {
63    depends_lib-append port:faac
64    configure.args-append --enable-faac --with-faac-prefix=${prefix}
65}
66
67variant faad2 {
68    depends_lib-append port:faad2
69    configure.args-append --enable-faad --with-faad-prefix=${prefix}
70}
71
72variant freetype {
73    depends_lib-append port:freetype
74    configure.args-append --enable-freetype2 --with-freetype2-prefix=${prefix}
75}
76
77variant imagemagick {
78    depends_lib-append port:ImageMagick
79    configure.args-append --enable-imagemagick --with-imagemagick-prefix=${prefix}
80}
81
82variant libdv {
83    depends_lib-append port:libdv
84    configure.args-append --enable-libdv --with-libdv-prefix=${prefix}
85}
86
87variant libogg {
88    depends_lib-append port:libogg
89    configure.args-append --enable-ogg --with-ogg-prefix=${prefix}
90}
91
92variant libsdl {
93    depends_lib-append port:libsdl
94    configure.args-append --enable-sdl --with-sdl-prefix=${prefix}
95}
96
97variant libtheora {
98    depends_lib-append port:libtheora
99    configure.args-append --enable-theora --with-theora-prefix=${prefix}
100}
101
102variant libvorbis {
103    depends_lib-append port:libvorbis
104    configure.args-append --enable-vorbis --with-vorbis-prefix=${prefix}
105}
106
107variant libxml2 {
108    depends_lib-append port:libxml2
109    configure.args-append --enable-libxml2 --with-libxml2-prefix=${prefix}
110}
111
112variant x264 {
113    depends_lib-append port:x264
114    configure.args-append --enable-x264 --with-x264-prefix=${prefix}
115}
116
117variant xvid {
118    depends_lib-append port:XviD
119    configure.args-append --enable-xvid --with-xvid-prefix=${prefix}
120}
121