diff options
author | Bernard Cafarelli <voyageur@gentoo.org> | 2009-07-15 13:31:09 +0000 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2009-07-15 13:31:09 +0000 |
commit | 21382bfad301ca387dbef30d78ed875dc711144a (patch) | |
tree | 732c2cb8eb42c84e020cb17ff6c3e8d301c22cfe /media-gfx | |
parent | stable x86, bug 277798 (diff) | |
download | gentoo-2-21382bfad301ca387dbef30d78ed875dc711144a.tar.gz gentoo-2-21382bfad301ca387dbef30d78ed875dc711144a.tar.bz2 gentoo-2-21382bfad301ca387dbef30d78ed875dc711144a.zip |
Make it work with xulrunner-1.9, update gcc 4.4 patch (use upstream commit)
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/freepv/ChangeLog | 10 | ||||
-rw-r--r-- | media-gfx/freepv/files/freepv-0.3.0-gcc44.patch | 76 | ||||
-rw-r--r-- | media-gfx/freepv/files/freepv-0.3.0-xulrunner-1.9.1.patch | 438 | ||||
-rw-r--r-- | media-gfx/freepv/freepv-0.3.0-r1.ebuild (renamed from media-gfx/freepv/freepv-0.3.0.ebuild) | 5 |
4 files changed, 484 insertions, 45 deletions
diff --git a/media-gfx/freepv/ChangeLog b/media-gfx/freepv/ChangeLog index 3b68ecf253d5..7c90dc8e6250 100644 --- a/media-gfx/freepv/ChangeLog +++ b/media-gfx/freepv/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for media-gfx/freepv # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/freepv/ChangeLog,v 1.3 2009/06/13 20:54:39 voyageur Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/freepv/ChangeLog,v 1.4 2009/07/15 13:31:09 voyageur Exp $ + +*freepv-0.3.0-r1 (15 Jul 2009) + + 15 Jul 2009; Bernard Cafarelli <voyageur@gentoo.org> -freepv-0.3.0.ebuild, + +freepv-0.3.0-r1.ebuild, files/freepv-0.3.0-gcc44.patch, + +files/freepv-0.3.0-xulrunner-1.9.1.patch: + Make it work with xulrunner-1.9, update gcc 4.4 patch (use upstream + commit) 13 Jun 2009; Bernard Cafarelli <voyageur@gentoo.org> freepv-0.3.0.ebuild, +files/freepv-0.3.0-gcc44.patch: diff --git a/media-gfx/freepv/files/freepv-0.3.0-gcc44.patch b/media-gfx/freepv/files/freepv-0.3.0-gcc44.patch index ff92ae2f4261..60d55f8b002c 100644 --- a/media-gfx/freepv/files/freepv-0.3.0-gcc44.patch +++ b/media-gfx/freepv/files/freepv-0.3.0-gcc44.patch @@ -1,58 +1,50 @@ -diff -Naur freepv-0.3.0.orig/src/libfreepv/OpenGLRenderer.cpp freepv-0.3.0/src/libfreepv/OpenGLRenderer.cpp ---- freepv-0.3.0.orig/src/libfreepv/OpenGLRenderer.cpp 2009-06-13 22:38:40.000000000 +0200 -+++ freepv-0.3.0/src/libfreepv/OpenGLRenderer.cpp 2009-06-13 22:39:06.000000000 +0200 -@@ -25,6 +25,7 @@ - - #include <config.h> +Index: freepv/trunk/src/libfreepv/Utils/signatures.cpp +=================================================================== +--- freepv/trunk/src/libfreepv/Utils/signatures.cpp (révision 162) ++++ freepv/trunk/src/libfreepv/Utils/signatures.cpp (révision 163) +@@ -24,6 +24,7 @@ + #include "signatures.h" + #include <iostream> +#include <cstdio> - #include <vector> - #include <math.h> -diff -Naur freepv-0.3.0.orig/src/libfreepv/QTVRDecoder.cpp freepv-0.3.0/src/libfreepv/QTVRDecoder.cpp ---- freepv-0.3.0.orig/src/libfreepv/QTVRDecoder.cpp 2009-06-13 22:38:40.000000000 +0200 -+++ freepv-0.3.0/src/libfreepv/QTVRDecoder.cpp 2009-06-13 22:41:39.000000000 +0200 -@@ -41,6 +41,7 @@ - #include <math.h> + namespace FPV{ + namespace Utils{ +Index: freepv/trunk/src/libfreepv/QTVRDecoder.cpp +=================================================================== +--- freepv/trunk/src/libfreepv/QTVRDecoder.cpp (révision 162) ++++ freepv/trunk/src/libfreepv/QTVRDecoder.cpp (révision 163) +@@ -42,6 +42,7 @@ #include <errno.h> #include <vector> -+#include <cstdio> #include <cstring> ++#include <cstdio> #include <zlib.h> -diff -Naur freepv-0.3.0.orig/src/libfreepv/SPiVparser.cpp freepv-0.3.0/src/libfreepv/SPiVparser.cpp ---- freepv-0.3.0.orig/src/libfreepv/SPiVparser.cpp 2009-06-13 22:38:40.000000000 +0200 -+++ freepv-0.3.0/src/libfreepv/SPiVparser.cpp 2009-06-13 22:43:44.000000000 +0200 -@@ -488,8 +488,8 @@ - //This method remplace the nodes that has src attributes - void SPiVparser::parseNodeURL(const char* _url) - { -- char * aux_url=NULL; -- char * url=(char*) _url; -+ const char * aux_url=NULL; -+ const char * url=(char*) _url; - if(aux_url = strrchr (_url,'/')) - { - url=aux_url; -diff -Naur freepv-0.3.0.orig/src/libfreepv/Utils/signatures.cpp freepv-0.3.0/src/libfreepv/Utils/signatures.cpp ---- freepv-0.3.0.orig/src/libfreepv/Utils/signatures.cpp 2009-06-13 22:38:40.000000000 +0200 -+++ freepv-0.3.0/src/libfreepv/Utils/signatures.cpp 2009-06-13 22:42:39.000000000 +0200 + +Index: freepv/trunk/src/libfreepv/utils.cpp +=================================================================== +--- freepv/trunk/src/libfreepv/utils.cpp (révision 162) ++++ freepv/trunk/src/libfreepv/utils.cpp (révision 163) @@ -23,6 +23,7 @@ */ - #include "signatures.h" + #include <algorithm> +#include <cstdio> - #include <iostream> - namespace FPV{ -diff -Naur freepv-0.3.0.orig/src/libfreepv/utils.cpp freepv-0.3.0/src/libfreepv/utils.cpp ---- freepv-0.3.0.orig/src/libfreepv/utils.cpp 2009-06-13 22:38:40.000000000 +0200 -+++ freepv-0.3.0/src/libfreepv/utils.cpp 2009-06-13 22:39:49.000000000 +0200 -@@ -22,6 +22,7 @@ - * 02110-1301 USA, or see the FSF site: http://www.fsf.org. - */ + #include "utils.h" +Index: freepv/trunk/src/libfreepv/OpenGLRenderer.cpp +=================================================================== +--- freepv/trunk/src/libfreepv/OpenGLRenderer.cpp (révision 162) ++++ freepv/trunk/src/libfreepv/OpenGLRenderer.cpp (révision 163) +@@ -26,7 +26,8 @@ + #include <config.h> + + #include <vector> +-#include <math.h> ++#include <cmath> +#include <cstdio> - #include <algorithm> - #include "utils.h" + #include "OpenGLRenderer.h" + #include "Scene.h" diff --git a/media-gfx/freepv/files/freepv-0.3.0-xulrunner-1.9.1.patch b/media-gfx/freepv/files/freepv-0.3.0-xulrunner-1.9.1.patch new file mode 100644 index 000000000000..fd659e05f911 --- /dev/null +++ b/media-gfx/freepv/files/freepv-0.3.0-xulrunner-1.9.1.patch @@ -0,0 +1,438 @@ +diff -Naur freepv-0.3.0.orig/CMakeScripts/FindGECKO.cmake freepv-0.3.0/CMakeScripts/FindGECKO.cmake +--- freepv-0.3.0.orig/CMakeScripts/FindGECKO.cmake 2009-07-15 14:48:53.000000000 +0200 ++++ freepv-0.3.0/CMakeScripts/FindGECKO.cmake 2009-07-15 14:49:03.000000000 +0200 +@@ -30,6 +30,11 @@ + SET(GECKO_INCLUDE_DIR ${GECKO_ROOT_DIR} ${GECKO_NSPR_DIR}) + SET(GECKO_LIBRARY ${Xt_LIBRARY}) + ++ FIND_PATH(NPFUNCTIONS_H_DIR npfunctions.h ${GECKO_ROOT_DIR}) ++ IF (NPFUNCTIONS_H_DIR) ++ SET(HAVE_NPFUNCTIONS_H TRUE) ++ ENDIF (NPFUNCTIONS_H_DIR) ++ + IF (GECKO_INCLUDE_DIR AND GECKO_LIBRARY) + SET(GECKO_FOUND TRUE) + SET(GECKO_LIBRARIES ${GECKO_LIBRARY}) +diff -Naur freepv-0.3.0.orig/src/config.h.in.cmake freepv-0.3.0/src/config.h.in.cmake +--- freepv-0.3.0.orig/src/config.h.in.cmake 2009-07-15 14:48:53.000000000 +0200 ++++ freepv-0.3.0/src/config.h.in.cmake 2009-07-15 14:49:03.000000000 +0200 +@@ -24,3 +24,6 @@ + /* Define to 1 if you have are under Windows */ + #cmakedefine XP_WIN 1 + ++/* newer xulrunner has npfunctions.h not npupp.h */ ++#cmakedefine HAVE_NPFUNCTIONS_H 1 ++ +diff -Naur freepv-0.3.0.orig/src/freepv-mozilla/npn_gate.cpp freepv-0.3.0/src/freepv-mozilla/npn_gate.cpp +--- freepv-0.3.0.orig/src/freepv-mozilla/npn_gate.cpp 2009-07-15 14:48:53.000000000 +0200 ++++ freepv-0.3.0/src/freepv-mozilla/npn_gate.cpp 2009-07-15 15:00:25.000000000 +0200 +@@ -58,7 +58,7 @@ + NPError rv = NPERR_NO_ERROR; + + if( navMinorVers >= NPVERS_HAS_NOTIFICATION ) +- rv = CallNPN_GetURLNotifyProc(NPNFuncs.geturlnotify, instance, url, target, notifyData); ++ rv = (*NPNFuncs.geturlnotify)(instance, url, target, notifyData); + else + rv = NPERR_INCOMPATIBLE_VERSION_ERROR; + +@@ -67,32 +67,32 @@ + + NPError NPN_GetURL(NPP instance, const char *url, const char *target) + { +- NPError rv = CallNPN_GetURLProc(NPNFuncs.geturl, instance, url, target); ++ NPError rv = (*NPNFuncs.geturl)(instance, url, target); + return rv; + } + +-NPError NPN_PostURLNotify(NPP instance, const char* url, const char* window, uint32 len, const char* buf, NPBool file, void* notifyData) ++NPError NPN_PostURLNotify(NPP instance, const char* url, const char* window, uint32_t len, const char* buf, NPBool file, void* notifyData) + { + int navMinorVers = NPNFuncs.version & 0xFF; + NPError rv = NPERR_NO_ERROR; + + if( navMinorVers >= NPVERS_HAS_NOTIFICATION ) +- rv = CallNPN_PostURLNotifyProc(NPNFuncs.posturlnotify, instance, url, window, len, buf, file, notifyData); ++ rv = (*NPNFuncs.posturlnotify)(instance, url, window, len, buf, file, notifyData); + else + rv = NPERR_INCOMPATIBLE_VERSION_ERROR; + + return rv; + } + +-NPError NPN_PostURL(NPP instance, const char* url, const char* window, uint32 len, const char* buf, NPBool file) ++NPError NPN_PostURL(NPP instance, const char* url, const char* window, uint32_t len, const char* buf, NPBool file) + { +- NPError rv = CallNPN_PostURLProc(NPNFuncs.posturl, instance, url, window, len, buf, file); ++ NPError rv = (*NPNFuncs.posturl)(instance, url, window, len, buf, file); + return rv; + } + + NPError NPN_RequestRead(NPStream* stream, NPByteRange* rangeList) + { +- NPError rv = CallNPN_RequestReadProc(NPNFuncs.requestread, stream, rangeList); ++ NPError rv = (*NPNFuncs.requestread)(stream, rangeList); + return rv; + } + +@@ -103,20 +103,20 @@ + NPError rv = NPERR_NO_ERROR; + + if( navMinorVersion >= NPVERS_HAS_STREAMOUTPUT ) +- rv = CallNPN_NewStreamProc(NPNFuncs.newstream, instance, type, target, stream); ++ rv = (*NPNFuncs.newstream)(instance, type, target, stream); + else + rv = NPERR_INCOMPATIBLE_VERSION_ERROR; + + return rv; + } + +-int32 NPN_Write(NPP instance, NPStream *stream, int32 len, void *buffer) ++int32_t NPN_Write(NPP instance, NPStream *stream, int32_t len, void *buffer) + { + int navMinorVersion = NPNFuncs.version & 0xFF; +- int32 rv = 0; ++ int32_t rv = 0; + + if( navMinorVersion >= NPVERS_HAS_STREAMOUTPUT ) +- rv = CallNPN_WriteProc(NPNFuncs.write, instance, stream, len, buffer); ++ rv = (*NPNFuncs.write)(instance, stream, len, buffer); + else + rv = -1; + +@@ -129,7 +129,7 @@ + NPError rv = NPERR_NO_ERROR; + + if( navMinorVersion >= NPVERS_HAS_STREAMOUTPUT ) +- rv = CallNPN_DestroyStreamProc(NPNFuncs.destroystream, instance, stream, reason); ++ rv = (*NPNFuncs.destroystream)(instance, stream, reason); + else + rv = NPERR_INCOMPATIBLE_VERSION_ERROR; + +@@ -138,37 +138,37 @@ + + void NPN_Status(NPP instance, const char *message) + { +- CallNPN_StatusProc(NPNFuncs.status, instance, message); ++ (*NPNFuncs.status)(instance, message); + } + + const char* NPN_UserAgent(NPP instance) + { + const char * rv = NULL; +- rv = CallNPN_UserAgentProc(NPNFuncs.uagent, instance); ++ rv = (*NPNFuncs.uagent)(instance); + return rv; + } + +-void* NPN_MemAlloc(uint32 size) ++void* NPN_MemAlloc(uint32_t size) + { + void * rv = NULL; +- rv = CallNPN_MemAllocProc(NPNFuncs.memalloc, size); ++ rv = (*NPNFuncs.memalloc)(size); + return rv; + } + + void NPN_MemFree(void* ptr) + { +- CallNPN_MemFreeProc(NPNFuncs.memfree, ptr); ++ (*NPNFuncs.memfree)(ptr); + } + +-uint32 NPN_MemFlush(uint32 size) ++uint32_t NPN_MemFlush(uint32_t size) + { +- uint32 rv = CallNPN_MemFlushProc(NPNFuncs.memflush, size); ++ uint32_t rv = (*NPNFuncs.memflush)(size); + return rv; + } + + void NPN_ReloadPlugins(NPBool reloadPages) + { +- CallNPN_ReloadPluginsProc(NPNFuncs.reloadplugins, reloadPages); ++ (*NPNFuncs.reloadplugins)(reloadPages); + } + + #ifdef OJI +@@ -182,34 +182,34 @@ + jref NPN_GetJavaPeer(NPP instance) + { + jref rv; +- rv = CallNPN_GetJavaPeerProc(NPNFuncs.getJavaPeer, instance); ++ rv = (*NPNFuncs.getJavaPeer)(instance); + return rv; + } + #endif + + NPError NPN_GetValue(NPP instance, NPNVariable variable, void *value) + { +- NPError rv = CallNPN_GetValueProc(NPNFuncs.getvalue, instance, variable, value); ++ NPError rv = (*NPNFuncs.getvalue)(instance, variable, value); + return rv; + } + + NPError NPN_SetValue(NPP instance, NPPVariable variable, void *value) + { +- NPError rv = CallNPN_SetValueProc(NPNFuncs.setvalue, instance, variable, value); ++ NPError rv = (*NPNFuncs.setvalue)(instance, variable, value); + return rv; + } + + void NPN_InvalidateRect(NPP instance, NPRect *invalidRect) + { +- CallNPN_InvalidateRectProc(NPNFuncs.invalidaterect, instance, invalidRect); ++ (*NPNFuncs.invalidaterect)(instance, invalidRect); + } + + void NPN_InvalidateRegion(NPP instance, NPRegion invalidRegion) + { +- CallNPN_InvalidateRegionProc(NPNFuncs.invalidateregion, instance, invalidRegion); ++ (*NPNFuncs.invalidateregion)(instance, invalidRegion); + } + + void NPN_ForceRedraw(NPP instance) + { +- CallNPN_ForceRedrawProc(NPNFuncs.forceredraw, instance); ++ (*NPNFuncs.forceredraw)(instance); + } +diff -Naur freepv-0.3.0.orig/src/freepv-mozilla/npp_gate.cpp freepv-0.3.0/src/freepv-mozilla/npp_gate.cpp +--- freepv-0.3.0.orig/src/freepv-mozilla/npp_gate.cpp 2009-07-15 14:48:53.000000000 +0200 ++++ freepv-0.3.0/src/freepv-mozilla/npp_gate.cpp 2009-07-15 15:03:01.000000000 +0200 +@@ -45,7 +45,7 @@ + // here the plugin creates a plugin instance object which + // will be associated with this newly created NPP instance and + // will do all the necessary job +-NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc, char* argn[], char* argv[], NPSavedData* saved) ++NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16_t mode, int16_t argc, char* argn[], char* argv[], NPSavedData* saved) + { + if(instance == NULL) + return NPERR_INVALID_INSTANCE_ERROR; +@@ -130,7 +130,7 @@ + return rv; + } + +-NPError NPP_NewStream(NPP instance, NPMIMEType type, NPStream* stream, NPBool seekable, uint16* stype) ++NPError NPP_NewStream(NPP instance, NPMIMEType type, NPStream* stream, NPBool seekable, uint16_t* stype) + { + if(instance == NULL) + return NPERR_INVALID_INSTANCE_ERROR; +@@ -143,7 +143,7 @@ + return rv; + } + +-int32 NPP_WriteReady (NPP instance, NPStream *stream) ++int32_t NPP_WriteReady (NPP instance, NPStream *stream) + { + if(instance == NULL) + return 0x0fffffff; +@@ -152,11 +152,11 @@ + if(plugin == NULL) + return 0x0fffffff; + +- int32 rv = plugin->WriteReady(stream); ++ int32_t rv = plugin->WriteReady(stream); + return rv; + } + +-int32 NPP_Write (NPP instance, NPStream *stream, int32 offset, int32 len, void *buffer) ++int32_t NPP_Write (NPP instance, NPStream *stream, int32_t offset, int32_t len, void *buffer) + { + if(instance == NULL) + return len; +@@ -165,7 +165,7 @@ + if(plugin == NULL) + return len; + +- int32 rv = plugin->Write(stream, offset, len, buffer); ++ int32_t rv = plugin->Write(stream, offset, len, buffer); + return rv; + } + +@@ -244,7 +244,7 @@ + return rv; + } + +-int16 NPP_HandleEvent(NPP instance, void* event) ++int16_t NPP_HandleEvent(NPP instance, void* event) + { + if(instance == NULL) + return 0; +@@ -253,7 +253,7 @@ + if(plugin == NULL) + return 0; + +- uint16 rv = plugin->HandleEvent(event); ++ uint16_t rv = plugin->HandleEvent(event); + return rv; + } + +@@ -274,7 +274,7 @@ + + #ifdef XP_MAC + +-NPError Private_New(NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc, char* argn[], char* argv[], NPSavedData* saved) ++NPError Private_New(NPMIMEType pluginType, NPP instance, uint16_t mode, int16_t argc, char* argn[], char* argv[], NPSavedData* saved) + { + NPError rv = NPP_New(pluginType, instance, mode, argc, argn, argv, saved); + return rv; +@@ -298,15 +298,15 @@ + return rv; + } + +-int32 Private_WriteReady(NPP instance, NPStream* stream) ++int32_t Private_WriteReady(NPP instance, NPStream* stream) + { +- int32 rv = NPP_WriteReady(instance, stream); ++ int32_t rv = NPP_WriteReady(instance, stream); + return rv; + } + +-int32 Private_Write(NPP instance, NPStream* stream, int32 offset, int32 len, void* buffer) ++int32_t Private_Write(NPP instance, NPStream* stream, int32_t offset, int32_t len, void* buffer) + { +- int32 rv = NPP_Write(instance, stream, offset, len, buffer); ++ int32_t rv = NPP_Write(instance, stream, offset, len, buffer); + return rv; + } + +@@ -322,9 +322,9 @@ + return rv; + } + +-int16 Private_HandleEvent(NPP instance, void* event) ++int16_t Private_HandleEvent(NPP instance, void* event) + { +- int16 rv = NPP_HandleEvent(instance, event); ++ int16_t rv = NPP_HandleEvent(instance, event); + return rv; + } + +diff -Naur freepv-0.3.0.orig/src/freepv-mozilla/npplat.h freepv-0.3.0/src/freepv-mozilla/npplat.h +--- freepv-0.3.0.orig/src/freepv-mozilla/npplat.h 2009-07-15 14:48:53.000000000 +0200 ++++ freepv-0.3.0/src/freepv-mozilla/npplat.h 2009-07-15 14:49:03.000000000 +0200 +@@ -40,7 +40,11 @@ + + #include "config.h" + #include "npapi.h" ++#ifdef HAVE_NPFUNCTIONS_H ++#include "npfunctions.h" ++#else + #include "npupp.h" ++#endif + + /**************************************************/ + /* */ +diff -Naur freepv-0.3.0.orig/src/freepv-mozilla/pluginbase.h freepv-0.3.0/src/freepv-mozilla/pluginbase.h +--- freepv-0.3.0.orig/src/freepv-mozilla/pluginbase.h 2009-07-15 14:48:53.000000000 +0200 ++++ freepv-0.3.0/src/freepv-mozilla/pluginbase.h 2009-07-15 14:52:48.000000000 +0200 +@@ -44,8 +44,8 @@ + { + NPP instance; + NPMIMEType type; +- uint16 mode; +- int16 argc; ++ uint16_t mode; ++ int16_t argc; + char** argn; + char** argv; + NPSavedData* saved; +@@ -64,14 +64,14 @@ + // class as needed + virtual NPError SetWindow(NPWindow* pNPWindow) { return NPERR_NO_ERROR; } + virtual NPError NewStream(NPMIMEType type, NPStream* stream, +- NPBool seekable, uint16* stype) { return NPERR_NO_ERROR; } ++ NPBool seekable, uint16_t* stype) { return NPERR_NO_ERROR; } + virtual NPError DestroyStream(NPStream *stream, NPError reason) { return NPERR_NO_ERROR; } + virtual void StreamAsFile(NPStream* stream, const char* fname) { return; } +- virtual int32 WriteReady(NPStream *stream) { return 0x0fffffff; } +- virtual int32 Write(NPStream *stream, int32 offset, +- int32 len, void *buffer) { return len; } ++ virtual int32_t WriteReady(NPStream *stream) { return 0x0fffffff; } ++ virtual int32_t Write(NPStream *stream, int32_t offset, ++ int32_t len, void *buffer) { return len; } + virtual void Print(NPPrint* printInfo) { return; } +- virtual uint16 HandleEvent(void* event) { return 0; } ++ virtual uint16_t HandleEvent(void* event) { return 0; } + virtual void URLNotify(const char* url, NPReason reason, + void* notifyData) { return; } + virtual NPError GetValue(NPPVariable variable, void *value) { return NPERR_NO_ERROR; } +diff -Naur freepv-0.3.0.orig/src/freepv-mozilla/plugin.cpp freepv-0.3.0/src/freepv-mozilla/plugin.cpp +--- freepv-0.3.0.orig/src/freepv-mozilla/plugin.cpp 2009-07-15 14:48:53.000000000 +0200 ++++ freepv-0.3.0/src/freepv-mozilla/plugin.cpp 2009-07-15 14:52:24.000000000 +0200 +@@ -37,6 +37,7 @@ + + + #include <stdio.h> ++#include <stdlib.h> + #include <cstring> + + #include "plugin.h" +@@ -64,7 +65,7 @@ + + nsPluginInstance::nsPluginInstance(nsPluginCreateData *pcd) : nsPluginInstanceBase(), + mInstance( pcd->instance ), +- mInitialized(FALSE) ++ mInitialized(0) + { + DEBUG_TRACE(""); + pCData = pcd; +@@ -97,7 +98,7 @@ + return NPN_UserAgent(mInstance); + } + +-NPError nsPluginInstance::NewStream(NPMIMEType type, NPStream* stream, NPBool seekable, uint16* stype) ++NPError nsPluginInstance::NewStream(NPMIMEType type, NPStream* stream, NPBool seekable, uint16_t* stype) + { + DEBUG_TRACE("mime type:" << type); + if( m_fpvIgnoreStreams ) { +@@ -161,18 +162,18 @@ + return NPERR_NO_ERROR; + } + +-int32 nsPluginInstance::WriteReady(NPStream* stream) ++int32_t nsPluginInstance::WriteReady(NPStream* stream) + { + DEBUG_TRACE(""); + return FPV_CHUNKSIZE; + } + +-int32 nsPluginInstance::Write(NPStream* stream, int32 offset, int32 len, void* buffer) ++int32_t nsPluginInstance::Write(NPStream* stream, int32_t offset, int32_t len, void* buffer) + { + DEBUG_TRACE("offset: " << offset << " length: " << len); + if (!m_fpvDownloadToFile) { + // check if the data fits into the buffer... +- if (offset+len >= (int32) m_fpvBufferSize) { ++ if (offset+len >= (int32_t) m_fpvBufferSize) { + // allocate more memory + unsigned char * newmem = (unsigned char*) realloc(m_fpvDownBuffer, m_fpvBufferSize*2); + if (newmem == 0) { +diff -Naur freepv-0.3.0.orig/src/freepv-mozilla/plugin.h freepv-0.3.0/src/freepv-mozilla/plugin.h +--- freepv-0.3.0.orig/src/freepv-mozilla/plugin.h 2009-07-15 14:48:53.000000000 +0200 ++++ freepv-0.3.0/src/freepv-mozilla/plugin.h 2009-07-15 14:52:29.000000000 +0200 +@@ -73,10 +73,10 @@ + public: + + // these functions are called by the browser +- NPError NewStream(NPMIMEType type, NPStream* stream, NPBool seekable, uint16* stype); ++ NPError NewStream(NPMIMEType type, NPStream* stream, NPBool seekable, uint16_t* stype); + NPError DestroyStream(NPStream* stream, NPError reason); +- int32 WriteReady(NPStream* stream); +- int32 Write(NPStream* stream, int32 offset, int32 len, void* buffer); ++ int32_t WriteReady(NPStream* stream); ++ int32_t Write(NPStream* stream, int32_t offset, int32_t len, void* buffer); + void StreamAsFile(NPStream* stream, const char* fname); + + protected: +diff -Naur freepv-0.3.0.orig/src/libfreepv/SPiVparser.cpp freepv-0.3.0/src/libfreepv/SPiVparser.cpp +--- freepv-0.3.0.orig/src/libfreepv/SPiVparser.cpp 2009-07-15 14:48:53.000000000 +0200 ++++ freepv-0.3.0/src/libfreepv/SPiVparser.cpp 2009-07-15 14:49:03.000000000 +0200 +@@ -490,7 +490,7 @@ + { + char * aux_url=NULL; + char * url=(char*) _url; +- if(aux_url = strrchr (_url,'/')) ++ if(aux_url == strrchr (_url,'/')) + { + url=aux_url; + url++; diff --git a/media-gfx/freepv/freepv-0.3.0.ebuild b/media-gfx/freepv/freepv-0.3.0-r1.ebuild index 0627051a0b71..c96c34370fd7 100644 --- a/media-gfx/freepv/freepv-0.3.0.ebuild +++ b/media-gfx/freepv/freepv-0.3.0-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/freepv/freepv-0.3.0.ebuild,v 1.2 2009/06/13 20:54:39 voyageur Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/freepv/freepv-0.3.0-r1.ebuild,v 1.1 2009/07/15 13:31:09 voyageur Exp $ EAPI=2 @@ -18,7 +18,7 @@ IUSE="" DEPEND="dev-libs/libxml2 media-libs/jpeg media-libs/libpng - net-libs/xulrunner + net-libs/xulrunner:1.9 virtual/glut sys-libs/zlib x11-libs/libXmu @@ -30,6 +30,7 @@ S=${WORKDIR}/${P/_beta?/} src_prepare() { epatch "${FILESDIR}"/${P}-gcc44.patch + epatch "${FILESDIR}"/${P}-xulrunner-1.9.1.patch } src_install() { |