[49452] trunk/dports/multimedia

raimue at macports.org raimue at macports.org
Thu Apr 9 19:23:39 PDT 2009


Revision: 49452
          http://trac.macports.org/changeset/49452
Author:   raimue at macports.org
Date:     2009-04-09 19:23:39 -0700 (Thu, 09 Apr 2009)
Log Message:
-----------
multimedia/VLC:
New port, closes #15389

Added Paths:
-----------
    trunk/dports/multimedia/VLC/
    trunk/dports/multimedia/VLC/Portfile
    trunk/dports/multimedia/VLC/files/
    trunk/dports/multimedia/VLC/files/VLC-Makefile.in.diff
    trunk/dports/multimedia/VLC/files/VLC-x264.c.diff

Added: trunk/dports/multimedia/VLC/Portfile
===================================================================
--- trunk/dports/multimedia/VLC/Portfile	                        (rev 0)
+++ trunk/dports/multimedia/VLC/Portfile	2009-04-10 02:23:39 UTC (rev 49452)
@@ -0,0 +1,203 @@
+# $Id $
+
+PortSystem			1.0
+
+name				VLC
+version				0.9.9
+revision			0
+
+categories			multimedia
+
+maintainers			inmachina.com:max openmaintainer
+description			VLC is a cross-platform media player and streaming server
+long_description	VLC media player is a highly portable multimedia player for \
+					various audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX, \
+					mp3, ogg, ...) as well as DVDs, VCDs, and various streaming protocols. \
+					It can also be used as a server to stream in unicast or multicast \
+					in IPv4 or IPv6 on a high-bandwidth network. 
+
+platforms			darwin
+
+homepage			http://www.videolan.org
+master_sites		http://download.videolan.org/pub/videolan/vlc/${version}/
+distname			vlc-${version}
+use_bzip2			yes
+
+checksums           md5     b7c2a75194ad5c73979c3d880aebbe38 \
+                    sha1    288afb5916c12f1bbffd36d3b897cb7e9b3da2b3 \
+					rmd160  eba9309d3594bcb8f2ae793f969e3ad05c74f7f6
+
+# Remove LLVM for now. Only required for upcoming VLC 1.0.0
+#depends_build-append port:llvm-gcc42
+depends_lib-append	port:lame port:a52dec port:libogg port:flac \
+					port:libdca port:libcddb port:libcdio port:libmad \
+					port:libvorbis port:libmatroska port:libid3tag \
+					port:ncurses port:lua port:libpng port:jpeg \
+					port:libdvdplay port:libdvdnav port:ffmpeg \
+					port:gnutls port:taglib
+
+patchfiles			VLC-Makefile.in.diff VLC-x264.c.diff
+
+# VLC needs to be compiled with llvm-gcc frontend
+#configure.cc		${prefix}/bin/llvm-gcc-4.2
+#configure.cpp		${prefix}/bin/llvm-cpp-4.2
+#configure.cxx		${prefix}/bin/llvm-g++-4.2
+#configure.objc		${prefix}/bin/llvm-gcc-4.2
+
+build.target		all
+destroot.target		install VLC.app
+
+configure.args-append	--disable-macosx-defaults \
+	--disable-debug --disable-x11 --disable-xvideo --disable-glx \
+	--disable-skins2 --disable-notify --disable-telepathy --disable-twolame \
+	--disable-speex --disable-theora --disable-x264 --disable-live555 --disable-dvbpsi \
+	--disable-vcdx  --disable-fontconfig --disable-freetype \
+	--disable-dbus --disable-bonjour --disable-fribidi --disable-goom \
+	--disable-growl --disable-sdl --disable-caca --disable-smb \
+	--enable-release --enable-macosx --enable-a52 --enable-cddax \
+	--enable-dvdnav --enable-dvdread --enable-faad --enable-flac \
+	--enable-vorbis --enable-ogg --enable-mad --enable-libass --enable-asademux \
+	--enable-dca --enable-gnutls --enable-ncurses --enable-png --enable-realrtsp \
+	--with-macosx-version-min=10.4
+
+variant x264 description {Enable H.264 en/decoding} {
+	depends_lib-append 		port:x264
+    configure.args-delete   --disable-x64
+	configure.args-append 	--enable-x264
+}
+
+variant theora description {Enable OggTheora support} {
+    depends_lib-append      port:libtheora
+    configure.args-delete   --disable-theora
+    configure.args-append   --enable-theora
+}
+
+variant twolame description {Enable MPEG Audio Layer 2 encoding} {
+	depends_lib-append		port:twolame
+	configure.args-delete	--disable-twolame
+	configure.args-append	--enable-twolame
+}
+
+variant live555 description {Enable Live555 streaming media support} {
+	depends_lib-append		port:live555
+	configure.args-delete	--disable-live555
+	configure.args-append	--enable-live555 \
+							--with-live555-tree=${prefix}/lib/live
+}
+
+variant speex description {Enable Speex decoder support} {
+	depends_lib-append		port:speex
+	configure.args-delete	--disable-speex
+	configure.args-append	--enable-speex
+}
+
+variant svg description {Enable SVG support} {
+	depends_lib-append		port:librsvg
+	configure.args-append	--enable-svg
+}
+
+variant shout description {Enable Shoutcast support} {
+	depends_lib-append		port:libshout2
+	configure.args-append	--enable-shout
+}
+
+variant vcd description {Enable VCD support} {
+	depends_lib-append		port:vcdimager
+	configure.args-delete	--disable-vcdx
+	configure.args-append	--enable-vcdx
+}
+
+variant mod description {Enable MOD demuxer support} {
+	depends_lib-append		port:libmodplug
+	configure.args-delete	--disable-mod
+	configure.args-append	--enable-mod
+}
+
+variant mpc description {enable Musepack Decoder library support} {
+	depends_lib-append		port:libmpcdec
+	configure.args-delete	--disable-mpc
+	configure.args-append	--enable-mpc
+}
+
+variant dvb description {enable DVB Program Specific Information support} {
+	depends_lib-append		port:libdvbpsi
+	configure.args-delete	--disable-dvbpsi
+	configure.args-append	--enable-dvbpsi
+}
+
+variant osd description {Enable onscreen display and TrueType font support} {
+    depends_lib-append      port:fontconfig port:freetype
+    configure.args-delete   --disable-fontconfig
+    configure.args-delete   --disable-freetype
+    configure.args-append   --enable-freetype
+}
+
+variant fribidi requires osd description {Enable FriBidi Unicode support} {
+    depends_lib-append      port:fribidi
+    configure.args-delete   --disable-fribidi
+    configure.args-append   --enable-fribidi
+}
+
+variant bonjour description {Enable Bonjour support} {
+	depends_lib-append		port:avahi
+	configure.args-delete	--disable-dbus --disable-bonjour
+	configure.args-append	--enable-dbus --enable-bonjour
+}
+
+variant sdl description {Enable SDL/SDL-Image support} {
+	depends_lib-append			port:libsdl port:libsdl_image
+	configure.args-delete		--disable-sdl
+	configure.args-append		--enable-sdl
+}
+
+variant smb description {Enable Samba 3 support} {
+	depends_lib-append		port:samba3
+	configure.args-append	--enable-smb
+	configure.ldflags-append	-L${prefix}/lib/samba3
+}
+
+variant no_dvd description {disable DVD and DeCSS support} {
+	depends_lib-delete		port:libdvdnav port:libdvdread
+	configure.args-append	--disable-dvdnav --disable-dvdread
+}
+
+variant no_ffmpeg description {disable FFmpeg support} {
+	depends_lib-delete		port:ffmpeg
+	configure.args-append	--disable-avcodec --disable-avformat \
+							--disable-postproc
+}
+
+variant x11 {
+    depends_lib-append 		port:mesa \ 
+							port:xorg-libXinerama \
+    						port:xorg-libXv \
+    						port:xorg-libXxf86vm
+    configure.args-delete   --disable-x11
+    configure.args-append   --enable-x11
+    configure.env-append    PKG_CONFIG_PATH=${prefix}/lib/pkgconfig:${x11prefix}/lib/pkgconfig
+}
+
+variant aqua description {Install VLC.app} {
+	destroot.target-append  VLC.app
+}
+
+variant minimal description {VLC OSX minimal configuration} {}
+
+variant huge conflicts minimal \
+	requires svg vcd live555 speex dvb fribidi bonjour sdl shout \
+	description {Enable all variants except x11, smb and no_*} {}
+
+variant full requires huge x11 smb \
+	description {Enable all variants except no_*} {}
+
+# Unless minimal variant is set compile with default OSX configuration
+if {![variant_isset minimal]} {
+	default_variants +aqua +x264 +theora +twolame +mod +mpc +osd 
+}
+
+post-destroot {
+	if {[variant_isset aqua]} {
+		file mkdir ${destroot}/${applications_dir}
+		file rename ${worksrcpath}/VLC.app ${destroot}/${applications_dir}/VLC.app
+	}
+}


Property changes on: trunk/dports/multimedia/VLC/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/multimedia/VLC/files/VLC-Makefile.in.diff
===================================================================
--- trunk/dports/multimedia/VLC/files/VLC-Makefile.in.diff	                        (rev 0)
+++ trunk/dports/multimedia/VLC/files/VLC-Makefile.in.diff	2009-04-10 02:23:39 UTC (rev 49452)
@@ -0,0 +1,29 @@
+--- Makefile.in.orig	2009-04-04 03:32:07.000000000 +0200
++++ Makefile.in	2009-04-04 03:33:06.000000000 +0200
+@@ -928,7 +928,7 @@
+ DISTCLEANFILES = $(BUILT_SOURCES_distclean) vlc-config.in compile ChangeLog
+ 
+ # Create the MacOS X app
+- at BUILD_VLC_TRUE@@HAVE_DARWIN_TRUE at noinst_DATA = VLC.app
++ at BUILD_VLC_TRUE@@HAVE_DARWIN_TRUE at noinst_DATA =
+ @HAVE_BEOS_TRUE at noinst_DATA = vlc-bundle
+ 
+ ###############################################################################
+@@ -1539,7 +1539,7 @@
+ 	for i in vlc.xcodeproj Resources README.MacOSX.rtf ; do \
+ 	  cp -R $(srcdir)/extras/package/macosx/$$i $(top_builddir)/tmp/extras/package/macosx/; \
+ 	done
+-	REVISION=`git describe` && \
++	REVISION="$(VERSION_REVISION)" && \
+ 	cat $(top_builddir)/extras/package/macosx/Info.plist | \
+ 	sed "s/#REVISION#/$$REVISION/g" > $(top_builddir)/tmp/extras/package/macosx/Info.plist
+ 	cp -R $(top_builddir)/extras/package/macosx/Resources $(top_builddir)/tmp/extras/package/macosx/
+@@ -1706,7 +1706,7 @@
+ 	for i in vlc.xcodeproj Resources README.MacOSX.rtf; do \
+ 	  cp -R $(srcdir)/extras/package/macosx/$$i $(top_builddir)/tmp/extras/package/macosx/; \
+ 	done
+-	REVISION=`git describe` && \
++	REVISION="$(VERSION_REVISION)" && \
+ 	cat $(top_builddir)/extras/package/macosx/Info.plist | \
+ 	sed "s/#REVISION#/$$REVISION/g" > $(top_builddir)/tmp/extras/package/macosx/Info.plist
+ 	cp -R $(top_builddir)/extras/package/macosx/Resources $(top_builddir)/tmp/extras/package/macosx/

