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

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

audio/taglib upgraded version from 1.7.2 to 1.8, incremented revision of 19 dependent ports due to .dylib change

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