summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Wijsman <tomwij@gentoo.org>2013-10-21 01:15:02 +0000
committerTom Wijsman <tomwij@gentoo.org>2013-10-21 01:15:02 +0000
commit527971294b151e3247c40167f669b964adb5b778 (patch)
treec21be5d024973ddc5bb31694921ea0ae8a661065 /media-video
parentVersion bump. (diff)
downloadgentoo-2-527971294b151e3247c40167f669b964adb5b778.tar.gz
gentoo-2-527971294b151e3247c40167f669b964adb5b778.tar.bz2
gentoo-2-527971294b151e3247c40167f669b964adb5b778.zip
Updated 9999 in a first preparation of the 2.1.0 version bump; switched to git-r3, moved bootstrap to src_prepare, small cleanup, added USE flags "chromaprint,opencv,rdp,sftp,vnc" and their respective dependencies (exceptions: rdp --> freerdp, sftp --> libssh2), made unpacking work for non-9999 versions, removed gcc warnings for missing pragmas in gcc C99 to shorten build log, fix detection of git checkout, revised freetype fonts patch, support newer freerdp and be compatibility with libva 1.2.1, disable "decklink,goom,mfx,vxsu" which are not (yet) in the Portage tree. Updated metadata.xml to document new USE flags. More changes and testing will follow.
(Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
Diffstat (limited to 'media-video')
-rw-r--r--media-video/vlc/ChangeLog16
-rw-r--r--media-video/vlc/files/vlc-2.1.0-freetype-proper-default-font.patch17
-rw-r--r--media-video/vlc/files/vlc-2.1.0-libva-1.2.1-compat.patch12
-rw-r--r--media-video/vlc/files/vlc-2.1.0-newer-rdp.patch47
-rw-r--r--media-video/vlc/metadata.xml4
-rw-r--r--media-video/vlc/vlc-9999.ebuild78
6 files changed, 154 insertions, 20 deletions
diff --git a/media-video/vlc/ChangeLog b/media-video/vlc/ChangeLog
index f69953e9e5b4..4aa41afe26cd 100644
--- a/media-video/vlc/ChangeLog
+++ b/media-video/vlc/ChangeLog
@@ -1,6 +1,20 @@
# ChangeLog for media-video/vlc
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/ChangeLog,v 1.853 2013/10/20 09:56:09 tomwij Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/ChangeLog,v 1.854 2013/10/21 01:15:02 tomwij Exp $
+
+ 21 Oct 2013; Tom Wijsman <TomWij@gentoo.org>
+ +files/vlc-2.1.0-freetype-proper-default-font.patch,
+ +files/vlc-2.1.0-libva-1.2.1-compat.patch, +files/vlc-2.1.0-newer-rdp.patch,
+ metadata.xml, vlc-9999.ebuild:
+ Updated 9999 in a first preparation of the 2.1.0 version bump; switched to
+ git-r3, moved bootstrap to src_prepare, small cleanup, added USE flags
+ "chromaprint,opencv,rdp,sftp,vnc" and their respective dependencies
+ (exceptions: rdp --> freerdp, sftp --> libssh2), made unpacking work for
+ non-9999 versions, removed gcc warnings for missing pragmas in gcc C99 to
+ shorten build log, fix detection of git checkout, revised freetype fonts
+ patch, support newer freerdp and be compatibility with libva 1.2.1, disable
+ "decklink,goom,mfx,vxsu" which are not (yet) in the Portage tree. Updated
+ metadata.xml to document new USE flags. More changes and testing will follow.
20 Oct 2013; Tom Wijsman <TomWij@gentoo.org> metadata.xml:
Added myself as primary maintainer to the metadata, as per aballier's gentoo-
diff --git a/media-video/vlc/files/vlc-2.1.0-freetype-proper-default-font.patch b/media-video/vlc/files/vlc-2.1.0-freetype-proper-default-font.patch
new file mode 100644
index 000000000000..37e95fe6627a
--- /dev/null
+++ b/media-video/vlc/files/vlc-2.1.0-freetype-proper-default-font.patch
@@ -0,0 +1,17 @@
+--- a/modules/text_renderer/freetype.c
++++ b/modules/text_renderer/freetype.c
+@@ -67,10 +67,10 @@
+ # define SYSTEM_DEFAULT_MONOSPACE_FONT_FILE "/system/fonts/DroidSansMono.ttf"
+ # define SYSTEM_DEFAULT_MONOSPACE_FAMILY "Droid Sans Mono"
+ #else
+-# define SYSTEM_DEFAULT_FONT_FILE "/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf"
+-# define SYSTEM_DEFAULT_FAMILY "Serif Bold"
+-# define SYSTEM_DEFAULT_MONOSPACE_FONT_FILE "/usr/share/fonts/truetype/freefont/FreeMono.ttf"
+-# define SYSTEM_DEFAULT_MONOSPACE_FAMILY "Monospace"
++# define SYSTEM_DEFAULT_FONT_FILE "/usr/share/fonts/dejavu/DejaVuSans.ttf"
++# define SYSTEM_DEFAULT_FAMILY "DejaVu Sans"
++# define SYSTEM_DEFAULT_MONOSPACE_FONT_FILE "/usr/share/fonts/dejavu/DejaVuSansMono.ttf"
++# define SYSTEM_DEFAULT_MONOSPACE_FAMILY "DejaVu Sans Mono"
+ #endif
+
+ #ifndef DEFAULT_FONT_FILE
diff --git a/media-video/vlc/files/vlc-2.1.0-libva-1.2.1-compat.patch b/media-video/vlc/files/vlc-2.1.0-libva-1.2.1-compat.patch
new file mode 100644
index 000000000000..db73a4ee42f5
--- /dev/null
+++ b/media-video/vlc/files/vlc-2.1.0-libva-1.2.1-compat.patch
@@ -0,0 +1,12 @@
+--- a/modules/codec/avcodec/vaapi.c
++++ b/modules/codec/avcodec/vaapi.c
+@@ -36,6 +36,9 @@
+ #include <libavcodec/vaapi.h>
+ #include <X11/Xlib.h>
+ #include <va/va_x11.h>
++#if VA_MINOR_VERSION >= 34
++# include <va/va_compat.h>
++#endif
+
+ #include "avcodec.h"
+ #include "va.h" \ No newline at end of file
diff --git a/media-video/vlc/files/vlc-2.1.0-newer-rdp.patch b/media-video/vlc/files/vlc-2.1.0-newer-rdp.patch
new file mode 100644
index 000000000000..aa1957a7150a
--- /dev/null
+++ b/media-video/vlc/files/vlc-2.1.0-newer-rdp.patch
@@ -0,0 +1,47 @@
+--- a/modules/access/rdp.c
++++ b/modules/access/rdp.c
+@@ -198,15 +198,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 +217,9 @@
+ vlcrdp_context_t * p_vlccontext = (vlcrdp_context_t *) p_instance->context;
+
+ msg_Dbg( p_vlccontext->p_demux, "connected to desktop %dx%d (%d bpp)",
+- p_instance->settings->width,
+- p_instance->settings->height,
+- p_instance->settings->color_depth );
++ p_instance->settings->DesktopWidth,
++ p_instance->settings->DesktopHeight,
++ p_instance->settings->ColorDepth );
+
+ p_instance->update->DesktopResize = desktopResizeHandler;
+ p_instance->update->BeginPaint = beginPaintHandler;
+@@ -415,7 +415,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 --git a/media-video/vlc/metadata.xml b/media-video/vlc/metadata.xml
index 52d591897169..54ba926180cf 100644
--- a/media-video/vlc/metadata.xml
+++ b/media-video/vlc/metadata.xml
@@ -12,6 +12,7 @@
<flag name="avcodec">Enables libavcodec support for video/audio encoding/decoding. libavcodec is part of FFmpeg.</flag>
<flag name="avformat">Enables libformat support for reading and writing various media containers. libavformat is part of FFmpeg.</flag>
<flag name="bluray">Enables libbluray for Blu-ray disc support.</flag>
+ <flag name="chromaprint">Enables libchromaprint for Chromaprint based audio fingerprinter support.</flag>
<flag name="dc1394">Enables IIDC cameras support.</flag>
<flag name="dirac">Enable Dirac video support (an advanced royalty-free video compression format) via the reference library: dirac.</flag>
<flag name="direct2d">Enable Win7/VistaPU Direct2D support.</flag>
@@ -45,16 +46,19 @@
<flag name="media-library">Build the (sqlite based) media library.</flag>
<flag name="omxil">Enables OpenMAX Integration Layer codec module.</flag>
<flag name="optimisememory">Enable optimisation for memory rather than performance.</flag>
+ <flag name="opencv">Enabled OpenCV (computer vision) filter module.</flag>
<flag name="opus">Support opus decoding via libopus.</flag>
<flag name="postproc">Enables image post-processing via libpostproc (part of FFmpeg).</flag>
<flag name="projectm">Enables the projectM visualization plugin.</flag>
<flag name="pvr">Enables PVR cards access module.</flag>
<flag name="qt4" restrict="&gt;=media-video/vlc-0.9">Builds a <pkg>x11-libs/qt</pkg> based frontend. It is now the most up-to-date graphical interface available.</flag>
+ <flag name="rdp">Enables freerdp for RDP/Remote Desktop client support</flag>
<flag name="rtsp">Enables real audio and RTSP modules.</flag>
<flag name="run-as-root">Allows vlc to start for root. Don't enable this unless you have a very specific (e.g. embedded) need for it!</flag>
<flag name="schroedinger">Enable Dirac video support (an advanced royalty-free video compression format) via libschroedinger (high-speed implementation in C of the Dirac codec).</flag>
<flag name="sid">Adds support for playing C64 SID files through <pkg>media-libs/libsidplay-2</pkg>.</flag>
<flag name="sdl-image">Enables sdl image video decoder (depends on sdl)</flag>
+ <flag name="sftp">Enables libssh2 to support SFTP file transfer.</flag>
<flag name="shine">Enables shine fixed point mp3 encoder.</flag>
<flag name="shout">Enables libshout output.</flag>
<flag name="skins">Enables support for the skins2 interface.</flag>
diff --git a/media-video/vlc/vlc-9999.ebuild b/media-video/vlc/vlc-9999.ebuild
index 721a71ca2164..7b8f481e3f08 100644
--- a/media-video/vlc/vlc-9999.ebuild
+++ b/media-video/vlc/vlc-9999.ebuild
@@ -1,13 +1,13 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-9999.ebuild,v 1.191 2013/09/20 23:30:16 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-9999.ebuild,v 1.192 2013/10/21 01:15:02 tomwij Exp $
EAPI="5"
SCM=""
if [ "${PV%9999}" != "${PV}" ] ; then
- SCM=git-2
- EGIT_BOOTSTRAP="bootstrap"
+ SCM="git-r3"
+
if [ "${PV%.9999}" != "${PV}" ] ; then
EGIT_REPO_URI="git://git.videolan.org/vlc/vlc-${PV%.9999}.git"
else
@@ -32,9 +32,6 @@ else
SRC_URI="http://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.xz"
fi
-# SRC_URI="${SRC_URI}
-# mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2"
-
LICENSE="LGPL-2.1 GPL-2"
SLOT="0"
@@ -44,20 +41,21 @@ else
KEYWORDS=""
fi
IUSE="a52 aac aalib alsa altivec atmo +audioqueue avahi +avcodec
- +avformat bidi bluray cdda cddb dbus dc1394 debug dirac
+ +avformat bidi bluray cdda cddb chromaprint dbus dc1394 debug dirac
directfb directx dts dvb +dvbpsi dvd dxva2 elibc_glibc egl +encode
fluidsynth +ffmpeg flac fontconfig +gcrypt gme gnome gnutls
growl httpd ieee1394 ios-vout jack kate kde libass libcaca libnotify
libsamplerate libtiger linsys libtar lirc live lua +macosx
+macosx-audio +macosx-dialog-provider +macosx-eyetv +macosx-quartztext
+macosx-qtkit +macosx-vout matroska media-library mmx modplug mp3 mpeg
- mtp musepack ncurses neon ogg omxil opengl optimisememory oss png
- +postproc projectm pulseaudio +qt4 rtsp run-as-root samba schroedinger
- sdl sdl-image shine shout sid skins speex sse svg +swscale
- taglib theora truetype twolame udev upnp vaapi v4l vcdx vlm vorbis waveout
- wma-fixed +X x264 +xcb xml xv zvbi"
+ mtp musepack ncurses neon ogg omxil opencv opengl optimisememory oss png
+ +postproc projectm pulseaudio +qt4 rdp rtsp run-as-root samba schroedinger
+ sdl sdl-image sftp shine shout sid skins speex sse svg +swscale
+ taglib theora truetype twolame udev upnp vaapi v4l vcdx vlm vnc vorbis
+ waveout wma-fixed +X x264 +xcb xml xv zvbi"
RDEPEND="
+ >=sys-devel/gettext-0.18.3
>=sys-libs/zlib-1.2.5.1-r2[minizip]
a52? ( >=media-libs/a52dec-0.7.4-r3 )
aalib? ( media-libs/aalib )
@@ -69,6 +67,7 @@ RDEPEND="
bidi? ( >=dev-libs/fribidi-0.10.4 )
bluray? ( >=media-libs/libbluray-0.2.1 )
cddb? ( >=media-libs/libcddb-1.2.0 )
+ chromaprint? ( >=media-libs/chromaprint-0.6 )
dbus? ( >=sys-apps/dbus-1.0.2 )
dc1394? ( >=sys-libs/libraw1394-2.0.1 >=media-libs/libdc1394-2.0.2 )
dirac? ( >=media-video/dirac-0.10.0 )
@@ -108,16 +107,19 @@ RDEPEND="
musepack? ( >=media-sound/musepack-tools-444 )
ncurses? ( sys-libs/ncurses[unicode] )
ogg? ( media-libs/libogg )
+ opencv? ( >=media-libs/opencv-2.0 )
opengl? ( virtual/opengl >=x11-libs/libX11-1.3.99.901 )
png? ( media-libs/libpng sys-libs/zlib )
postproc? ( || ( media-video/ffmpeg:0 media-libs/libpostproc ) )
projectm? ( media-libs/libprojectm media-fonts/dejavu )
pulseaudio? ( >=media-sound/pulseaudio-0.9.22 )
qt4? ( dev-qt/qtgui:4 dev-qt/qtcore:4 )
+ rdp? ( net-misc/freerdp )
samba? ( >=net-fs/samba-3.4.6[smbclient] )
schroedinger? ( >=media-libs/schroedinger-1.0.10 )
sdl? ( >=media-libs/libsdl-1.2.8
sdl-image? ( media-libs/sdl-image sys-libs/zlib ) )
+ sftp? ( net-libs/libssh2 )
shout? ( media-libs/libshout )
sid? ( media-libs/libsidplay:2 )
skins? ( x11-libs/libXext x11-libs/libXpm x11-libs/libXinerama )
@@ -135,6 +137,7 @@ RDEPEND="
vaapi? ( x11-libs/libva )
vcdx? ( >=dev-libs/libcdio-0.78.2 >=media-video/vcdimager-0.7.22 )
vorbis? ( media-libs/libvorbis )
+ vnc? ( >=net-libs/libvncserver-0.9.9 )
X? ( x11-libs/libX11 )
x264? ( >=media-libs/x264-0.0.20090923:= )
xcb? ( >=x11-libs/libxcb-1.6 >=x11-libs/xcb-util-0.3.4 )
@@ -143,10 +146,10 @@ RDEPEND="
"
DEPEND="${RDEPEND}
+ >=sys-devel/gettext-0.18.3
kde? ( >=kde-base/kdelibs-4 )
xcb? ( x11-proto/xproto )
app-arch/xz-utils
- >=sys-devel/gettext-0.18.3
virtual/pkgconfig"
REQUIRED_USE="
@@ -175,24 +178,51 @@ S="${WORKDIR}/${MY_P}"
src_unpack() {
if [ "${PV%9999}" != "${PV}" ] ; then
- git-2_src_unpack
+ git-r3_src_unpack
+ else
+ unpack ${A}
fi
}
src_prepare() {
+ # Remove unnecessary warnings about unimplemented pragmas on gcc for now.
+ # Need to recheck this with gcc 4.9 and every subsequent minor bump of gcc.
+ #
+ # config.h:792: warning: ignoring #pragma STDC FENV_ACCESS [-Wunknown-pragmas]
+ # config.h:793: warning: ignoring #pragma STDC FP_CONTRACT [-Wunknown-pragmas]
+ #
+ # http://gcc.gnu.org/c99status.html
+ if [[ "$(tc-getCC)" == *"gcc"* ]] ; then
+ sed -i 's/ifndef __FAST_MATH__/if 0/g' configure.ac || die
+ fi
+
+ # Bootstrap when we are on a git checkout.
+ if [[ "${PV%9999}" != "${PV}" ]] ; then
+ ./bootstrap
+ fi
+
# Make it build with libtool 1.5
- rm -f m4/lt* m4/libtool.m4
+ rm -f m4/lt* m4/libtool.m4 || die
+
+ # We are not in a real git checkout due to the absence of a .git directory.
+ touch src/revision.txt || die
+
+ # Patch up problems and reconfigure autotools.
+ epatch "${FILESDIR}"/${PN}-2.1.0-freetype-proper-default-font.patch
+ epatch "${FILESDIR}"/${PN}-2.1.0-newer-rdp.patch
+ epatch "${FILESDIR}"/${PN}-2.1.0-libva-1.2.1-compat.patch
-# EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
eautoreconf
}
src_configure() {
- # needs libresid-builder from libsidplay:2 which is in another directory...
+ # Needs libresid-builder from libsidplay:2 which is in another directory...
# FIXME!
use sid && append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/"
- if use truetype || use projectm; then
+ # Need to check if this works and is correct so we can drop the patch above.
+ # TODO!
+ if use truetype || use projectm ; then
local dejavu="/usr/share/fonts/dejavu/"
myconf="--with-default-font=${dejavu}/DejaVuSans.ttf \
--with-default-font-family=Sans \
@@ -217,6 +247,7 @@ src_configure() {
$(use_enable bluray) \
$(use_enable cdda vcd) \
$(use_enable cddb libcddb) \
+ $(use_enable chromaprint) \
$(use_enable dbus) \
$(use_enable dirac) \
$(use_enable directfb) \
@@ -270,6 +301,7 @@ src_configure() {
$(use_enable neon) \
$(use_enable ogg) $(use_enable ogg mux_ogg) \
$(use_enable omxil) \
+ $(use_enable opencv) \
$(use_enable opengl glx) \
$(use_enable optimisememory optimize-memory) \
$(use_enable oss) \
@@ -278,6 +310,7 @@ src_configure() {
$(use_enable projectm) \
$(use_enable pulseaudio pulse) \
$(use_enable qt4 qt) \
+ $(use_enable rdp freerdp) \
$(use_enable rtsp realrtsp) \
$(use_enable run-as-root) \
$(use_enable samba smbclient) \
@@ -302,6 +335,7 @@ src_configure() {
$(use_enable vaapi libva) \
$(use_enable vcdx) \
$(use_enable vlm) \
+ $(use_enable vnc) \
$(use_enable vorbis) \
$(use_enable waveout) \
$(use_enable wma-fixed) \
@@ -312,7 +346,13 @@ src_configure() {
$(use_enable xv xvideo) \
$(use_enable zvbi) $(use_enable !zvbi telx) \
--disable-optimizations \
- --enable-fast-install
+ --enable-fast-install \
+ --disable-decklink \
+ --disable-goom \
+ --disable-mfx \
+ --disable-vsxu
+
+ # ^ We don't have decklink, goom, mfx or vsxu in the Portage tree.
}
src_install() {