Skip to content

Instantly share code, notes, and snippets.

@tomshen
Created July 12, 2017 12:55
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomshen/ad2a60403bf8de4a64928144b85e2bc7 to your computer and use it in GitHub Desktop.
Save tomshen/ad2a60403bf8de4a64928144b85e2bc7 to your computer and use it in GitHub Desktop.
[WIP] Installing surf 2.0 on macOS 10.12.5
# Install dependencies
brew install cmake enchant gstreamermm gtk+3 libnotify libsecret libsoup webp
git clone git@github.com:hunspell/hyphen.git
cd hyphen
autoreconf -fvi
./configure
make
make install
cd ..

# Build webkitgtk-2
wget https://webkitgtk.org/releases/webkitgtk-2.16.5.tar.xz
tar xf webkitgtk-2.16.5.tar.xz
cd webkitgtk-2.16.5
export CPPFLAGS="-I/opt/local/include"
export LDFLAGS="-L/opt/local/lib"
export PKG_CONFIG_PATH=/usr/local/opt/libffi/lib/pkgconfig
cmake -DPORT=GTK -DENABLE_GEOLOCATION=FALSE -DENABLE_OPENGL=FALSE -DENABLE_MINIBROWSER=ON -DCMAKE_BUILD_TYPE=Release
make -j`nproc` # fails at this point
sudo make install

wget http://dl.suckless.org/surf/surf-2.0.tar.gz

Of possible interest: astroidmail/astroid#235 (comment)

@jacks0n9
Copy link

jacks0n9 commented Mar 6, 2021

Dude thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment