1 | # $Id $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name VLC |
---|
6 | version 0.9.9 |
---|
7 | revision 0 |
---|
8 | |
---|
9 | categories multimedia |
---|
10 | |
---|
11 | maintainers inmachina.com:max openmaintainer |
---|
12 | description VLC is a cross-platform media player and streaming server |
---|
13 | long_description VLC media player is a highly portable multimedia player for \ |
---|
14 | various audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX, \ |
---|
15 | mp3, ogg, ...) as well as DVDs, VCDs, and various streaming protocols. \ |
---|
16 | It can also be used as a server to stream in unicast or multicast \ |
---|
17 | in IPv4 or IPv6 on a high-bandwidth network. |
---|
18 | |
---|
19 | platforms darwin |
---|
20 | |
---|
21 | homepage http://www.videolan.org |
---|
22 | master_sites http://download.videolan.org/pub/videolan/vlc/${version}/ |
---|
23 | distname vlc-${version} |
---|
24 | use_bzip2 yes |
---|
25 | |
---|
26 | checksums md5 b7c2a75194ad5c73979c3d880aebbe38 \ |
---|
27 | sha1 288afb5916c12f1bbffd36d3b897cb7e9b3da2b3 \ |
---|
28 | rmd160 eba9309d3594bcb8f2ae793f969e3ad05c74f7f6 |
---|
29 | |
---|
30 | # Remove LLVM for now. Only required for upcoming VLC 1.0.0 |
---|
31 | #depends_build-append port:llvm-gcc42 |
---|
32 | depends_lib-append 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 port:ffmpeg \ |
---|
37 | port:gnutls port:taglib |
---|
38 | |
---|
39 | patchfiles VLC-Makefile.in.diff VLC-x264.c.diff |
---|
40 | |
---|
41 | # VLC needs to be compiled with llvm-gcc frontend |
---|
42 | #configure.cc ${prefix}/bin/llvm-gcc-4.2 |
---|
43 | #configure.cpp ${prefix}/bin/llvm-cpp-4.2 |
---|
44 | #configure.cxx ${prefix}/bin/llvm-g++-4.2 |
---|
45 | #configure.objc ${prefix}/bin/llvm-gcc-4.2 |
---|
46 | |
---|
47 | build.target all |
---|
48 | destroot.target install VLC.app |
---|
49 | |
---|
50 | configure.args-append --disable-macosx-defaults \ |
---|
51 | --disable-debug --disable-x11 --disable-xvideo --disable-glx \ |
---|
52 | --disable-skins2 --disable-notify --disable-telepathy --disable-twolame \ |
---|
53 | --disable-speex --disable-theora --disable-x264 --disable-live555 --disable-dvbpsi \ |
---|
54 | --disable-vcdx --disable-fontconfig --disable-freetype \ |
---|
55 | --disable-dbus --disable-bonjour --disable-fribidi --disable-goom \ |
---|
56 | --disable-growl --disable-sdl --disable-caca --disable-smb \ |
---|
57 | --enable-release --enable-macosx --enable-a52 --enable-cddax \ |
---|
58 | --enable-dvdnav --enable-dvdread --enable-faad --enable-flac \ |
---|
59 | --enable-vorbis --enable-ogg --enable-mad --enable-libass --enable-asademux \ |
---|
60 | --enable-dca --enable-gnutls --enable-ncurses --enable-png --enable-realrtsp \ |
---|
61 | --with-macosx-version-min=10.4 |
---|
62 | |
---|
63 | variant x264 description {Enable H.264 en/decoding} { |
---|
64 | depends_lib-append port:x264 |
---|
65 | configure.args-delete --disable-x64 |
---|
66 | configure.args-append --enable-x264 |
---|
67 | } |
---|
68 | |
---|
69 | variant theora description {Enable OggTheora support} { |
---|
70 | depends_lib-append port:libtheora |
---|
71 | configure.args-delete --disable-theora |
---|
72 | configure.args-append --enable-theora |
---|
73 | } |
---|
74 | |
---|
75 | variant twolame description {Enable MPEG Audio Layer 2 encoding} { |
---|
76 | depends_lib-append port:twolame |
---|
77 | configure.args-delete --disable-twolame |
---|
78 | configure.args-append --enable-twolame |
---|
79 | } |
---|
80 | |
---|
81 | variant live555 description {Enable Live555 streaming media support} { |
---|
82 | depends_lib-append port:live555 |
---|
83 | configure.args-delete --disable-live555 |
---|
84 | configure.args-append --enable-live555 \ |
---|
85 | --with-live555-tree=${prefix}/lib/live |
---|
86 | } |
---|
87 | |
---|
88 | variant speex description {Enable Speex decoder support} { |
---|
89 | depends_lib-append port:speex |
---|
90 | configure.args-delete --disable-speex |
---|
91 | configure.args-append --enable-speex |
---|
92 | } |
---|
93 | |
---|
94 | variant svg description {Enable SVG support} { |
---|
95 | depends_lib-append port:librsvg |
---|
96 | configure.args-append --enable-svg |
---|
97 | } |
---|
98 | |
---|
99 | variant shout description {Enable Shoutcast support} { |
---|
100 | depends_lib-append port:libshout2 |
---|
101 | configure.args-append --enable-shout |
---|
102 | } |
---|
103 | |
---|
104 | variant vcd description {Enable VCD support} { |
---|
105 | depends_lib-append port:vcdimager |
---|
106 | configure.args-delete --disable-vcdx |
---|
107 | configure.args-append --enable-vcdx |
---|
108 | } |
---|
109 | |
---|
110 | variant mod description {Enable MOD demuxer support} { |
---|
111 | depends_lib-append port:libmodplug |
---|
112 | configure.args-delete --disable-mod |
---|
113 | configure.args-append --enable-mod |
---|
114 | } |
---|
115 | |
---|
116 | variant mpc description {enable Musepack Decoder library support} { |
---|
117 | depends_lib-append port:libmpcdec |
---|
118 | configure.args-delete --disable-mpc |
---|
119 | configure.args-append --enable-mpc |
---|
120 | } |
---|
121 | |
---|
122 | variant dvb description {enable DVB Program Specific Information support} { |
---|
123 | depends_lib-append port:libdvbpsi |
---|
124 | configure.args-delete --disable-dvbpsi |
---|
125 | configure.args-append --enable-dvbpsi |
---|
126 | } |
---|
127 | |
---|
128 | variant osd description {Enable onscreen display and TrueType font support} { |
---|
129 | depends_lib-append port:fontconfig port:freetype |
---|
130 | configure.args-delete --disable-fontconfig |
---|
131 | configure.args-delete --disable-freetype |
---|
132 | configure.args-append --enable-freetype |
---|
133 | } |
---|
134 | |
---|
135 | variant fribidi requires osd description {Enable FriBidi Unicode support} { |
---|
136 | depends_lib-append port:fribidi |
---|
137 | configure.args-delete --disable-fribidi |
---|
138 | configure.args-append --enable-fribidi |
---|
139 | } |
---|
140 | |
---|
141 | variant bonjour description {Enable Bonjour support} { |
---|
142 | depends_lib-append port:avahi |
---|
143 | configure.args-delete --disable-dbus --disable-bonjour |
---|
144 | configure.args-append --enable-dbus --enable-bonjour |
---|
145 | } |
---|
146 | |
---|
147 | variant sdl description {Enable SDL/SDL-Image support} { |
---|
148 | depends_lib-append port:libsdl port:libsdl_image |
---|
149 | configure.args-delete --disable-sdl |
---|
150 | configure.args-append --enable-sdl |
---|
151 | } |
---|
152 | |
---|
153 | variant smb description {Enable Samba 3 support} { |
---|
154 | depends_lib-append port:samba3 |
---|
155 | configure.args-append --enable-smb |
---|
156 | configure.ldflags-append -L${prefix}/lib/samba3 |
---|
157 | } |
---|
158 | |
---|
159 | variant no_dvd description {disable DVD and DeCSS support} { |
---|
160 | depends_lib-delete port:libdvdnav port:libdvdread |
---|
161 | configure.args-append --disable-dvdnav --disable-dvdread |
---|
162 | } |
---|
163 | |
---|
164 | variant no_ffmpeg description {disable FFmpeg support} { |
---|
165 | depends_lib-delete port:ffmpeg |
---|
166 | configure.args-append --disable-avcodec --disable-avformat \ |
---|
167 | --disable-postproc |
---|
168 | } |
---|
169 | |
---|
170 | variant x11 { |
---|
171 | depends_lib-append port:mesa \ |
---|
172 | port:xorg-libXinerama \ |
---|
173 | port:xorg-libXv \ |
---|
174 | port:xorg-libXxf86vm |
---|
175 | configure.args-delete --disable-x11 |
---|
176 | configure.args-append --enable-x11 |
---|
177 | configure.env-append PKG_CONFIG_PATH=${prefix}/lib/pkgconfig:${x11prefix}/lib/pkgconfig |
---|
178 | } |
---|
179 | |
---|
180 | variant aqua description {Install VLC.app} { |
---|
181 | destroot.target-append VLC.app |
---|
182 | } |
---|
183 | |
---|
184 | variant minimal description {VLC OSX minimal configuration} {} |
---|
185 | |
---|
186 | variant huge conflicts minimal \ |
---|
187 | requires svg vcd live555 speex dvb fribidi bonjour sdl shout \ |
---|
188 | description {Enable all variants except x11, smb and no_*} {} |
---|
189 | |
---|
190 | variant full requires huge x11 smb \ |
---|
191 | description {Enable all variants except no_*} {} |
---|
192 | |
---|
193 | # Unless minimal variant is set compile with default OSX configuration |
---|
194 | if {![variant_isset minimal]} { |
---|
195 | default_variants +aqua +x264 +theora +twolame +mod +mpc +osd |
---|
196 | } |
---|
197 | |
---|
198 | post-destroot { |
---|
199 | if {[variant_isset aqua]} { |
---|
200 | file mkdir ${destroot}/${applications_dir} |
---|
201 | file rename ${worksrcpath}/VLC.app ${destroot}/${applications_dir}/VLC.app |
---|
202 | } |
---|
203 | } |
---|