Install MacPorts
Optionally update MacPorts
sudo port selfupdate
Download the port tree of HFST
- Unpack the port tree
- Add the port tree dir
file:///.../hfst-macport/
to/opt/local/etc/macports/sources.conf
sudo port install hfst
Upgrade pip
pip install --upgrade pip
python3 -m pip install --upgrade pip
Install Python bindings for HFST
pip install hfst
python3 -m pip install hfst
Clone omorfi
git clone https://github.com/flammie/omorfi.git
Run ./autogen.sh
If needed, brew install autoconf automake libtool
Run ./configure
Run make && make -j install
The above generally no longer works
If it complains the bindings lib is out of date:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig