diff options
Diffstat (limited to 'media-libs/phonon-qt7')
6 files changed, 122 insertions, 0 deletions
diff --git a/media-libs/phonon-qt7/Manifest b/media-libs/phonon-qt7/Manifest new file mode 100644 index 000000000000..fb40ab2cbee9 --- /dev/null +++ b/media-libs/phonon-qt7/Manifest @@ -0,0 +1 @@ +DIST phonon-qt7-0_pre20110424.tar.bz2 54610 SHA256 c8a96c3053a534ec8e33e105a861a846b8f970f1583ec4054ff046d6785d5cbd SHA512 9e694c2effdf2b044118e4afb101e098d479bfc4c97f8f8069dcadbaa44f4dc6371ad15c1487bb1786e1096cbc93b660c0edde87e61f6a9483fce5a7587df2b9 WHIRLPOOL e193e83bcc62d06cd50fa55e5c99d0827c49cfc77a1879e06579809669d264a856f9f89269c7099f50953c887cea22456076c4b8bd61c8588c95d98a841c3f4b diff --git a/media-libs/phonon-qt7/files/phonon-qt7-0_pre20110424-QWidget-cast-dynamic.patch b/media-libs/phonon-qt7/files/phonon-qt7-0_pre20110424-QWidget-cast-dynamic.patch new file mode 100644 index 000000000000..ae222027b892 --- /dev/null +++ b/media-libs/phonon-qt7/files/phonon-qt7-0_pre20110424-QWidget-cast-dynamic.patch @@ -0,0 +1,28 @@ +Revert commit: + +commit b22b86f6940d2605e78398eca4ae05c3ea44a92c +Author: Ritt Konstantin <ritt.ks@gmail.com> +Date: Thu Jun 10 07:38:14 2010 +0400 + + fix build with -fno-rtti + + m_renderDrawWidget object inherits QWidget and can be safely static_cast-ed + +as it yields in: + +error: invalid static_cast from type ‘Phonon::QT7::IVideoRenderDrawWidget*’ to type ‘QWidget*’ + + +diff --git a/qt7/videowidget.mm b/qt7/videowidget.mm +index 736dcdf..e471140 100644 +--- a/qt7/videowidget.mm ++++ b/qt7/videowidget.mm +@@ -578,7 +578,7 @@ public: + PhononAutoReleasePool pool; + updateDrawFrameRect(); + if (m_renderDrawWidget) +- static_cast<QWidget *>(m_renderDrawWidget)->resize(size()); ++ dynamic_cast<QWidget *>(m_renderDrawWidget)->resize(size()); + break; } + case QEvent::Paint:{ + PhononAutoReleasePool pool; diff --git a/media-libs/phonon-qt7/files/phonon-qt7-0_pre20110424-darwin11.patch b/media-libs/phonon-qt7/files/phonon-qt7-0_pre20110424-darwin11.patch new file mode 100644 index 000000000000..6d1a5626a207 --- /dev/null +++ b/media-libs/phonon-qt7/files/phonon-qt7-0_pre20110424-darwin11.patch @@ -0,0 +1,29 @@ +disable AUGraphAddNode, it needs an AudioComponent iso Component +need a definition for gnuOrtho2D + +--- phonon-qt7/qt7/audionode.mm ++++ phonon-qt7/qt7/audionode.mm +@@ -69,9 +69,9 @@ + + OSStatus err = noErr; + #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5 +- if (QSysInfo::MacintoshVersion >= QSysInfo::MV_10_5) +- err = AUGraphAddNode(m_audioGraph->audioGraphRef(), &description, &m_auNode); +- else ++// if (QSysInfo::MacintoshVersion >= QSysInfo::MV_10_5) ++// err = AUGraphAddNode(m_audioGraph->audioGraphRef(), &description, &m_auNode); ++// else + #endif + err = AUGraphNewNode(m_audioGraph->audioGraphRef(), &description, 0, 0, &m_auNode); + +--- phonon-qt7/qt7/videowidget.mm ++++ phonon-qt7/qt7/videowidget.mm +@@ -35,6 +35,8 @@ + #import <AppKit/NSImage.h> + #import <QTKit/QTMovieView.h> + ++#import <OpenGL/glu.h> ++ + ///////////////////////////////////////////////////////////////////////////////////////// + + #ifdef QT_MAC_USE_COCOA // Rendering to a QTMovieView can only be done in Cocoa diff --git a/media-libs/phonon-qt7/files/phonon-qt7-noshow.patch b/media-libs/phonon-qt7/files/phonon-qt7-noshow.patch new file mode 100644 index 000000000000..e05c2c4d9957 --- /dev/null +++ b/media-libs/phonon-qt7/files/phonon-qt7-noshow.patch @@ -0,0 +1,17 @@ +diff -ruN phonon-qt7.orig/CMakeLists.txt phonon-qt7/CMakeLists.txt +--- phonon-qt7.orig/CMakeLists.txt 2011-04-24 20:22:59.000000000 +0200 ++++ phonon-qt7/CMakeLists.txt 2011-04-24 20:42:15.000000000 +0200 +@@ -2,6 +2,8 @@ + + cmake_minimum_required(VERSION 2.6.2 FATAL_ERROR) + ++set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") ++ + find_package(Phonon REQUIRED) + find_package(OpenGL REQUIRED) + +@@ -17,4 +19,3 @@ + add_subdirectory(qt7) + endif (Q_WS_MAC) + +-macro_display_feature_log() diff --git a/media-libs/phonon-qt7/metadata.xml b/media-libs/phonon-qt7/metadata.xml new file mode 100644 index 000000000000..b968c7e47ff2 --- /dev/null +++ b/media-libs/phonon-qt7/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>kde</herd> +<herd>prefix</herd> +</pkgmetadata> diff --git a/media-libs/phonon-qt7/phonon-qt7-0_pre20110424.ebuild b/media-libs/phonon-qt7/phonon-qt7-0_pre20110424.ebuild new file mode 100644 index 000000000000..0f4bf0226f38 --- /dev/null +++ b/media-libs/phonon-qt7/phonon-qt7-0_pre20110424.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit cmake-utils base + +DESCRIPTION="Phonon QuickTime7 backend" +HOMEPAGE="https://projects.kde.org/projects/kdesupport/phonon/phonon-quicktime" +SRC_URI="http://dev.gentoo.org/~dilfridge/distfiles/${P}.tar.bz2" + +LICENSE="LGPL-2.1" +KEYWORDS="~ppc-macos ~x64-macos" +SLOT="0" +IUSE="debug" + +RDEPEND=">=media-libs/phonon-4.5" +DEPEND="${RDEPEND} + >=dev-util/automoc-0.9.87 + media-libs/opengl-apple + sys-devel/gcc-apple[objc] + virtual/pkgconfig +" + +# needs OpenGL, how do I specify this properly? +# I just depended on opengl-apple, hope this is what you meant -- grobian + +S="${WORKDIR}/${PN}" + +PATCHES=( + "${FILESDIR}/${PN}-noshow.patch" + "${FILESDIR}"/${P}-QWidget-cast-dynamic.patch + "${FILESDIR}"/${P}-darwin11.patch +) + +src_prepare() { + base_src_prepare # for PATCHES + sed -i -e "/^include_directories/s:): ${EPREFIX}/usr/include):" \ + CMakeLists.txt || die +} |