forked from gremilkar/AGKIDE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGeanyMacConfig.txt
57 lines (33 loc) · 2.74 KB
/
GeanyMacConfig.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
This may not be the best way to do it but after much trial and error it is what worked for me.
GTK setup
Download https://git.gnome.org/browse/gtk-osx/plain/gtk-osx-build-setup.sh to your home directory and run it:
$ sh gtk-osx-build-setup.sh
It will install jhbuild in ~/Source and create ~/.local/bin/jhbuild
now run the following commands
$ ~/.local/bin/jhbuild bootstrap
$ ~/.local/bin/jhbuild build meta-gtk-osx-bootstrap
$ ~/.local/bin/jhbuild build meta-gtk-osx-core
$ ~/.local/bin/jhbuild build meta-gtk-osx-themes
$ ~/.local/bin/jhbuild build gtk-mac-integration
you now have a reasonably complete GTK installation in your home directory ready for you to build the IDE
Geany IDE setup
Browse to the location of the IDE source code in the terminal and run the following command with the "../../" modified to point to your GTK installation created above (should be /Users/Me/gtk/) as far as I can tell these must be relative paths, absolute paths get a variable prepended to them
Note that if the packages have been updated since these instructions were written you may have to adjust the version numbers on these paths to match
$ export PKG_CONFIG_PATH="../../../../../gtk/source/gtk+-2.24.28:../../../../../gtk/source/pango-1.36.8:../../../../../gtk/source/glib-2.44.1:../../../../../gtk/source/cairo-1.14.0:../../../../../gtk/source/pixman-0.32.6:../../../../../gtk/source/libpng-1.6.17:../../../../../gtk/source/gdk-pixbuf-2.30.8:../../../../../gtk/source/atk-2.16.0"
now run
$ export CFLAGS="-O2 -I$HOME/gtk/inst/include -x objective-c -mmacosx-version-min=10.7"
$ export LIBS="-lgtkmacintegration-gtk2 -L/Users/paulj/gtk/inst/lib"
and finally run this with the prefix path set to where you want the final IDE executable to be, for your first attempt I recommend using this path, the bundler uses it later
$ ./autogen.sh --prefix="$HOME/Projects/Geany-Compiled" --disable-vte
IDE building
All the above should only be done once, after that you can just browse to the IDE source in a terminal and run
$ make
$ make install
to compile the IDE to a binary. Note that if you want to move the source files folder you will need to ./configure it again
IDE bundling
To make distribution easier it is best to bundle the binary into a .app file to do so install the gtk-mac-bundler from here https://wiki.gnome.org/Projects/GTK%2B/OSX/Bundling
Extract GeanyBundle.zip included with the IDE source so that it sits beside the IDE binary folder, e.g. $HOME/Projects/GeanyBundle to use the example above. Browse to this folder in the terminal then run
$ ~/.local/bin/jhbuild shell
$ export PATH=$PREFIX/bin:~/.local/bin:$PATH
$ gtk-mac-bundler AGK2.bundle
If you changed any of the paths above you may need to edit AGK2.bundle in a text editor to modify the paths, good luck!