Added: trunk/dports/multimedia/VLC/files/VLC-x264.c.diff
===================================================================
--- trunk/dports/multimedia/VLC/files/VLC-x264.c.diff	                        (rev 0)
+++ trunk/dports/multimedia/VLC/files/VLC-x264.c.diff	2009-04-10 02:23:39 UTC (rev 49452)
@@ -0,0 +1,16 @@
+--- modules/codec/x264.c.orig	2009-04-04 02:07:20.000000000 +0200
++++ modules/codec/x264.c	2009-04-04 02:09:00.000000000 +0200
+@@ -957,9 +957,12 @@
+         p_sys->param.i_scenecut_threshold = val.i_int;
+ #endif
+ 
+-#if X264_BUILD >= 55 /* r607 */
++#if X264_BUILD >= 55 /* r607 */ && X264_BUILD < 67 /* r1117 */
+     var_Get( p_enc, SOUT_CFG_PREFIX "pre-scenecut", &val );
+     p_sys->param.b_pre_scenecut = val.b_bool;
++#endif
++
++#if X264_BUILD >= 55 /* r607 */
+     var_Get( p_enc, SOUT_CFG_PREFIX "non-deterministic", &val );
+     p_sys->param.b_deterministic = val.b_bool;
+ #endif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090409/357275c6/attachment-0001.html>


More information about the macports-changes mailing list