source: trunk/dports/multimedia/VLC09/Portfile @ 77147

Last change on this file since 77147 was 77147, checked in by rmstonecipher@…, 9 years ago

audio/taglib upgraded version from 1.6.3 to 1.7, incremented revision of 15 dependents

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 8.3 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id $
3
4PortSystem          1.0
5
6name                VLC09
7version             0.9.10
8revision            6
9
10categories          multimedia
11
12maintainers         mnick openmaintainer
13description         VLC is a cross-platform media player and streaming server
14long_description    VLC media player is a highly portable multimedia player for \
15                    various audio and video formats. This is the 0.9 branch of VLC \
16                    and intended for Mac OS X 10.4. On 10.5+ the 'VLC' port is recommended \
17                    instead
18license             GPL
19
20platforms           darwin
21conflicts           VLC
22
23homepage            http://www.videolan.org
24master_sites        http://download.videolan.org/pub/videolan/vlc/${version}/
25distname            vlc-${version}
26use_bzip2           yes
27
28checksums           md5     5035b2ea8f88ff6ee92b0a9feaed8c7c \
29                    sha1    8b562a5327c358a332f97d9012702ca2b445c0ed \
30                    rmd160  25a96098e3507d48f7d62d1b2f3a1138c2004832
31
32depends_lib     port:lame port:a52dec port:libogg port:flac \
33                port:libdca port:libcddb port:libcdio port:libmad \
34                port:libvorbis port:libmatroska port:libid3tag \
35                port:ncurses port:lua port:libpng port:jpeg \
36                port:libdvdplay port:libdvdnav path:lib/libavcodec.dylib:ffmpeg \
37                port:gnutls port:taglib port:libxml2 port:faad2
38
39patchfiles      patch-Makefile.am.diff
40
41use_autoreconf yes
42autoreconf.args -fvi
43
44build.target    all
45destroot.target install
46
47livecheck.url   http://download.videolan.org/pub/videolan/vlc/
48livecheck.regex <a href=\"(0\.9\.\[\\d|\.|\\w\]+).*/\">
49
50# live555 and possibly others are not universal, so disabling for now
51universal_variant   no
52
53configure.args-append   --disable-macosx-defaults \
54    --enable-release --enable-macosx --enable-macosx-audio --enable-a52 --enable-cddax \
55    --enable-dvdnav --enable-dvdread --enable-faad --enable-flac --enable-quicktime \
56    --enable-vorbis --enable-ogg --enable-mad --disable-libass --enable-asademux \
57    --enable-dca --enable-gnutls --enable-ncurses --enable-png --enable-realrtsp \
58    --with-macosx-version-min=${macosx_deployment_target} \
59    --disable-debug --disable-x11 --disable-xvideo --disable-glx --disable-xinerama \
60    --disable-xcb --disable-xvmc --disable-qt4 \
61    --disable-skins2 --disable-notify --disable-telepathy --disable-twolame \
62    --disable-speex --disable-theora --disable-x264 --disable-live555 --disable-dvbpsi \
63    --disable-vcdx  --disable-fontconfig --disable-freetype \
64    --disable-dbus --disable-bonjour --disable-fribidi --disable-goom \
65    --disable-growl --disable-sdl --disable-caca --disable-smb \
66    --disable-update-check --without-x
67
68variant x264 description {Enable H.264 en/decoding} {
69    depends_lib-append      port:x264
70    configure.args-delete   --disable-x264
71    configure.args-append   --enable-x264
72}
73
74variant theora description {Enable OggTheora support} {
75    depends_lib-append      port:libtheora
76    configure.args-delete   --disable-theora
77    configure.args-append   --enable-theora
78}
79
80variant twolame description {Enable MPEG Audio Layer 2 encoding} {
81    depends_lib-append      port:twolame
82    configure.args-delete   --disable-twolame
83    configure.args-append   --enable-twolame
84}
85
86variant live555 description {Enable Live555 streaming media support} {
87    depends_lib-append      port:live555
88    configure.args-delete   --disable-live555
89    configure.args-append   --enable-live555 \
90                            --with-live555-tree=${prefix}/lib/live
91}
92
93variant speex description {Enable Speex decoder support} {
94    depends_lib-append      path:lib/libspeex.dylib:speex
95    configure.args-delete   --disable-speex
96    configure.args-append   --enable-speex
97}
98
99variant svg description {Enable SVG support} {
100    depends_lib-append      port:librsvg
101    configure.args-append   --enable-svg
102}
103
104variant shout description {Enable Shoutcast support} {
105    depends_lib-append      port:libshout2
106    configure.args-append   --enable-shout
107}
108
109variant vcd description {Enable VCD support} {
110    depends_lib-append      port:vcdimager
111    configure.args-delete   --disable-vcdx
112    configure.args-append   --enable-vcdx
113}
114
115variant mod description {Enable MOD demuxer support} {
116    depends_lib-append      port:libmodplug
117    configure.args-delete   --disable-mod
118    configure.args-append   --enable-mod
119}
120
121variant mpc description {enable Musepack Decoder library support} {
122    depends_lib-append      port:libmpcdec
123    configure.args-delete   --disable-mpc
124    configure.args-append   --enable-mpc
125}
126
127variant dvb description {enable DVB Program Specific Information support} {
128    depends_lib-append      port:libdvbpsi
129    configure.args-delete   --disable-dvbpsi
130    configure.args-append   --enable-dvbpsi
131}
132
133variant osd description {Enable onscreen display and TrueType font support} {
134    depends_lib-append      port:fontconfig port:freetype
135    configure.args-delete   --disable-fontconfig
136    configure.args-delete   --disable-freetype
137    configure.args-append   --enable-freetype
138}
139
140variant fribidi requires osd description {Enable FriBidi Unicode support} {
141    depends_lib-append      port:fribidi
142    configure.args-delete   --disable-fribidi
143    configure.args-append   --enable-fribidi
144}
145
146# avahi port is currently broken, so this variant is removed
147# from +huge
148variant bonjour description {Enable Bonjour support} {
149    depends_lib-append      port:avahi
150    configure.args-delete   --disable-dbus --disable-bonjour
151    configure.args-append   --enable-dbus --enable-bonjour
152}
153
154variant sdl description {Enable SDL/SDL-Image support} {
155    depends_lib-append          path:lib/pkgconfig/sdl.pc:libsdl port:libsdl_image
156    configure.args-delete       --disable-sdl
157    configure.args-append       --enable-sdl
158}
159
160variant smb description {Enable Samba 3 support} {
161    depends_lib-append      port:samba3
162    configure.args-delete   --disable-smb
163    configure.args-append   --enable-smb
164    configure.ldflags-append    -L${prefix}/lib/samba3
165}
166
167variant no_dvd description {disable DVD and DeCSS support} {
168    depends_lib-delete      port:libdvdnav port:libdvdread
169    configure.args-append   --disable-dvdnav --disable-dvdread
170}
171
172variant no_ffmpeg description {disable FFmpeg support} {
173    depends_lib-delete      port:ffmpeg
174    configure.args-append   --disable-avcodec --disable-avformat \
175                            --disable-postproc --disable-swscale
176}
177
178variant x11 description {Build support for X11} {
179    depends_lib-append \
180    port:mesa \
181    port:xorg-libXinerama \
182    port:xorg-libXv \
183    port:xorg-libXxf86vm
184
185    configure.args-delete   --disable-x11 --disable-xvideo --disable-glx --disable-xinerama --disable-xcb
186    configure.args-append   --enable-x11 --enable-xvideo --enable-glx --enable-xinerama --enable-xcb
187    patchfiles-delete       patch-configure.ac-xcb.diff
188}
189
190variant qt4 description {Build using QT4 UI.  This will use qt4-x11 if +x11 and qt4-mac otherwise.} {
191    configure.args-delete --disable-qt4
192    configure.args-append --enable-qt4
193
194    if {[variant_isset x11]} {
195        depends_lib-append port:qt4-x11
196        patchfiles-append patch-qt4-x11.diff
197        set qt_dir ${prefix}/libexec/qt4-x11
198        configure.cppflags-append -D__USE_WS_X11__
199        configure.env-append QTDIR=${qt_dir}
200        set env(PATH) "${qt_dir}/bin:$env(PATH)"
201        configure.pkg_config_path "${configure.pkg_config_path}:${qt_dir}/lib/pkgconfig"
202    } else {
203        PortGroup qt4 1.0
204    }
205}
206
207platform macosx {
208    destroot.target-append  VLC.app
209    post-destroot {
210        file rename ${worksrcpath}/VLC.app ${destroot}${applications_dir}/VLC09.app
211    }
212}
213
214variant minimal description {VLC Mac OS X minimal configuration} {}
215
216variant huge conflicts minimal \
217    requires svg vcd live555 speex dvb fribidi sdl shout \
218    description {Enable all variants except x11, qt4, smb and no_*} {}
219
220variant full requires huge qt4 smb \
221    description {Enable all variants except x11 and no_*} {}
222
223# Unless minimal variant is set compile with default Mac OS X configuration
224if {![variant_isset minimal]} {
225    default_variants +x264 +theora +twolame +mod +mpc +osd
226}
227
228if {[variant_isset x11]} {
229    default_variants-append +qt4
230}
Note: See TracBrowser for help on using the repository browser.