diff --git a/deluge/ui/gtkui/gtkui.py b/deluge/ui/gtkui/gtkui.py index 4f730c786..28b892d58 100644 --- a/deluge/ui/gtkui/gtkui.py +++ b/deluge/ui/gtkui/gtkui.py @@ -180,8 +180,8 @@ class GtkUI(object): SetConsoleCtrlHandler(win_handler) if deluge.common.osx_check() and gtk.gdk.WINDOWING == "quartz": - import gtk_osxapplication - self.osxapp = gtk_osxapplication.OSXApplication() + import gtkosx_application + self.osxapp = gtkosx_application.gtkosx_application_get() def on_die(*args): reactor.stop() self.osxapp.connect("NSApplicationWillTerminate", on_die) diff --git a/osx/deluge.bundle b/osx/deluge.bundle index 99b5effbd..3083815e3 100644 --- a/osx/deluge.bundle +++ b/osx/deluge.bundle @@ -8,29 +8,23 @@ ${project}/Info.plist ${prefix}/bin/deluge-gtk - - ${prefix}/bin/deluged - - - ${prefix}/bin/deluge-web - - - ${prefix}/bin/deluge-console - - - ${prefix}/bin/python - + ${prefix}/bin/deluged + ${prefix}/bin/deluge-web + ${prefix}/bin/deluge-console + ${prefix}/bin/python + ${prefix}/lib/gdk-pixbuf-2.0/2.10.0/loaders/*.so ${prefix}/lib/libpyglib-2.0-python.0.dylib ${prefix}/lib/libgtk-quartz-2.0.0.dylib - ${prefix}/lib/libglade-2.0.0.dylib - ${prefix}/lib/libgtkmacintegration.0.dylib + ${prefix}/lib/libglade-2.0.0.0.7dylib + ${prefix}/lib/libgtkmacintegration.2.dylib ${prefix}/lib/librsvg-2.2.dylib - ${prefix}/lib/pango/1.6.0/modules/pango*.so - ${prefix}/lib/libboost_*.dylib - ${prefix}/lib/libtorrent-rasterbar.6.dylib - ${prefix}/lib/libssl.1.0.0.dylib + ${prefix}/lib/pango/1.8.0/modules/pango*.so + ${prefix}/lib/libboost_system.dylib + ${prefix}/lib/libboost_python.dylib + ${prefix}/lib/libtorrent-rasterbar.7.dylib + ${prefix}/lib/libssl.1.0.1.dylib ${project}/../dist/deluge.app/Contents/Resources/ diff --git a/osx/deluge.modules b/osx/deluge.modules index 041ba55df..937f02433 100644 --- a/osx/deluge.modules +++ b/osx/deluge.modules @@ -4,8 +4,14 @@ - + + + + @@ -15,14 +21,23 @@ - - + autogenargs="--enable-python-binding"> + + + + + + + + + + @@ -32,28 +47,27 @@ - - + autogen-template="%(srcdir)s/%(autogen-sh)s --prefix=%(prefix)s --libdir=%(libdir)s -L%(libdir)s %(autogenargs)s" + autogenargs="darwin-i386-cc zlib no-krb5 shared"> + + + - - + makeargs="|| ./b2 architecture=x86 address-model=32 link=shared threading=multi variant=release" + makeinstallargs="|| ./b2 install"> + - + @@ -65,65 +79,36 @@ - - + - + - + - + - + - - - + - - - - - - - - - - - - - - - - - - - diff --git a/osx/jhbuildrc-custom b/osx/jhbuildrc-custom index 73541f4ae..2c9bcc9db 100644 --- a/osx/jhbuildrc-custom +++ b/osx/jhbuildrc-custom @@ -3,12 +3,8 @@ prefix = "/opt/gtk" checkoutroot = os.path.expanduser("~/Source/gtk") -#setup_sdk(target="10.6", sdk_version="10.6", architectures=["i386", "x86_64"]) -setup_sdk(target="10.6", sdk_version="10.6", architectures=["x86_64"]) -#setup_sdk(target="10.6", sdk_version="10.6", architectures=["i386"]) # fails with libtorrent... -#setup_universal_build(target="10.6", sdk_version="10.6", architectures=["i386", "x86_64"]) # fails with glib2... -os.environ["CC"] = "/usr/bin/gcc" -os.environ["CXX"] = "/usr/bin/g++" +#setup_sdk(target="10.6", sdk_version="10.6", architectures=["x86_64"]) +setup_sdk(target="10.6", sdk_version="10.6", architectures=["i386"]) _gtk_osx_use_jhbuild_python = True diff --git a/setup.cfg b/setup.cfg index 92288bc77..2dfe955fd 100644 --- a/setup.cfg +++ b/setup.cfg @@ -9,11 +9,11 @@ all_files = 1 [py2app] app = ['deluge/main.py'] -arch = x86_64 -#arch = i386 +#arch = x86_64 +arch = i386 iconfile = osx/deluge.icns site-packages = false -includes = glib,gio,cairo,pango,pangocairo,atk,gobject,gtk.keysyms, - twisted.internet,twisted.internet.utils,twisted.protocols, - zope.interface,mako.cache,email.mime,libtorrent -frameworks = CoreFoundation,Foundation,AppKit +includes = glib, gio, cairo, pango, pangocairo, atk, gobject, gtk.keysyms, + twisted.internet, twisted.internet.utils, twisted.protocols, + zope.interface, mako.cache, email.mime, libtorrent, gtkosx_application +frameworks = CoreFoundation, Foundation, AppKit