- OS: MacOS Catalina
10.15.7
- XCode:
Xcode_12.4.xip
(10 GB)
- Gimp MacOS Circle-CI guideline: https://gitlab.gnome.org/Infrastructure/gimp-macos-build/-/blob/master/.circleci/config.yml
- XCode download links: https://stackoverflow.com/a/10335943/3196753
- Install command-line tools
xcode-select --install
- Clone the macos infrastrucure tools:
git clone https://gitlab.gnome.org/Infrastructure/gimp-macos-build/
- Install Rust:
curl https://sh.rustup.rs -sSf | sh -s -- -y
- Install Python 3:
curl -L 'https://www.python.org/ftp/python/3.6.8/python-3.6.8-macosx10.9.pkg' > ~/Downloads/python-3.6.8-macosx10.9.pkg sudo installer -pkg ~/Downloads/python-3.6.8-macosx10.9.pkg -target /
- Install MacOS 10.12 SDK (Optional, to target older Macs)
cd /Library/Developer/CommandLineTools/SDKs sudo curl -L 'https://github.com/phracker/MacOSX-SDKs/releases/download/10.15/MacOSX10.12.sdk.tar.xz' | sudo tar -xzf - echo 'export SDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX10.12.sdk' > ~/.profile echo 'export MACOSX_DEPLOYMENT_TARGET=10.12' >> ~/.profile
- Build/Install and configure JHBuild
cd $HOME mkdir -p ~/.config && ln -s ~/gimp-macos-build/jhbuildrc-gtk-osx-gimp ~/.config/jhbuildrc-custom curl https://gitlab.gnome.org/samm-git/gtk-osx/raw/gimp/gtk-osx-setup.sh > ~/Downloads/gtk-osx-setup.sh chmod +x ~/Downloads/gtk-osx-setup.sh echo 'export PATH="$HOME/.cargo/bin:$HOME/.local/bin:$PATH:$HOME/.new_local/bin"' >> ~/.profile echo 'export ARCHFLAGS="-arch x86_64"' >> ~/.profile source ~/.profile PIPENV_YES=1 ~/Downloads/gtk-osx-setup.sh $HOME/.new_local/bin/jhbuild bootstrap-gtk-osx-gimp cat ~/.profile
- Build/Install gtk-mac-bundler
git clone https://github.com/samm-git/gtk-mac-bundler -b fix-otool cd gtk-mac-bundler make install
- Build/Install bootstrap depdendencies
jhbuild build icu55 meta-gtk-osx-freetype meta-gtk-osx-bootstrap meta-gtk-osx-core
- Cleanup
rm -rf ~/gtk/source
- Build/Install Gimp dependencies
jhbuild build suitesparse lcms libunistring gmp libnettle libtasn1 gnutls libjpeg readline python glib-networking openjpeg gtk-mac-integration poppler poppler-data jhbuild build json-glib p2tc exiv2 gexiv2 ilmbase openexr libwebp libcroco librsvg-24 json-c jhbuild build libmypaint mypaint-brushes libde265 nasm x265 libheif aalib shared-mime-info iso-codes libwmf libmng ghostscript - ## TODO: error implicit declaration of function "pango_font_metrics_new" is invalid in C99. jhbuild build pycairo pygobject pygtk gtk-mac-integration-python
- FIXME: Never got further 😢
Build/Install WebKit dependenciesjhbuild build enchant libpsl sqlite vala gnutls jhbuild buildone libsoup
- Cleanup
rm -rf ~/gtk/source
- Build/Install WebKit
jhbuild buildone webkit
- Cleanup
rm -rf ~/gtk/source
- Build/Install and test babl/gegl
jhbuild build --check babl gegl
- Build/Install Gimp
jhbuild build gimp
- Build/Install Gimp Help
ALL_LINGUAS=en jhbuild build gimp-help-git
- Cleanup
rm -rf ~/gtk/source
- Optionally, configure codesigning/certificates.
- Build DMG
cd ${HOME}/gimp-macos-build/package jhbuild run ./build.sh
- Optionally, notarize package.