Building cgit on macOS

Checkout and init the submodule.

git clone git://git.zx2c4.com/cgit
cd cgit
git submodule init
git submodule update

Install gettext through brew.

brew install gettext

Then create a cgit.conf file and set complier/linker flags to use the gettext library installed before.

CFLAGS = -g -O2 -Wall -I/usr/local/opt/gettext/include
LDFLAGS = -L/usr/local/opt/gettext/lib

Finish up with a simple make command.

make

©Cadunico Labs 2008 - 2022