Kicad SVN builds for OSX

I’ve managed to cobble together some universal builds of kicad for mac osx. These a based on wxMac2.8 so the graphics is still very screwy. I might try a wxCocoa build some time in the future.

The script which is on a cron job to run every day is below.

#!/bin/sh

#Make a nightly build of kicad

#update from svn
cd /Volumes/Scratch/kicad-sources
svn up
new_version=`svn info | grep Revision | cut -f 2 -d\ `
old_version=`cat /temp/install/version.txt`
if [ $new_version -gt $old_version ]
then

#build it
cd build/release
cmake ../../ -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config -DwxWidgets_ROOT_DIR=/Volumes/Scratch/wxMac-2.8.8/include -DCMAKE_INSTALL_PREFIX=/temp/install -DBoost_INCLUDE_DIR=/Volumes/Scratch/kicad-sources -DCMAKE_OSX_ARCHITECTURES=”ppc -arch i386″ -DCPP_FLAGS=”-arch i386 -arch ppc”

make clean
if make
then
make install

#bundle
cd /temp/
tar -czf kicad_osx_v`cat install/version.txt`.tgz install

#upload
curl -T kicad_osx_v`cat install/version.txt`.tgz ftp://user:password@ftp.brokentoaster.com/

echo $new_version > /temp/install/version.txt
fi
else
echo “Kicad is uptodate 🙂 “
fi

You can find the builds at http://www.brokentoaster.com/kicad/. No guarantees on usefulness.

Leave a Reply