Ticket #20272: Portfile-1.0.0.diff
File Portfile-1.0.0.diff, 13.0 KB (added by max@…, 15 years ago) |
---|
-
multimedia/VLC/Portfile
old new 1 1 # $Id $ 2 2 3 PortSystem 3 PortSystem 1.0 4 4 5 name VLC 6 version 0.9.9a 7 revision 2 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 c8d832deeef7f4072a73506f8d033198 \ 27 sha1 c72a3aa7854292356c0c5149cbb732da7d46b163 \ 28 rmd160 c185b5e8dae8e8aacb6e1c03f14eae24cb805648 29 30 # Remove LLVM for now. Only required for upcoming VLC 1.0.0 31 #depends_build-append port:llvm-gcc42 32 depends_build port:autoconf port:automake port:libtool 33 depends_lib port:lame port:a52dec port:libogg port:flac \ 34 port:libdca port:libcddb port:libcdio port:libmad \ 35 port:libvorbis port:libmatroska port:libid3tag \ 36 port:ncurses port:lua port:libpng port:jpeg \ 37 port:libdvdplay port:libdvdnav port:ffmpeg \ 38 port:gnutls port:taglib port:libxml2 5 name VLC 6 version 1.0.0 39 7 40 patchfiles VLC-Makefile.am.patch 8 categories multimedia 41 9 42 use_autoreconf yes 43 autoreconf.args -fvi 10 maintainers inmachina.com:max openmaintainer 11 description VLC is a cross-platform media player and streaming server 12 long_description VLC media player is a highly portable multimedia player for \ 13 various audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX, \ 14 mp3, ogg, ...) as well as DVDs, VCDs, and various streaming protocols. \ 15 It can also be used as a server to stream in unicast or multicast \ 16 in IPv4 or IPv6 on a high-bandwidth network. 17 18 platforms darwin 19 20 homepage http://www.videolan.org 21 master_sites http://download.videolan.org/pub/videolan/vlc/${version}/ 22 distname vlc-${version} 23 use_bzip2 yes 24 25 checksums md5 fc78904ab5fa73f518d8fe4e852e7f67 \ 26 sha1 fff08528d97d26f6f7faeafba94b445e0e3562e8 \ 27 rmd160 7d0ed52c580c75d09003788f5a2d27b7de18b410 28 29 depends_build port:autoconf port:automake port:libtool \ 30 port:llvm-gcc42 31 depends_lib port:lame port:a52dec port:libogg port:flac \ 32 port:libdca port:libcddb port:libcdio port:libmad \ 33 port:libvorbis port:libmatroska port:libid3tag \ 34 port:ncurses port:lua port:libpng port:jpeg \ 35 port:libdvdplay port:libdvdnav port:ffmpeg \ 36 port:gnutls port:taglib port:libxml2 37 38 patchfiles Makefile.am.diff configure.ac-xcb.diff 39 40 use_autoreconf yes 41 autoreconf.args -fvi 44 42 45 43 # VLC needs to be compiled with llvm-gcc frontend 46 #configure.cc${prefix}/bin/llvm-gcc-4.247 #configure.cpp${prefix}/bin/llvm-cpp-4.248 #configure.cxx${prefix}/bin/llvm-g++-4.249 #configure.objc${prefix}/bin/llvm-gcc-4.244 configure.cc ${prefix}/bin/llvm-gcc-4.2 45 configure.cpp ${prefix}/bin/llvm-cpp-4.2 46 configure.cxx ${prefix}/bin/llvm-g++-4.2 47 configure.objc ${prefix}/bin/llvm-gcc-4.2 50 48 51 build.target 52 destroot.target 49 build.target all 50 destroot.target install 53 51 54 livecheck.url 55 livecheck.regex 52 livecheck.url http://download.videolan.org/pub/videolan/vlc/ 53 livecheck.regex <a href=\"(\\d\[\\d|\.|\\w\]+).*/\"> 56 54 57 55 # live555 and possibly others are not universal, so disabling for now 58 universal_variant no56 universal_variant no 59 57 60 configure.args-append --disable-macosx-defaults \ 61 --disable-debug --disable-x11 --disable-xvideo --disable-glx --disable-qt4 \ 62 --disable-skins2 --disable-notify --disable-telepathy --disable-twolame \ 63 --disable-speex --disable-theora --disable-x264 --disable-live555 --disable-dvbpsi \ 64 --disable-vcdx --disable-fontconfig --disable-freetype \ 65 --disable-dbus --disable-bonjour --disable-fribidi --disable-goom \ 66 --disable-growl --disable-sdl --disable-caca --disable-smb \ 67 --enable-release --enable-macosx --enable-a52 --enable-cddax \ 68 --enable-dvdnav --enable-dvdread --enable-faad --enable-flac \ 69 --enable-vorbis --enable-ogg --enable-mad --enable-libass --enable-asademux \ 70 --enable-dca --enable-gnutls --enable-ncurses --enable-png --enable-realrtsp \ 71 --with-macosx-version-min=10.4 58 configure.args-append --disable-macosx-defaults \ 59 --enable-release --enable-macosx --enable-macosx-audio --enable-a52 --enable-cddax \ 60 --enable-dvdnav --enable-dvdread --enable-faad --enable-flac --enable-quicktime \ 61 --enable-vorbis --enable-ogg --enable-mad --disable-libass --enable-asademux \ 62 --enable-dca --enable-gnutls --enable-ncurses --enable-png --enable-realrtsp \ 63 --with-macosx-version-min=10.5 \ 64 --disable-debug --disable-x11 --disable-xvideo --disable-glx --disable-xinerama \ 65 --disable-xcb --disable-xvmc --disable-qt4 \ 66 --disable-skins2 --disable-notify --disable-telepathy --disable-twolame \ 67 --disable-speex --disable-theora --disable-x264 --disable-live555 --disable-dvbpsi \ 68 --disable-vcdx --disable-fontconfig --disable-freetype \ 69 --disable-dbus --disable-bonjour --disable-fribidi --disable-goom \ 70 --disable-growl --disable-sdl --disable-caca --disable-smb \ 71 --disable-update-check --without-x 72 72 73 73 variant x264 description {Enable H.264 en/decoding} { 74 depends_lib-appendport:x26475 76 configure.args-append--enable-x26474 depends_lib-append port:x264 75 configure.args-delete --disable-x264 76 configure.args-append --enable-x264 77 77 } 78 78 79 79 variant theora description {Enable OggTheora support} { … … 83 83 } 84 84 85 85 variant twolame description {Enable MPEG Audio Layer 2 encoding} { 86 depends_lib-appendport:twolame87 configure.args-delete--disable-twolame88 configure.args-append--enable-twolame86 depends_lib-append port:twolame 87 configure.args-delete --disable-twolame 88 configure.args-append --enable-twolame 89 89 } 90 90 91 91 variant live555 description {Enable Live555 streaming media support} { 92 depends_lib-appendport:live55593 configure.args-delete--disable-live55594 configure.args-append--enable-live555 \95 92 depends_lib-append port:live555 93 configure.args-delete --disable-live555 94 configure.args-append --enable-live555 \ 95 --with-live555-tree=${prefix}/lib/live 96 96 } 97 97 98 98 variant speex description {Enable Speex decoder support} { 99 depends_lib-appendpath:lib/libspeex.dylib:speex100 configure.args-delete--disable-speex101 configure.args-append--enable-speex99 depends_lib-append path:lib/libspeex.dylib:speex 100 configure.args-delete --disable-speex 101 configure.args-append --enable-speex 102 102 } 103 103 104 104 variant svg description {Enable SVG support} { 105 depends_lib-appendport:librsvg106 configure.args-append--enable-svg105 depends_lib-append port:librsvg 106 configure.args-append --enable-svg 107 107 } 108 108 109 109 variant shout description {Enable Shoutcast support} { 110 depends_lib-appendport:libshout2111 configure.args-append--enable-shout110 depends_lib-append port:libshout2 111 configure.args-append --enable-shout 112 112 } 113 113 114 114 variant vcd description {Enable VCD support} { 115 depends_lib-appendport:vcdimager116 configure.args-delete--disable-vcdx117 configure.args-append--enable-vcdx115 depends_lib-append port:vcdimager 116 configure.args-delete --disable-vcdx 117 configure.args-append --enable-vcdx 118 118 } 119 119 120 120 variant mod description {Enable MOD demuxer support} { 121 depends_lib-appendport:libmodplug122 configure.args-delete--disable-mod123 configure.args-append--enable-mod121 depends_lib-append port:libmodplug 122 configure.args-delete --disable-mod 123 configure.args-append --enable-mod 124 124 } 125 125 126 126 variant mpc description {enable Musepack Decoder library support} { 127 depends_lib-appendport:libmpcdec128 configure.args-delete--disable-mpc129 configure.args-append--enable-mpc127 depends_lib-append port:libmpcdec 128 configure.args-delete --disable-mpc 129 configure.args-append --enable-mpc 130 130 } 131 131 132 132 variant dvb description {enable DVB Program Specific Information support} { 133 depends_lib-appendport:libdvbpsi134 configure.args-delete--disable-dvbpsi135 configure.args-append--enable-dvbpsi133 depends_lib-append port:libdvbpsi 134 configure.args-delete --disable-dvbpsi 135 configure.args-append --enable-dvbpsi 136 136 } 137 137 138 138 variant osd description {Enable onscreen display and TrueType font support} { … … 148 148 configure.args-append --enable-fribidi 149 149 } 150 150 151 # avahi port is currently broken, so this variant is removed 152 # from +huge 151 153 variant bonjour description {Enable Bonjour support} { 152 depends_lib-appendport:avahi153 configure.args-delete--disable-dbus --disable-bonjour154 configure.args-append--enable-dbus --enable-bonjour154 depends_lib-append port:avahi 155 configure.args-delete --disable-dbus --disable-bonjour 156 configure.args-append --enable-dbus --enable-bonjour 155 157 } 156 158 157 159 variant sdl description {Enable SDL/SDL-Image support} { 158 depends_lib-appendport:libsdl port:libsdl_image159 configure.args-delete--disable-sdl160 configure.args-append--enable-sdl160 depends_lib-append port:libsdl port:libsdl_image 161 configure.args-delete --disable-sdl 162 configure.args-append --enable-sdl 161 163 } 162 164 163 165 variant smb description {Enable Samba 3 support} { 164 depends_lib-appendport:samba3165 configure.args-delete--disable-smb166 configure.args-append--enable-smb167 configure.ldflags-append-L${prefix}/lib/samba3166 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 168 170 } 169 171 170 172 variant no_dvd description {disable DVD and DeCSS support} { 171 depends_lib-deleteport:libdvdnav port:libdvdread172 configure.args-append--disable-dvdnav --disable-dvdread173 depends_lib-delete port:libdvdnav port:libdvdread 174 configure.args-append --disable-dvdnav --disable-dvdread 173 175 } 174 176 175 177 variant no_ffmpeg description {disable FFmpeg support} { 176 depends_lib-deleteport:ffmpeg177 configure.args-append--disable-avcodec --disable-avformat \178 --disable-postproc 178 depends_lib-delete port:ffmpeg 179 configure.args-append --disable-avcodec --disable-avformat \ 180 --disable-postproc --disable-swscale 179 181 } 180 182 181 183 variant x11 description {Build support for X11} { 182 184 depends_lib-append \ 183 port:mesa \ 184 port:xorg-libXinerama \ 185 port:xorg-libXv \ 186 port:xorg-libXxf86vm 187 188 configure.args-delete --disable-x11 --disable-xvideo --disable-glx 189 configure.args-append --enable-x11 --enable-xvideo --enable-glx 185 port:mesa \ 186 port:xorg-libXinerama \ 187 port:xorg-libXv \ 188 port:xorg-libXxf86vm 189 190 configure.args-delete --disable-x11 --disable-xvideo --disable-glx --disable-xinerama --disable-xcb 191 configure.args-append --enable-x11 --enable-xvideo --enable-glx --enable-xinerama --enable-xcb 192 patchfiles-delete configure.ac-xcb.diff 190 193 } 191 194 192 195 variant qt4 description {Build using QT4 UI. This will use qt4-x11 if +x11 and qt4-mac otherwise.} { … … 208 211 } 209 212 210 213 platform macosx { 211 214 destroot.target-append VLC.app 212 215 } 213 216 214 217 variant minimal description {VLC OSX minimal configuration} {} 215 218 216 219 variant huge conflicts minimal \ 217 requires svg vcd live555 speex dvb fribidi bonjoursdl shout \218 220 requires svg vcd live555 speex dvb fribidi sdl shout \ 221 description {Enable all variants except x11, qt4, smb and no_*} {} 219 222 220 223 variant full requires huge qt4 smb \ 221 224 description {Enable all variants except x11 and no_*} {} 222 225 223 226 # Unless minimal variant is set compile with default OSX configuration 224 227 if {![variant_isset minimal]} { 225 default_variants +aqua +x264 +theora +twolame +mod +mpc +osd 228 default_variants +x264 +theora +twolame +mod +mpc +osd 226 229 } 227 230 228 231 if {[variant_isset x11]} { 229 232 default_variants-append +qt4 230 233 } 231 234 232 235 post-destroot { 233 234 235 236 236 if {[variant_isset macosx]} { 237 file mkdir ${destroot}/${applications_dir} 238 file rename ${worksrcpath}/VLC.app ${destroot}/${applications_dir}/VLC.app 239 } 237 240 }