source: trunk/dports/multimedia/transcode/Portfile

Last change on this file was 148825, checked in by devans@…, 16 months ago

dependents of ffmpeg: increment revision to rebuild with ffmpeg version 3.0.2. (#50694).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 6.2 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 148825 2016-05-19 16:38:55Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name        transcode
7version     1.1.7
8revision    17
9epoch       1
10license     GPL-2+
11categories  multimedia
12maintainers cogweb.net:lionteeth devans
13description Video and audio processing tools
14long_description    transcode is a suite of tools, all of which are \
15            command line utilities, for transcoding various \
16            video, audio, and container formats, running on a \
17            platform that supports shared libraries and threads.\
18            \
19            Decoding and encoding is done by modules that are \
20            responsible for feeding transcode with raw video/ \
21            audio streams (import modules) and encoding the frames \
22            (export modules). \
23            \
24            It includes a variety of video and audio filters, \
25            including (but not limited to) video de-interlacing, \
26            audio resampling, framerate conversion, different \
27            resizing algorithms, smoothing, sharpening, denoisifying, \
28            and cutting.
29
30homepage        https://bitbucket.org/france/transcode-tcforge/overview
31
32master_sites    https://bitbucket.org/france/transcode-tcforge/downloads/
33
34use_bzip2       yes
35
36checksums       md5     9bb25a796a8591fb764de46ee87ce505 \
37                sha1    e35df68b960eb56ef0a59a4cdbed1491be56aee6
38
39depends_build   port:pkgconfig
40
41depends_lib     path:lib/libavcodec.dylib:ffmpeg \
42                port:libmpeg2 \
43                port:libdvdread \
44                port:jpeg \
45                port:lame
46
47platforms       darwin
48
49patchfiles      patch-configure.diff \
50                patch-avilib-avidump.c.diff \
51                patch-ffmpeg-0.11.diff \
52                patch-filter-filter_pp.c.diff \
53                patch-encode-Makefile.in.diff \
54                patch-ffmpeg-2.0.diff \
55                patch-ffmpeg-2.4.diff \
56                patch-freetype-2.5.1.diff \
57                patch-ffmpeg-3.0.diff
58
59configure.args  --disable-mmx \
60                --enable-libmpeg2 \
61                --enable-libmpeg2convert \
62                --without-x
63
64# Optional components
65
66universal_variant no
67
68variant mmx description {enable mmx optimizations} {
69     configure.args-delete --disable-mmx
70}
71
72variant full requires a52dec faac freetype imagemagick libdv libogg libpostproc libquicktime libsdl libtheora libvorbis libxml2 lzo mjpegtools x264 xvid description {enable all optional components except deprecated} {
73}
74
75variant a52dec description {enable support for decoding ATSC A/52 streams} {
76    depends_lib-append port:a52dec
77    configure.args-append --enable-a52 --with-a52-prefix=${prefix}
78}
79
80variant faac requires experimental description {enable AAC encoding support via libfaac (experimental)} {
81    depends_lib-append port:faac
82    configure.args-append --enable-faac --with-faac-prefix=${prefix}
83}
84
85variant freetype description {enable support for the FreeType font engine} {
86    depends_lib-append port:freetype
87    configure.args-append --enable-freetype2
88}
89
90variant imagemagick description {enable support for the manipulation of still images} {
91    depends_lib-append port:ImageMagick
92    configure.args-append --enable-imagemagick --with-imagemagick-prefix=${prefix}
93}
94
95variant libdv description {enable support for the Digital Video format via libdv} {
96    depends_lib-append port:libdv
97    configure.args-append --enable-libdv
98}
99
100variant libogg description {enable support for encoding and decoding ogg audio} {
101    depends_lib-append port:libogg
102    configure.args-append --enable-ogg
103}
104
105variant libpostproc description {enable libpostproc support from ffmpeg} {
106    configure.args-append --enable-libpostproc
107}
108
109variant libquicktime description {enable support for QuickTime video} {
110# use only libquicktime-devel until libquicktime is upgraded to build
111# with ffmpeg-2.0
112#    depends_lib-append path:lib/libquicktime.dylib:libquicktime-devel
113    depends_lib-append port:libquicktime-devel
114    configure.args-append --enable-libquicktime
115}
116
117variant libtheora description {enable support for the open video codec theora} {
118    depends_lib-append port:libtheora
119    configure.args-append --enable-theora
120}
121
122variant libvorbis description {enable support for a fully open compressed audio format} {
123    depends_lib-append port:libvorbis
124    configure.args-append --enable-vorbis
125}
126
127variant libxml2 description {enable support for the XML metalanguage} {
128    depends_lib-append port:libxml2
129    configure.args-append --enable-libxml2
130}
131
132variant lzo requires experimental description {enable lossless data compression via lzo2 (experimental)} {
133    depends_lib-append port:lzo2
134    configure.args-append --enable-lzo --with-lzo-prefix=${prefix}
135}
136
137variant mjpegtools description {enable mjpegtools support} {
138    depends_lib-append port:mjpegtools
139    configure.args-append --enable-mjpegtools
140}
141
142variant x264 requires experimental description {enable support for encoding H264/AVC video (experimental)} {
143    depends_lib-append port:x264
144    configure.args-append --enable-x264
145}
146
147variant xvid requires experimental description {enable support for the open Xvid video codec (experimental)} {
148    depends_lib-append port:XviD
149    configure.args-append --enable-xvid --with-xvid-prefix=${prefix}
150}
151
152variant experimental description {enable new, experimental or even incomplete components} {
153    configure.args-append --enable-experimental
154}
155
156variant deprecated description {enable deprecated or even broken components} {
157    configure.args-append --enable-deprecated
158}
159
160#
161# Display options
162#
163
164variant libsdl description {enable Simple DirectMedia Layer display support} {
165    depends_lib-append port:libsdl
166    configure.args-append --enable-sdl
167}
168
169variant x11 {
170    depends_lib-append port:xorg-libXv
171    depends_lib-append port:xorg-libXaw
172    depends_lib-append port:xpm
173    configure.args-append --x-includes=${prefix}/include
174    configure.args-append --x-libraries=${prefix}/lib
175    configure.args-delete --without-x
176}
177
178default_variants +x11
179
180platform darwin {
181    configure.args-append --build=${build_arch}-apple-darwin${os.major}
182}
183
184livecheck.type  regex
185livecheck.url   ${master_sites}
186livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.