Ticket #41725: patch-vlc-2.1.3_2014Feb21_01.diff
File patch-vlc-2.1.3_2014Feb21_01.diff, 13.5 KB (added by ctreleaven (Craig Treleaven), 11 years ago) |
---|
-
Portfile
old new 1 1 # -*- coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 2 # $Id: Portfile 11 6083 2014-01-17 21:01:09Z devans@macports.org $2 # $Id: Portfile 114384 2013-12-06 23:14:44Z devans@macports.org $ 3 3 4 4 PortSystem 1.0 5 5 PortGroup compiler_blacklist_versions 1.0 6 6 7 7 name VLC 8 version 2.1.2 9 revision 1 8 version 2.1.3 10 9 categories multimedia 11 10 12 11 maintainers jeremyhu openmaintainer 13 description VLC is a cross-platformmedia player and streaming server12 description media player and streaming server 14 13 long_description VLC media player is a highly portable multimedia player for \ 15 14 various audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX, \ 16 15 mp3, ogg, ...) as well as DVDs, VCDs, and various streaming protocols. \ … … 34 33 distname vlc-${version} 35 34 use_xz yes 36 35 37 checksums md5 fb6787ad749aadcfaeab3471939b3426\38 sha1 2b0ef3a3767c56d64a2815c772c8b3f865018e70\39 rmd160 8e952218c2be5cb3ed0333ba776bd87477468a6336 checksums md5 56a489d093ffef9aa29809116985adba \ 37 sha1 de3e0b027bbb2dc2451992c428f2bed824128039 \ 38 rmd160 187337e0149cf9d86b6a4266128cbf0bc5bcf777 40 39 41 40 depends_build port:pkgconfig 42 41 … … 46 45 port:ncurses port:lua port:libpng port:jpeg port:tiff port:libebml \ 47 46 port:gnutls port:taglib port:libxml2 port:faad2 \ 48 47 port:x264 port:libtheora port:twolame port:libssh2 \ 49 port:libdvdnav port:libdvdread port:libproxy \ 50 port:fluidsynth port:libsamplerate port:libupnp \ 51 port:avahi path:lib/libavcodec.dylib:ffmpeg \ 52 port:openjpeg15 port:libbluray \ 53 port:libdc1394 port:libmpeg2 48 port:libdvdnav port:libdvdread port:libsamplerate port:libupnp \ 49 port:avahi path:lib/libavcodec.dylib:ffmpeg port:openjpeg15 port:libbluray \ 50 port:libdc1394 port:libmpeg2 port:dirac port:libass port:libsdl \ 51 port:libsdl_image port:schroedinger port:speex port:libmodplug \ 52 port:libmpcdec port:fontconfig port:freetype port:fribidi port:libdvbpsi 53 54 # extra deps found by port-depcheck.sh 55 depends_lib-append \ 56 port:XviD port:bzip2 port:gettext port:glib2 port:gmp \ 57 port:libgpg-error port:libiconv port:libidn port:libsndfile \ 58 port:libusb port:nettle port:openssl port:orc port:p11-kit \ 59 port:readline port:xorg-libX11 port:xorg-libXau port:xorg-libXdmcp \ 60 port:xorg-libXext port:xorg-libXrandr port:xorg-libxcb port:xrender 54 61 55 62 # TODO: live555 opencv FreeRDP 56 63 … … 79 86 post-patch { 80 87 reinplace "s:librsvg-2/librsvg:librsvg:" \ 81 88 ${worksrcpath}/modules/text_renderer/svg.c 82 83 set cxxstdlib {}84 85 if {[info exists configure.cxx_stdlib] &&86 ${configure.cxx_stdlib} ne {} &&87 [string match *clang* ${configure.cxx}]} {88 set cxxstdlib ${configure.cxx_stdlib}89 } elseif {[string match *clang* ${configure.cxx}] &&90 ${os.major} >= 13} {91 set cxxstdlib libc++92 } else {93 set cxxstdlib libstdc++94 }95 96 if {${cxxstdlib} == "libc++"} {97 reinplace "s:-lstdc\+\+:-lc++:" \98 ${worksrcpath}/configure.ac \99 ${worksrcpath}/modules/access/Makefile.am100 }101 89 } 102 90 103 91 use_autoreconf yes … … 107 95 depends_build-append port:libtool port:autoconf port:automake 108 96 109 97 configure.env-append CXXCPP="${configure.cxx} -E" 110 build.args-append DESTDIR=${worksrcpath}/dest_ignore V=198 build.args-append DESTDIR=${worksrcpath}/dest_ignore 111 99 112 100 # gl.c:121:3: error: Platform not recognized. 113 101 configure.cppflags-append -D__unix__=1 … … 122 110 configure.args-append \ 123 111 --with-contrib=${worksrcpath}/contrib \ 124 112 --disable-debug --disable-update-check --enable-gnutls \ 125 --disable-notify --disable- telepathy --disable-dbus \113 --disable-notify --disable-dbus \ 126 114 --disable-gnomevfs --disable-growl --disable-macosx-vlc-app \ 127 --enable-l ibproxy --enable-lua115 --enable-lua 128 116 129 117 # Input Plugins 130 118 # build fails when FreeRDP is installed 131 119 # build fails when opencv is installed 132 120 configure.args-append \ 133 --enable-dvdnav --enable-dvdread --disable-smb --disable-vcdx \121 --enable-dvdnav --enable-dvdread --disable-smbclient --disable-vcdx \ 134 122 --disable-macosx-qtkit --disable-macosx-eyetv --disable-realrtsp \ 135 123 --disable-libfreerdp --disable-opencv \ 136 124 --enable-sftp 137 125 138 126 # Mux/Demux Plugins 139 127 configure.args-append \ 140 -- disable-dvbpsi --enable-ogg --enable-mux_ogg \141 --enable-mkv -- disable-mod --disable-mpc --disable-shout128 --enable-dvbpsi --enable-ogg --enable-mux_ogg \ 129 --enable-mkv --enable-mod --enable-mpc --disable-shout 142 130 143 131 # Codec Plugins 144 132 configure.args-append \ 145 133 --enable-a52 --enable-faad --enable-flac --disable-live555 \ 146 --enable-opus --enable-vorbis --enable-ogg --enable-mad -- disable-libass \134 --enable-opus --enable-vorbis --enable-ogg --enable-mad --enable-libass \ 147 135 --enable-dca --enable-png --disable-quicktime --enable-twolame \ 148 136 --disable-speex --enable-theora --enable-x264 --enable-postproc \ 149 137 --enable-avcodec --enable-avformat --enable-swscale \ 150 -- enable-fluidsynth138 --disable-fluidsynth --enable-dirac --enable-schroedinger --enable-speex 151 139 152 140 # Video Plugins 153 141 configure.args-append \ 154 --disable-caca -- disable-sdl--disable-macosx-vout \142 --disable-caca --enable-sdl --enable-sdl-image --disable-macosx-vout \ 155 143 --without-x --disable-xcb --disable-xvideo --disable-glx \ 156 -- disable-fontconfig --disable-freetype --disable-fribidi \144 --enable-freetype --enable-fontconfig --enable-fribidi \ 157 145 --disable-svg 158 146 159 147 # Audio Plugins … … 163 151 # Interface Plugins 164 152 configure.args-append \ 165 153 --disable-macosx --disable-macosx-dialog-provider \ 166 --disable-qt 4--enable-ncurses --disable-skins2154 --disable-qt --enable-ncurses --disable-skins2 167 155 168 156 # Visualisations and Video Filter Plugins 169 157 configure.args-append \ … … 173 161 configure.args-append \ 174 162 --enable-bonjour --enable-upnp 175 163 176 variant jack description {Enable jack pluginfor audio output} {177 depends_lib-append port:jack 178 configure.args-delete --disable-jack 179 configure.args-append --enable-jack 164 variant jack description {Enable jack and fluidsynth plugins for audio output} { 165 depends_lib-append port:jack port:fluidsynth port:portaudio 166 configure.args-delete --disable-jack --disable-fluidsynth 167 configure.args-append --enable-jack --enable-fluidsynth 180 168 } 181 169 182 170 variant qtkit description {Enable qtcapture and qtaudio} { … … 184 172 configure.args-append --enable-macosx-qtkit 185 173 } 186 174 187 variant eyetv description {Enable eyetv plugin} {188 configure.args-delete --disable-macosx-eyetv189 configure.args-append --enable-macosx-eyetv190 }191 192 variant speex description {Enable Speex decoder support} {193 depends_lib-append path:lib/libspeex.dylib:speex194 configure.args-delete --disable-speex195 configure.args-append --enable-speex196 }197 198 175 variant svg description {Enable SVG support} { 199 176 depends_lib-append port:librsvg 200 177 configure.args-delete --disable-svg 201 178 configure.args-append --enable-svg 202 179 } 203 180 204 variant shout description {Enable Shoutcast support} {181 variant shout description {Enable Shoutcast/Icecast streaming output support} { 205 182 depends_lib-append port:libshout2 206 183 configure.args-delete --disable-shout 207 184 configure.args-append --enable-shout 208 185 } 209 186 210 variant vcd description {Enable VCD support} {187 variant vcd description {Enable support for playing Video CD} { 211 188 depends_lib-append port:vcdimager 212 189 configure.args-delete --disable-vcdx 213 190 configure.args-append --enable-vcdx 214 191 } 215 192 216 variant mod description {Enable MOD demuxer support} { 217 depends_lib-append port:libmodplug 218 configure.args-delete --disable-mod 219 configure.args-append --enable-mod 220 } 221 222 variant mpc description {enable Musepack Decoder library support} { 223 depends_lib-append port:libmpcdec 224 configure.args-delete --disable-mpc 225 configure.args-append --enable-mpc 226 } 227 228 variant dvb description {enable DVB Program Specific Information support} { 229 depends_lib-append port:libdvbpsi 230 configure.args-delete --disable-dvbpsi 231 configure.args-append --enable-dvbpsi 232 } 233 234 variant osd description {Enable onscreen display and TrueType font support} { 235 depends_lib-append port:fontconfig port:freetype 236 configure.args-delete --disable-freetype --disable-fontconfig 237 configure.args-append --enable-freetype --enable-fontconfig 238 } 239 240 variant fribidi requires osd description {Enable FriBidi Unicode support} { 241 depends_lib-append port:fribidi 242 configure.args-delete --disable-fribidi 243 configure.args-append --enable-fribidi 244 } 245 246 variant sdl description {Enable SDL/SDL-Image support} { 247 depends_lib-append port:libsdl port:libsdl_image 248 configure.args-delete --disable-sdl 249 configure.args-append --enable-sdl 250 } 251 252 variant smb description {Enable Samba 3 support} { 193 variant smb description {Enable Samba 3 input support} { 253 194 depends_lib-append port:samba3 254 configure.args-delete --disable-smb 255 configure.args-append --enable-smb 195 configure.args-delete --disable-smbclient 196 configure.args-append --enable-smbclient 256 197 configure.ldflags-append -L${prefix}/lib/samba3 257 198 } 258 199 259 variant x11 {200 variant x11 description {Build using X11 UI. Use at own risk} { 260 201 depends_lib-append \ 261 202 port:mesa \ 262 203 port:xorg-libXinerama \ … … 270 211 --enable-xvideo --enable-glx --enable-xcb 271 212 } 272 213 273 variant qt4 description {Build using QT4 UI. This will use qt4-mac } {274 configure.args-delete --disable-qt 4275 configure.args-append --enable-qt 4214 variant qt4 description {Build using QT4 UI. This will use qt4-mac. Experimental} { 215 configure.args-delete --disable-qt 216 configure.args-append --enable-qt 276 217 277 218 PortGroup qt4 1.0 278 219 … … 289 230 configure.args-append --enable-macosx --enable-macosx-dialog-provider 290 231 } 291 232 292 default_variants +mod +mpc +osd +quartz293 294 233 variant huge \ 295 requires dvb eyetv fribidi jack mod mpc osd sdl shout speexsvg vcd \234 requires jack shout svg vcd \ 296 235 description {Enable all variants except quartz, qt4, smb, and x11} {} 297 236 298 237 variant full \ … … 300 239 description {Enable all variants} {} 301 240 302 241 platform macosx { 303 default_variants-append +q tkit242 default_variants-append +quartz +qtkit 304 243 305 244 configure.args-delete \ 306 --disable-macosx-vout --disable-macosx-audio \245 --disable-macosx-vout --disable-macosx-audio --disable-macosx-eyetv \ 307 246 308 247 configure.args-append \ 309 --enable-macosx-vout --enable-macosx-audio \ 310 --with-macosx-sdk=/ 248 --enable-macosx-vout --enable-macosx-audio --enable-macosx-eyetv 311 249 312 250 if {[variant_isset qt4] || [variant_isset quartz]} { 313 251 configure.args-delete --disable-macosx-vlc-app … … 317 255 post-patch { 318 256 reinplace "s/Appkit/AppKit/" ${worksrcpath}/configure.ac 319 257 reinplace "/Sparkle.framework/d" \ 320 ${worksrcpath}/extras/package/macosx/vlc.xcodeproj/project.pbxproj 258 ${worksrcpath}/extras/package/macosx/vlc.xcodeproj/project.pbxproj 321 259 reinplace "/SDKROOT/d" \ 322 ${worksrcpath}/extras/package/macosx/vlc.xcodeproj/project.pbxproj 260 ${worksrcpath}/extras/package/macosx/vlc.xcodeproj/project.pbxproj 323 261 reinplace "/Growl.framework/d" \ 324 262 ${worksrcpath}/extras/package/macosx/package.mak 325 263 326 264 reinplace "s:LD_LIBRARY_PATH:DYLD_LIBRARY_PATH:g" \ 327 ${worksrcpath}/Makefile.am 265 ${worksrcpath}/Makefile.am 328 266 329 267 reinplace "/argv/s/environ/*_NSGetEnviron()/" \ 330 268 ${worksrcpath}/modules/misc/inhibit/xdg.c \ … … 344 282 eval file delete [glob ${destroot}${prefix}/lib/vlc/plugins/*/*.la] 345 283 346 284 if {[variant_isset qt4] || [variant_isset quartz]} { 347 file rename ${worksrcpath}/VLC.app ${destroot}${applications_dir}/VLC.app 348 349 # These are already in ${prefix}, so we don't need to bundle them as well 350 file delete -force ${destroot}${applications_dir}/VLC.app/Contents/Frameworks 351 file delete -force ${destroot}${applications_dir}/VLC.app/Contents/lib 352 353 # There's no need to install these into the bundle and the prefix 354 file delete -force ${destroot}${applications_dir}/VLC.app/Contents/MacOS/include 355 file delete -force ${destroot}${applications_dir}/VLC.app/Contents/MacOS/lib 356 file delete -force ${destroot}${applications_dir}/VLC.app/Contents/MacOS/plugins 357 358 # http://trac.macports.org/ticket/35131 359 ln -s ${prefix}/lib ${destroot}${applications_dir}/VLC.app/Contents/MacOS/lib 360 ln -s ${prefix}/lib/vlc/plugins ${destroot}${applications_dir}/VLC.app/Contents/MacOS/plugins 285 file copy ${worksrcpath}/VLC.app ${destroot}${applications_dir}/VLC.app 286 file copy ${worksrcpath}/modules/plugins.dat \ 287 ${destroot}${applications_dir}/VLC.app/Contents/MacOS/plugins/plugins.dat 361 288 } 362 289 } 363 290 }