I don´t think it´s much more then 300. One only needs to substitute X11 calls on gtk2 widgetset with carbon calls, make sure all ifdefs are darwin prepared, do lot´s of testing and create a tutorial about how to get lazarus working with native gtk2.
Is there anybody out there willing to get started on this for $300?
Did anyone ever get the native GTK2 libraries to link successfully with Lazarus?
Note that a fix over the weekend now allows switches to be passed to the OS X ld linker (with FPC -k) to be longer than a total of 255 chars. This means that if necessary you can use the ld -dylib_file switch to make substitutions for libraries that are in different locations or have different names than what is expected. You can also put these -k switches in an FPC .cfg file now regardless of how many you have.
At runtime, if necessary, you can use a shell file (.sh) to launch an app after setting (export) the DYLD_LIBRARY_PATH environment in case the GTK2 libraries are installed in a location different from what the executable's dependencies (otool -L) or the libraries' dependencies expect.
With GTK2, it appears as though it's also necessary to export a bunch of env. variables that GTK2 needs, hence the use of a .sh file to launch the app:
export "PANGO_RC_FILE=
export "FONTCONFIG_PATH=
export "GTK_IM_MODULE_FILE=
export "GDK_PIXBUF_MODULE_FILE=
export "GTK_DATA_PREFIX=
export "GTK_EXE_PREFIX=
A .framework file that includes the native GTK2 libraries would be great to have. That way the location of the libraries will be in a standard place (/Libraries/Frameworks). To see an example of a script that creates a framework for libraries, download the mac_qt4pas_x.xx.zip from:
http://users.pandora.be/Jan.Van.hijfte/qtforfpc/fpcqt4.htmlSee create_framework_mac.sh in the .zip.
Thanks.