Last active
December 13, 2015 23:39
-
-
Save vtjnash/4993365 to your computer and use it in GitHub Desktop.
mac-gtk build for distribution for julia
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/sh | |
# This script will attempt to download and build GTK+-2, | |
# including dependencies (cairo, pango, etc), in ~/gtk | |
# (it also puts stuff in ~/.local, ~/Source, ~/.jhbuildrc*) | |
# While this should work, it may be preferable to execute | |
# each line separately in the terminal to catch errors | |
# MAKE SURE YOU DO NOT HAVE BREW OR MACPORTS IN YOUR PATH | |
# BEFORE RUNNING THIS SCRIPT. e.g.: | |
# export PATH=/usr/bin:/bin:/usr/sbin:/sbin | |
curl -O https://raw.github.com/jralls/gtk-osx-build/master/gtk-osx-build-setup.sh | |
sh gtk-osx-build-setup.sh | |
export PATH=$PATH:~/.local/bin/ | |
sed -i -e 's/^setup_sdk/#setup_sdk/g' ~/.jhbuildrc-custom | |
cat << EOF >> .jhbuildrc-custom | |
setup_sdk(target=_target, sdk_version=_target, architectures=[_default_arch]) | |
os.environ["DYLD_LIBRARY_PATH"] = "" | |
build_policy = "updated-deps" | |
modules = [ "meta-gtk-osx-bootstrap", | |
"freetype", "fontconfig", | |
"meta-gtk-osx-core", | |
"meta-gtk-osx-themes", | |
"gtk-quartz-engine" ] | |
EOF | |
jhbuild bootstrap --skip=libiconv --ignore-system | |
jhbuild build | |
cd ~/gtk/source | |
curl -O http://ftp.acc.umu.se/pub/gnome/sources/gtk-mac-bundler/0.7/gtk-mac-bundler-0.7.3.tar.xz | |
7z x gtk-mac-bundler-0.7.3.tar.xz -so | tar -xv | |
cd gtk-mac-bundler-0.7.3 | |
make install | |
cd ~/gtk | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment