Changeset 82858
- Timestamp:
- 08/20/11 20:18:24 (4 years ago)
- Location:
- trunk/dports/www/firefox-x11
- Files:
-
- 1 deleted
- 2 edited
-
Portfile (modified) (4 diffs)
-
files/PR-623797.patch (deleted)
-
files/plugin-instance-nococoa.patch (modified) (17 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/www/firefox-x11/Portfile
r80651 r82858 8 8 set component firefox 9 9 categories www x11 10 version 5.0.110 version 6.0 11 11 platforms darwin 12 12 maintainers jeremyhu openmaintainer … … 27 27 use_bzip2 yes 28 28 29 checksums md5 6d1f43e402cec84459a3d7f950bd5192\30 sha1 c93b3513e160d87535a9d61c5e06a6a701e9cd3e\31 rmd160 d80a2d64a4a712e530b6f91661eae41f6d1e491e29 checksums sha1 abcb3cc3907d5217726f457085d00b3995fb469b \ 30 rmd160 b1f586d4e9889f3b5449c00e4bf3340d3dcca0da \ 31 sha256 cc3fb554ca02358e000502a1023d5ba01e6d18ae30c719f5a3b1ce1ad8334973 32 32 33 33 worksrcdir mozilla-release … … 180 180 181 181 # Don't use the system X11 182 reinplace "s:/usr/X11R6:${prefix}:" ${worksrcpath}/modules/plugin/base/src/nsPluginsDirUnix.cpp 182 reinplace "s:/usr/X11R6:${prefix}:" ${worksrcpath}/dom/plugins/base/nsPluginsDirUnix.cpp 183 reinplace "s/libXt.so.6:libXext.so/libXt.dylib:libXext.dylib/" ${worksrcpath}/dom/plugins/base/nsPluginsDirUnix.cpp 183 184 184 185 # Set the right install_name on the libs … … 219 220 reinplace "s:libcanberra.so.0:${prefix}/lib/libcanberra.0.dylib:" ${worksrcpath}/widget/src/gtk2/nsSound.cpp 220 221 221 reinplace "s:libgtk-x11-2.0.dylib:${prefix}/lib/libgtk-x11-2.0.dylib:" ${worksrcpath}/dom/plugins/PluginModuleChild.cpp222 223 222 reinplace "s:libXss.so.1:${prefix}/lib/libXss.1.0.0.dylib:" ${worksrcpath}/widget/src/qt/nsIdleServiceQt.cpp 224 223 reinplace "s:libesd.so.0:${prefix}/lib/libesd.0.dylib:" ${worksrcpath}/widget/src/qt/nsSound.cpp -
trunk/dports/www/firefox-x11/files/plugin-instance-nococoa.patch
r79528 r82858 1 diff -Naurp mozilla-central.orig/dom/plugins/PluginInstanceChild.cpp mozilla-central/dom/plugins/PluginInstanceChild.cpp 2 --- dom/plugins/PluginInstanceChild.cpp 2010-12-14 17:02:43.000000000 -0800 3 +++ dom/plugins/PluginInstanceChild.cpp 2010-12-21 14:04:20.000000000 -0800 4 @@ -126,7 +126,7 @@ PluginInstanceChild::PluginInstanceChild 1 --- dom/plugins/base/nsNPAPIPlugin.cpp 2011-08-11 17:40:55.000000000 -0400 2 +++ dom/plugins/base/nsNPAPIPlugin.cpp 2011-08-16 09:43:33.000000000 -0400 3 @@ -76,17 +76,17 @@ 4 #include "nsIPrincipal.h" 5 #include "nsWildCard.h" 6 7 #include "nsIXPConnect.h" 8 9 #include "nsIObserverService.h" 10 #include <prinrval.h> 11 12 -#ifdef XP_MACOSX 13 +#ifdef MOZ_WIDGET_COCOA 14 #include <Carbon/Carbon.h> 15 #include <ApplicationServices/ApplicationServices.h> 16 #include <OpenGL/OpenGL.h> 17 #endif 18 19 // needed for nppdf plugin 20 #ifdef MOZ_WIDGET_GTK2 21 #include <gdk/gdk.h> 22 --- dom/plugins/ipc/PluginInstanceChild.cpp 2011-08-11 17:40:55.000000000 -0400 23 +++ dom/plugins/ipc/PluginInstanceChild.cpp 2011-08-16 10:18:22.000000000 -0400 24 @@ -123,17 +123,17 @@ 25 , mPluginWndProc(0) 26 , mPluginParentHWND(0) 27 , mCachedWinlessPluginHWND(0) 28 , mWinlessPopupSurrogateHWND(0) 29 , mWinlessThrottleOldWndProc(0) 5 30 , mWinlessHiddenMsgHWND(0) 6 31 #endif // OS_WIN … … 11 36 , mEventModel(NPEventModelCarbon) 12 37 #endif 13 @@ -180,7 +180,7 @@ PluginInstanceChild::~PluginInstanceChil 38 , mShColorSpace(nsnull) 39 , mShContext(nsnull) 40 , mDrawingModel(NPDrawingModelCoreGraphics) 41 , mCurrentEvent(nsnull) 42 #endif 43 @@ -171,17 +171,17 @@ 44 #endif // OS_WIN 45 } 46 47 PluginInstanceChild::~PluginInstanceChild() 48 { 14 49 #if defined(OS_WIN) 15 50 NS_ASSERTION(!mPluginWindowHWND, "Destroying PluginInstanceChild without NPP_Destroy?"); … … 20 55 ::CGColorSpaceRelease(mShColorSpace); 21 56 } 22 diff -Naurp mozilla-central.orig/dom/plugins/PluginInstanceChild.h mozilla-central/dom/plugins/PluginInstanceChild.h 23 --- dom/plugins/PluginInstanceChild.h 2010-12-14 17:02:43.000000000 -0800 24 +++ dom/plugins/PluginInstanceChild.h 2010-12-21 14:04:20.000000000 -0800 25 @@ -44,7 +44,7 @@ 57 if (mShContext) { 58 ::CGContextRelease(mShContext); 59 } 60 #endif 61 } 62 --- dom/plugins/ipc/PluginInstanceChild.h 2011-08-11 17:40:55.000000000 -0400 63 +++ dom/plugins/ipc/PluginInstanceChild.h 2011-08-16 10:12:11.000000000 -0400 64 @@ -40,17 +40,17 @@ 65 #define dom_plugins_PluginInstanceChild_h 1 66 67 #include "mozilla/plugins/PPluginInstanceChild.h" 68 #include "mozilla/plugins/PluginScriptableObjectChild.h" 26 69 #include "mozilla/plugins/StreamNotifyChild.h" 70 #include "mozilla/plugins/PPluginSurfaceChild.h" 27 71 #if defined(OS_WIN) 28 72 #include "mozilla/gfx/SharedDIBWin.h" … … 32 76 #include "base/timer.h" 33 77 #endif 34 @@ -370,7 +370,7 @@ private: 78 79 #include "npfunctions.h" 80 #include "nsAutoPtr.h" 81 #include "nsTArray.h" 82 #include "ChildAsyncCall.h" 83 @@ -402,17 +402,17 @@ 84 }; 85 gfx::SharedDIBWin mSharedSurfaceDib; 86 struct { 87 PRUint16 doublePass; 88 HDC hdc; 35 89 HBITMAP bmp; 36 90 } mAlphaExtract; … … 41 95 #if defined(__i386__) 42 96 NPEventModel mEventModel; 43 diff -Naurp mozilla-central.orig/dom/plugins/PluginInstanceParent.cpp mozilla-central/dom/plugins/PluginInstanceParent.cpp 44 --- dom/plugins/PluginInstanceParent.cpp 2010-12-14 17:02:43.000000000 -0800 45 +++ dom/plugins/PluginInstanceParent.cpp 2010-12-21 14:04:20.000000000 -0800 46 @@ -108,7 +108,7 @@ PluginInstanceParent::PluginInstancePare 47 void 48 PluginInstanceParent::InitQuirksModes(const nsCString& aMimeType) 97 #endif 98 CGColorSpaceRef mShColorSpace; 99 CGContextRef mShContext; 100 int16_t mDrawingModel; 101 nsCARenderer mCARenderer; 102 --- dom/plugins/ipc/PluginInstanceParent.cpp 2011-08-11 17:40:55.000000000 -0400 103 +++ dom/plugins/ipc/PluginInstanceParent.cpp 2011-08-16 10:20:36.000000000 -0400 104 @@ -126,17 +126,17 @@ 49 105 { 50 -#ifdef OS_MACOSX 51 +#ifdef MOZ_WIDGET_COCOA 52 NS_NAMED_LITERAL_CSTRING(flash, "application/x-shockwave-flash"); 53 // Flash sends us Invalidate events so we will use those 54 // instead of the refresh timer. 55 @@ -127,7 +127,7 @@ PluginInstanceParent::~PluginInstancePar 106 if (mNPP) 107 mNPP->pdata = NULL; 108 109 #if defined(OS_WIN) 56 110 NS_ASSERTION(!(mPluginHWND || mPluginWndProc), 57 111 "Subclass was not reset correctly before the dtor was reached!"); … … 62 116 DeallocShmem(mShSurface); 63 117 } 64 @@ -1427,7 +1427,7 @@ PluginInstanceParent::AnswerPluginFocusC 118 if (mShColorSpace) 119 ::CGColorSpaceRelease(mShColorSpace); 120 delete mIOSurface; 121 if (mDrawingModel == NPDrawingModelCoreAnimation) { 122 mParent->RemoveFromRefreshTimer(this); 123 @@ -1762,16 +1762,16 @@ 124 ::SendMessage(mPluginHWND, gOOPPPluginFocusEvent, gotFocus ? 1 : 0, 0); 125 return true; 126 #else 127 NS_NOTREACHED("PluginInstanceParent::AnswerPluginFocusChange not implemented!"); 128 return false; 65 129 #endif 66 130 } … … 71 135 PluginInstanceParent::Invalidate() 72 136 { 73 diff -Naurp mozilla-central.orig/dom/plugins/PluginInstanceParent.h mozilla-central/dom/plugins/PluginInstanceParent.h 74 --- dom/plugins/PluginInstanceParent.h 2010-12-14 17:02:43.000000000 -0800 75 +++ dom/plugins/PluginInstanceParent.h 2010-12-21 14:04:20.000000000 -0800 76 @@ -43,7 +43,7 @@ 137 NPRect windowRect = {0, 0, mShHeight, mShWidth}; 138 RecvNPN_InvalidateRect(windowRect); 139 } 140 #endif 141 --- dom/plugins/ipc/PluginInstanceParent.h 2011-08-11 17:40:55.000000000 -0400 142 +++ dom/plugins/ipc/PluginInstanceParent.h 2011-08-16 10:07:11.000000000 -0400 143 @@ -38,17 +38,17 @@ 144 145 #ifndef dom_plugins_PluginInstanceParent_h 146 #define dom_plugins_PluginInstanceParent_h 1 147 148 #include "mozilla/plugins/PPluginInstanceParent.h" 77 149 #include "mozilla/plugins/PluginScriptableObjectParent.h" 78 150 #if defined(OS_WIN) … … 83 155 #endif 84 156 85 @@ -256,9 +256,9 @@ public: 157 #include "npfunctions.h" 158 #include "nsAutoPtr.h" 159 #include "nsDataHashtable.h" 160 #include "nsHashKeys.h" 161 #include "nsRect.h" 162 @@ -270,19 +270,19 @@ 163 GetNPP() 164 { 165 return mNPP; 166 } 167 86 168 virtual bool 87 169 AnswerPluginFocusChange(const bool& gotFocus); 88 170 89 171 -#if defined(OS_MACOSX) 90 +#if def MOZ_WIDGET_COCOA172 +#if defined(MOZ_WIDGET_COCOA) 91 173 void Invalidate(); 92 174 -#endif // definied(OS_MACOSX) … … 94 176 95 177 nsresult AsyncSetWindow(NPWindow* window); 96 nsresult GetSurface(gfxASurface** aSurface); 97 @@ -308,7 +308,7 @@ private: 178 nsresult GetImage(mozilla::layers::ImageContainer* aContainer, mozilla::layers::Image** aImage); 179 nsresult GetImageSize(nsIntSize* aSize); 180 #ifdef XP_MACOSX 181 nsresult IsRemoteDrawingCoreAnimation(PRBool *aDrawing); 182 #endif 183 nsresult SetBackgroundUnknown(); 184 @@ -345,25 +345,25 @@ 185 private: 186 gfx::SharedDIBWin mSharedSurfaceDib; 187 nsIntRect mPluginPort; 188 nsIntRect mSharedSize; 189 HWND mPluginHWND; 98 190 WNDPROC mPluginWndProc; 99 191 bool mNestedEventState; … … 104 196 Shmem mShSurface; 105 197 size_t mShWidth; 106 @@ -316,7 +316,7 @@ private: 198 size_t mShHeight; 107 199 CGColorSpaceRef mShColorSpace; 108 200 int16_t mDrawingModel; … … 113 205 // ObjectFrame layer wrapper 114 206 nsRefPtr<gfxASurface> mFrontSurface; 115 diff -Naurp mozilla-central.orig/dom/plugins/PluginModuleChild.cpp mozilla-central/dom/plugins/PluginModuleChild.cpp 116 --- dom/plugins/PluginModuleChild.cpp 2010-12-14 17:02:43.000000000 -0800 117 +++ dom/plugins/PluginModuleChild.cpp 2010-12-21 14:04:20.000000000 -0800 118 @@ -73,7 +73,7 @@ 207 // For windowless+transparent instances, this surface contains a 208 // "pretty recent" copy of the pixels under its <object> frame. 209 // On the plugin side, we use this surface to avoid doing alpha 210 // recovery when possible. This surface is created and owned by 211 // the browser, but a "read-only" reference is sent to the plugin. 212 --- dom/plugins/ipc/PluginModuleChild.cpp 2011-08-11 17:40:55.000000000 -0400 213 +++ dom/plugins/ipc/PluginModuleChild.cpp 2011-08-16 10:24:51.000000000 -0400 214 @@ -68,17 +68,17 @@ 215 216 #include "nsNPAPIPlugin.h" 217 218 #ifdef XP_WIN 219 #include "COMMessageFilter.h" 119 220 #include "nsWindowsDllInterceptor.h" 120 221 #endif … … 125 226 #include "PluginUtilsOSX.h" 126 227 #endif 127 @@ -1556,7 +1556,7 @@ _popupcontextmenu(NPP instance, NPMenu* 228 229 using namespace mozilla::plugins; 230 231 #if defined(XP_WIN) 232 const PRUnichar * kFlashFullscreenClass = L"ShockwaveFlashFullScreen"; 233 @@ -1636,17 +1636,17 @@ 234 #endif 235 236 NPError NP_CALLBACK 237 _popupcontextmenu(NPP instance, NPMenu* menu) 238 { 128 239 PLUGIN_LOG_DEBUG_FUNCTION; 129 240 AssertPluginThread(); … … 134 245 double screenX, screenY; 135 246 136 @@ -2191,7 +2191,7 @@ PluginModuleChild::ResetEventHooks() 137 } 138 #endif 247 const NPCocoaEvent* currentEvent = InstCast(instance)->getCurrentEvent(); 248 if (!currentEvent) { 249 return NPERR_GENERIC_ERROR; 250 } 251 252 @@ -2305,14 +2305,14 @@ 253 return true; 254 #else 255 NS_RUNTIMEABORT( 256 "PluginModuleChild::RecvProcessNativeEventsInRPCCall not implemented!"); 257 return false; 258 #endif 259 } 139 260 140 261 -#ifdef OS_MACOSX … … 143 264 PluginModuleChild::ProcessNativeEvents() { 144 265 CallProcessSomeEvents(); 145 diff -Naurp mozilla-central.orig/dom/plugins/PluginModuleChild.h mozilla-central/dom/plugins/PluginModuleChild.h 146 --- dom/plugins/PluginModuleChild.h 2010-12-14 17:02:43.000000000 -0800 147 +++ dom/plugins/PluginModuleChild.h 2010-12-21 14:04:20.000000000 -0800 148 @@ -193,7 +193,7 @@ public: 266 } 267 #endif 268 --- dom/plugins/ipc/PluginModuleChild.h 2011-08-11 17:40:55.000000000 -0400 269 +++ dom/plugins/ipc/PluginModuleChild.h 2011-08-16 10:16:25.000000000 -0400 270 @@ -50,17 +50,17 @@ 271 #include "npapi.h" 272 #include "npfunctions.h" 273 274 #include "nsAutoPtr.h" 275 #include "nsDataHashtable.h" 276 #include "nsTHashtable.h" 277 #include "nsHashKeys.h" 278 279 -#ifdef OS_MACOSX 280 +#ifdef MOZ_WIDGET_COCOA 281 #include "PluginInterposeOSX.h" 282 #endif 283 284 #include "mozilla/plugins/PPluginModuleChild.h" 285 #include "mozilla/plugins/PluginInstanceChild.h" 286 #include "mozilla/plugins/PluginIdentifierChild.h" 287 288 // NOTE: stolen from nsNPAPIPlugin.h 289 @@ -213,17 +213,17 @@ 290 static void NP_CALLBACK NPN_GetStringIdentifiers(const NPUTF8** aNames, 291 int32_t aNameCount, 292 NPIdentifier* aIdentifiers); 293 static NPIdentifier NP_CALLBACK NPN_GetIntIdentifier(int32_t aIntId); 294 static bool NP_CALLBACK NPN_IdentifierIsString(NPIdentifier aIdentifier); 149 295 static NPUTF8* NP_CALLBACK NPN_UTF8FromIdentifier(NPIdentifier aIdentifier); 150 296 static int32_t NP_CALLBACK NPN_IntFromIdentifier(NPIdentifier aIdentifier); … … 155 301 156 302 void PluginShowWindow(uint32_t window_id, bool modal, CGRect r) { 157 diff -Naurp mozilla-central.orig/dom/plugins/PluginModuleParent.cpp mozilla-central/dom/plugins/PluginModuleParent.cpp 158 --- dom/plugins/PluginModuleParent.cpp 2010-12-14 17:02:44.000000000 -0800 159 +++ dom/plugins/PluginModuleParent.cpp 2010-12-21 14:04:20.000000000 -0800 160 @@ -915,9 +915,11 @@ CAUpdate(nsITimer *aTimer, void *aClosur 303 SendPluginShowWindow(window_id, modal, r.origin.x, r.origin.y, r.size.width, r.size.height); 304 } 305 306 void PluginHideWindow(uint32_t window_id) { 307 SendPluginHideWindow(window_id); 308 --- dom/plugins/ipc/PluginModuleParent.cpp 2011-08-11 17:40:55.000000000 -0400 309 +++ dom/plugins/ipc/PluginModuleParent.cpp 2011-08-16 10:55:23.000000000 -0400 310 @@ -1131,19 +1131,21 @@ 311 #ifdef OS_MACOSX 312 #define DEFAULT_REFRESH_MS 20 // CoreAnimation: 50 FPS 313 314 void 315 CAUpdate(nsITimer *aTimer, void *aClosure) { 161 316 nsTObserverArray<PluginInstanceParent*> *ips = 162 317 static_cast<nsTObserverArray<PluginInstanceParent*> *>(aClosure); … … 170 325 171 326 void 172 diff -Naurp mozilla-central.orig/modules/plugin/base/src/nsNPAPIPlugin.cpp mozilla-central/modules/plugin/base/src/nsNPAPIPlugin.cpp 173 --- modules/plugin/base/src/nsNPAPIPlugin.cpp 2010-12-14 17:03:31.000000000 -0800 174 +++ modules/plugin/base/src/nsNPAPIPlugin.cpp 2010-12-21 14:04:20.000000000 -0800 175 @@ -83,7 +83,7 @@ 176 #include "nsIObserverService.h" 177 #include <prinrval.h> 178 179 -#ifdef XP_MACOSX 180 +#ifdef MOZ_WIDGET_COCOA 181 #include <Carbon/Carbon.h> 182 #include <ApplicationServices/ApplicationServices.h> 183 #include <OpenGL/OpenGL.h> 184 diff -Naurp mozilla-central.orig/toolkit/library/Makefile.in mozilla-central/toolkit/library/Makefile.in 185 --- toolkit/library/Makefile.in 2010-12-14 17:03:37.000000000 -0800 186 +++ toolkit/library/Makefile.in 2010-12-21 14:04:20.000000000 -0800 187 @@ -194,6 +194,9 @@ EXTRA_DSO_LDOPTS += \ 327 PluginModuleParent::AddToRefreshTimer(PluginInstanceParent *aInstance) { 328 if (mCATimerTargets.Contains(aInstance)) { 329 return; 330 } 331 332 --- toolkit/library/Makefile.in 333 +++ toolkit/library/Makefile.in 334 @@ -189,16 +189,19 @@ endif 335 336 ifeq ($(OS_ARCH),Darwin) 337 ifdef MOZ_SYDNEYAUDIO 338 EXTRA_DSO_LDOPTS += \ 339 -framework Carbon \ 188 340 -framework CoreAudio \ 189 341 -framework AudioToolbox \ … … 195 347 endif 196 348 endif 349 350 ifneq (,$(filter GNU GNU_% NetBSD OpenBSD,$(OS_ARCH))) 351 ifdef MOZ_SYDNEYAUDIO 352 EXTRA_DSO_LDOPTS += -lossaudio 353 endif
Note: See TracChangeset
for help on using the changeset viewer.

