diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-05-06 18:32:38 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-05-06 22:14:58 +0700 |
commit | 45c69ef9d7bd7e40bd761d965107bced71abb8c0 (patch) | |
tree | d4611b856aaaef3cbcdf3ad71dfb2a869a96e270 | |
parent | 42754fa6b2c7971c7db0bdda50ce9bbc1e5b5a62 (diff) | |
download | slackbuilds-45c69ef9d7bd7e40bd761d965107bced71abb8c0.tar.gz |
multimedia/vlc: Downgraded to 2.1.6.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | multimedia/vlc/README | 4 | ||||
-rw-r--r-- | multimedia/vlc/patch-freerdp.diff | 76 | ||||
-rw-r--r-- | multimedia/vlc/patch-freerdp_1_2.diff (renamed from multimedia/vlc/patch-freerdp_vlc221.diff) | 23 | ||||
-rw-r--r-- | multimedia/vlc/vlc.SlackBuild | 5 | ||||
-rw-r--r-- | multimedia/vlc/vlc.info | 8 |
5 files changed, 104 insertions, 12 deletions
diff --git a/multimedia/vlc/README b/multimedia/vlc/README index 30b6ce952d..8f2ec4d02a 100644 --- a/multimedia/vlc/README +++ b/multimedia/vlc/README @@ -8,12 +8,12 @@ transcode multimedia files and save them into various formats. This build aims to support as many options as possible using the SlackBuilds listed in the REQUIRES field of the vlc.info file. No script changes are necessary to include particular options; if they -are detected at at build time, they will be included. Conversely if +are detected at build time, they will be included. Conversely if optional packages are not available at build time, vlc will continue to build with a reduced feature set. This SlackBuild also builds in support for BlackMagic Design's "Decklink" -range of video inout and output cards, including those with UHD (3840x2160) +range of video input and output cards, including those with UHD (3840x2160) capability. Please advise the maintainer to suggest support for any further options. diff --git a/multimedia/vlc/patch-freerdp.diff b/multimedia/vlc/patch-freerdp.diff new file mode 100644 index 0000000000..c1f4f23295 --- /dev/null +++ b/multimedia/vlc/patch-freerdp.diff @@ -0,0 +1,76 @@ +--- modules/access/rdp.c.orig 2013-06-24 18:00:38.000000000 +0000 ++++ modules/access/rdp.c 2014-08-14 07:20:03.000000000 +0000 +@@ -41,6 +41,22 @@ + #include <freerdp/channels/channels.h> + #include <freerdp/gdi/gdi.h> + ++#if !defined(FREERDP_INTERFACE_VERSION) ++# include <freerdp/version.h> ++#endif ++ ++#if !defined(FREERDP_VERSION_MAJOR) || \ ++ (defined(FREERDP_VERSION_MAJOR) && !(FREERDP_VERSION_MAJOR >= 1 && FREERDP_VERSION_MINOR >= 1 )) ++# define SoftwareGdi sw_gdi ++# define Fullscreen fullscreen ++# define ServerHostname hostname ++# define Username username ++# define Password password ++# define ServerPort port ++# define EncryptionMethods encryption ++# define ContextSize context_size ++#endif ++ + #include <errno.h> + #ifdef HAVE_POLL + # include <poll.h> +@@ -198,15 +214,15 @@ + demux_sys_t *p_sys = p_vlccontext->p_demux->p_sys; + + /* Configure connexion */ +- p_instance->settings->sw_gdi = true; /* render in buffer */ +- p_instance->settings->fullscreen = true; +- p_instance->settings->hostname = strdup( p_sys->psz_hostname ); +- p_instance->settings->username = ++ p_instance->settings->SoftwareGdi = true; /* render in buffer */ ++ p_instance->settings->Fullscreen = true; ++ p_instance->settings->ServerHostname = strdup( p_sys->psz_hostname ); ++ p_instance->settings->Username = + var_InheritString( p_vlccontext->p_demux, CFG_PREFIX "user" ); +- p_instance->settings->password = ++ p_instance->settings->Password = + var_InheritString( p_vlccontext->p_demux, CFG_PREFIX "password" ); +- p_instance->settings->port = p_sys->i_port; +- p_instance->settings->encryption = ++ p_instance->settings->ServerPort = p_sys->i_port; ++ p_instance->settings->EncryptionMethods = + var_InheritBool( p_vlccontext->p_demux, CFG_PREFIX "encrypt" ); + + return true; +@@ -217,9 +233,16 @@ + vlcrdp_context_t * p_vlccontext = (vlcrdp_context_t *) p_instance->context; + + msg_Dbg( p_vlccontext->p_demux, "connected to desktop %dx%d (%d bpp)", ++#if (FREERDP_VERSION_MAJOR >= 1 && FREERDP_VERSION_MINOR >= 1 ) ++ p_instance->settings->DesktopWidth, ++ p_instance->settings->DesktopHeight, ++ p_instance->settings->ColorDepth ++#else + p_instance->settings->width, + p_instance->settings->height, +- p_instance->settings->color_depth ); ++ p_instance->settings->color_depth ++#endif ++ ); + + p_instance->update->DesktopResize = desktopResizeHandler; + p_instance->update->BeginPaint = beginPaintHandler; +@@ -415,7 +438,7 @@ + p_sys->p_instance->Authenticate = authenticateHandler; + + /* Set up context handlers and let it be allocated */ +- p_sys->p_instance->context_size = sizeof( vlcrdp_context_t ); ++ p_sys->p_instance->ContextSize = sizeof( vlcrdp_context_t ); + freerdp_context_new( p_sys->p_instance ); + + vlcrdp_context_t * p_vlccontext = (vlcrdp_context_t *) p_sys->p_instance->context; +diff -Nru vlc-2.1.5/modules/access/rtp/input.c vlc-2.2.0~pre2/modules/access/rtp/input.c diff --git a/multimedia/vlc/patch-freerdp_vlc221.diff b/multimedia/vlc/patch-freerdp_1_2.diff index df3e5c683d..743501d7d2 100644 --- a/multimedia/vlc/patch-freerdp_vlc221.diff +++ b/multimedia/vlc/patch-freerdp_1_2.diff @@ -1,5 +1,5 @@ ---- modules/access/rdp.c.orig 2015-04-28 21:38:25.117593997 +1000 -+++ modules/access/rdp.c 2015-04-28 21:42:40.133609568 +1000 +--- modules/access/rdp.c.orig 2015-02-21 11:01:32.145593444 +1000 ++++ modules/access/rdp.c 2015-02-21 10:34:14.875061312 +1000 @@ -83,7 +83,7 @@ set_category( CAT_INPUT ) set_subcategory( SUBCAT_INPUT_ACCESS ) @@ -18,7 +18,22 @@ p_instance->settings->DesktopWidth, p_instance->settings->DesktopHeight, p_instance->settings->ColorDepth -@@ -428,7 +428,9 @@ +@@ -248,7 +248,13 @@ + p_instance->update->BeginPaint = beginPaintHandler; + p_instance->update->EndPaint = endPaintHandler; + +- gdi_init( p_instance, CLRBUF_16BPP | CLRBUF_24BPP | CLRBUF_32BPP, NULL ); ++ gdi_init( p_instance, ++ CLRBUF_16BPP | ++#if defined(FREERDP_VERSION_MAJOR) && defined(FREERDP_VERSION_MINOR) && \ ++ !(FREERDP_VERSION_MAJOR > 1 || (FREERDP_VERSION_MAJOR == 1 && FREERDP_VERSION_MINOR >= 2)) ++ CLRBUF_24BPP | ++#endif ++ CLRBUF_32BPP, NULL ); + + desktopResizeHandler( p_instance->context ); + return true; +@@ -422,7 +428,9 @@ if ( p_sys->f_fps <= 0 ) p_sys->f_fps = 1.0; p_sys->i_frame_interval = 1000000 / p_sys->f_fps; @@ -28,7 +43,7 @@ p_sys->p_instance = freerdp_new(); if ( !p_sys->p_instance ) -@@ -504,7 +506,9 @@ +@@ -498,7 +506,9 @@ freerdp_disconnect( p_sys->p_instance ); freerdp_free( p_sys->p_instance ); diff --git a/multimedia/vlc/vlc.SlackBuild b/multimedia/vlc/vlc.SlackBuild index 7ab8d178b8..0a2f924d7a 100644 --- a/multimedia/vlc/vlc.SlackBuild +++ b/multimedia/vlc/vlc.SlackBuild @@ -28,7 +28,7 @@ # ----------------------------------------------------------------------------- PRGNAM=vlc -VERSION=${VERSION:-2.2.1} +VERSION=${VERSION:-2.1.6} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -85,7 +85,8 @@ mkdir -p decklink/include unzip -o $CWD/$DECKLINKSDK cp -p Blackmagic\ DeckLink\ SDK\ ${DECKLINK_SDK_VERSION}/Linux/include/* decklink/include/ -patch -p0 < $CWD/patch-freerdp_vlc221.diff +patch -p0 < $CWD/patch-freerdp.diff +patch -p0 < $CWD/patch-freerdp_1_2.diff patch -p0 < $CWD/patch-projectM-fontpath.diff chown -R root:root . diff --git a/multimedia/vlc/vlc.info b/multimedia/vlc/vlc.info index 29058e30fa..3a6eb8606c 100644 --- a/multimedia/vlc/vlc.info +++ b/multimedia/vlc/vlc.info @@ -1,12 +1,12 @@ PRGNAM="vlc" -VERSION="2.2.1" +VERSION="2.1.6" HOMEPAGE="http://www.videolan.org/vlc/" -DOWNLOAD="http://download.videolan.org/vlc/2.2.1/vlc-2.2.1.tar.xz \ +DOWNLOAD="http://download.videolan.org/vlc/2.1.6/vlc-2.1.6.tar.xz \ http://software.blackmagicdesign.com/SDK/Blackmagic_DeckLink_SDK_10.1.4.zip" -MD5SUM="42273945758b521c408fabc7fd6d9946 \ +MD5SUM="6de050559fbb1456b35303f04705145d \ 16fbc2f49dc62fecac15835c538f78d4" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="a52dec libass libdc1394 libdvbpsi libdvdnav libmpeg2 libupnp lua portaudio twolame opus libvpx gsm opencv libtar libkate faac libdca libmatroska libshout speex libva avahi projectM jack-audio-connection-kit libsidplay2 zvbi faad2 libavc1394 libmodplug musepack-tools vcdimager dirac vsxu gnome-vfs live555 rtmpdump freerdp libdvdcss fluidsynth schroedinger libminizip chromaprint" +REQUIRES="a52dec libass libdc1394 libdvbpsi libdvdnav libmpeg2 libupnp lua portaudio twolame opus libvpx gsm opencv libtar libkate faac libdca libmatroska libshout speex libva avahi projectM jack-audio-connection-kit libsidplay2 zvbi faad2 libavc1394 libmodplug musepack-tools vcdimager dirac vsxu gnome-vfs live555 rtmpdump freerdp libdvdcss fluidsynth schroedinger libminizip chromaprint libssh2 gst1-plugins-base x265" MAINTAINER="Christoph Willing" EMAIL="chris.willing@iinet.net.au" |