source: trunk/dports/multimedia/transcode/Portfile @ 125494

Last change on this file since 125494 was 125494, checked in by devans@…, 5 years ago

transcode: patch for ffmpeg 2.4 compatibility, increment revision to rebuild.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 6.1 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 125494 2014-09-18 20:53:06Z devans@macports.org $
3
4PortSystem 1.0
5
6name        transcode
7version     1.1.7
8revision    15
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
58configure.args  --disable-mmx \
59                --enable-libmpeg2 \
60                --enable-libmpeg2convert \
61                --without-x
62
63# Optional components
64
65universal_variant no
66
67variant mmx description {enable mmx optimizations} {
68     configure.args-delete --disable-mmx
69}
70
71variant 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} {
72}
73
74variant a52dec description {enable support for decoding ATSC A/52 streams} {
75    depends_lib-append port:a52dec
76    configure.args-append --enable-a52 --with-a52-prefix=${prefix}
77}
78
79variant faac requires experimental description {enable AAC encoding support via libfaac (experimental)} {
80    depends_lib-append port:faac
81    configure.args-append --enable-faac --with-faac-prefix=${prefix}
82}
83
84variant freetype description {enable support for the FreeType font engine} {
85    depends_lib-append port:freetype
86    configure.args-append --enable-freetype2
87}
88
89variant imagemagick description {enable support for the manipulation of still images} {
90    depends_lib-append port:ImageMagick
91    configure.args-append --enable-imagemagick --with-imagemagick-prefix=${prefix}
92}
93
94variant libdv description {enable support for the Digital Video format via libdv} {
95    depends_lib-append port:libdv
96    configure.args-append --enable-libdv
97}
98
99variant libogg description {enable support for encoding and decoding ogg audio} {
100    depends_lib-append port:libogg
101    configure.args-append --enable-ogg
102}
103
104variant libpostproc description {enable libpostproc support from ffmpeg} {
105    configure.args-append --enable-libpostproc
106}
107
108variant libquicktime description {enable support for QuickTime video} {
109# use only libquicktime-devel until libquicktime is upgraded to build
110# with ffmpeg-2.0
111#    depends_lib-append path:lib/libquicktime.dylib:libquicktime-devel
112    depends_lib-append port:libquicktime-devel
113    configure.args-append --enable-libquicktime
114}
115
116variant libtheora description {enable support for the open video codec theora} {
117    depends_lib-append port:libtheora
118    configure.args-append --enable-theora
119}
120
121variant libvorbis description {enable support for a fully open compressed audio format} {
122    depends_lib-append port:libvorbis
123    configure.args-append --enable-vorbis
124}
125
126variant libxml2 description {enable support for the XML metalanguage} {
127    depends_lib-append port:libxml2
128    configure.args-append --enable-libxml2
129}
130
131variant lzo requires experimental description {enable lossless data compression via lzo2 (experimental)} {
132    depends_lib-append port:lzo2
133    configure.args-append --enable-lzo --with-lzo-prefix=${prefix}
134}
135
136variant mjpegtools description {enable mjpegtools support} {
137    depends_lib-append port:mjpegtools
138    configure.args-append --enable-mjpegtools
139}
140
141variant x264 requires experimental description {enable support for encoding H264/AVC video (experimental)} {
142    depends_lib-append port:x264
143    configure.args-append --enable-x264
144}
145
146variant xvid requires experimental description {enable support for the open Xvid video codec (experimental)} {
147    depends_lib-append port:XviD
148    configure.args-append --enable-xvid --with-xvid-prefix=${prefix}
149}
150
151variant experimental description {enable new, experimental or even incomplete components} {
152    configure.args-append --enable-experimental
153}
154
155variant deprecated description {enable deprecated or even broken components} {
156    configure.args-append --enable-deprecated
157}
158
159#
160# Display options
161#
162
163variant libsdl description {enable Simple DirectMedia Layer display support} {
164    depends_lib-append port:libsdl
165    configure.args-append --enable-sdl
166}
167
168variant x11 {
169    depends_lib-append port:xorg-libXv
170    depends_lib-append port:xorg-libXaw
171    depends_lib-append port:xpm
172    configure.args-append --x-includes=${prefix}/include
173    configure.args-append --x-libraries=${prefix}/lib
174    configure.args-delete --without-x
175}
176
177default_variants +x11
178
179platform darwin {
180    configure.args-append --build=${build_arch}-apple-darwin${os.major}
181}
182
183livecheck.type  regex
184livecheck.url   ${master_sites}
185livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.