2012-07-23 01:39:22 +04:00
|
|
|
#!/usr/local/bin/bash -e
|
2012-07-18 11:23:37 +04:00
|
|
|
|
2012-07-23 01:39:22 +04:00
|
|
|
echo "Tested on FreeBSD 9. Please see README.md for info on older systems."
|
|
|
|
|
2012-07-23 01:42:33 +04:00
|
|
|
if [ "`pkg_info | grep -i cgal `" ]; then
|
2012-07-23 01:39:22 +04:00
|
|
|
echo Stopping. Please remove any CGAL packages you have installed and restart
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "`pkg_info | grep -i opencsg`" ]; then
|
|
|
|
echo Stopping. Please remove any OpenCSG packages you have installed and restart
|
|
|
|
exit
|
|
|
|
fi
|
2012-07-18 11:35:02 +04:00
|
|
|
|
2012-07-18 11:23:37 +04:00
|
|
|
OPENSCADDIR=$PWD
|
|
|
|
if [ ! -f $OPENSCADDIR/openscad.pro ]; then
|
|
|
|
echo "Must be run from the OpenSCAD source root directory"
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
. ./scripts/setenv-freebsdbuild.sh
|
|
|
|
|
|
|
|
pkg_add -r bison boost-libs cmake git bash eigen2 flex gmake gmp mpfr
|
|
|
|
pkg_add -r xorg libGLU libXmu libXi xorg-vfbserver glew
|
|
|
|
pkg_add -r qt4-corelib qt4-gui qt4-moc qt4-opengl qt4-qmake qt4-rcc qt4-uic
|
|
|
|
|
|
|
|
BASEDIR=/usr/local ./scripts/linux-build-dependencies.sh cgal-use-sys-libs
|
|
|
|
BASEDIR=/usr/local ./scripts/linux-build-dependencies.sh opencsg
|