summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2012-07-18 07:23:37 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2012-07-18 07:23:37 (GMT)
commitd30775a5c0c2c08b63786cf56ef6955cfa61adaa (patch)
tree2c31e5e0c3d3875cb624b012fd02ba906d430c8b
parent821c064f3e6d624152b49f2297b750bdc53f3a5f (diff)
create bsd build scripts for freebsd 9.
-rwxr-xr-xscripts/freebsd-build-dependencies.sh16
-rwxr-xr-xscripts/linux-build-dependencies.sh8
-rw-r--r--scripts/setenv-freebsdbuild.sh6
3 files changed, 29 insertions, 1 deletions
diff --git a/scripts/freebsd-build-dependencies.sh b/scripts/freebsd-build-dependencies.sh
new file mode 100755
index 0000000..459d240
--- /dev/null
+++ b/scripts/freebsd-build-dependencies.sh
@@ -0,0 +1,16 @@
+#!/bin/sh -e
+
+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
diff --git a/scripts/linux-build-dependencies.sh b/scripts/linux-build-dependencies.sh
index 36dc2ee..bc1e74d 100755
--- a/scripts/linux-build-dependencies.sh
+++ b/scripts/linux-build-dependencies.sh
@@ -188,12 +188,18 @@ build_opencsg()
sed -ibak s/"\-lXmu"/"\-L\/usr\/lib64\/libXmu.so.6"/ src/Makefile
fi
+ if [ `uname | grep FreeBSD` ]; then
+ sed -ibak s/X11R6/local/g src/Makefile
+ fi
+
if [ "`command -v qmake-qt4`" ]; then
qmake-qt4
else
qmake
fi
+
make
+
cp -av lib/* $DEPLOYDIR/lib
cp -av include/* $DEPLOYDIR/include
}
@@ -235,7 +241,7 @@ if [ ! $NUMCPU ]; then
fi
if [ ! -d $BASEDIR/bin ]; then
- mkdir --parents $BASEDIR/bin
+ mkdir -p $BASEDIR/bin
fi
echo "Using basedir:" $BASEDIR
diff --git a/scripts/setenv-freebsdbuild.sh b/scripts/setenv-freebsdbuild.sh
new file mode 100644
index 0000000..49f1783
--- /dev/null
+++ b/scripts/setenv-freebsdbuild.sh
@@ -0,0 +1,6 @@
+# run with '. ./scripts/setenv-freebsdbuild.sh'
+
+# use in conjuction with freebsd-build-dependencies.sh
+
+QMAKESPEC=freebsd-g++
+QTDIR=/usr/local/share/qt4
contact: Jan Huwald // Impressum