summaryrefslogtreecommitdiff
path: root/scripts/linux-build-dependencies.sh
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2012-07-04 05:27:31 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2012-07-04 05:27:31 (GMT)
commitbbef180a218aa59f03ea7bcf389ff3d1a357907d (patch)
tree01f4f4b521a288684da61fa92306460ef1c2a666 /scripts/linux-build-dependencies.sh
parent984f7dc3f916232375ec7efe3b240e4c286a4c3c (diff)
kludge-fix for broken Makefiles for opencsg + glew on Fedora 64bit
Diffstat (limited to 'scripts/linux-build-dependencies.sh')
-rwxr-xr-xscripts/linux-build-dependencies.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/linux-build-dependencies.sh b/scripts/linux-build-dependencies.sh
index a789e9d..286399b 100755
--- a/scripts/linux-build-dependencies.sh
+++ b/scripts/linux-build-dependencies.sh
@@ -16,7 +16,7 @@ BASEDIR=$HOME/openscad_deps
OPENSCADDIR=$PWD
SRCDIR=$BASEDIR/src
DEPLOYDIR=$BASEDIR
-NUMCPU=4 # paralell builds for some libraries
+NUMCPU=2 # paralell builds for some libraries
printUsage()
{
@@ -145,6 +145,10 @@ build_glew()
tar xzf glew-$version.tgz
cd glew-$version
mkdir -p $DEPLOYDIR/lib/pkgconfig
+
+ # uncomment this kludge for Fedora 64bit
+ # sed -i s/"\-lXmu"/"\-L\/usr\/lib64\/libXmu.so.6"/ config/Makefile.linux
+
GLEW_DEST=$DEPLOYDIR make -j$NUMCPU
GLEW_DEST=$DEPLOYDIR make install
}
@@ -161,6 +165,10 @@ build_opencsg()
tar xzf OpenCSG-$version.tar.gz
cd OpenCSG-$version
sed -i s/example// opencsg.pro # examples might be broken without GLUT
+
+ # uncomment this kludge for Fedora 64bit
+ # sed -i s/"\-lXmu"/"\-L\/usr\/lib64\/libXmu.so.6"/ src/Makefile
+
qmake-qt4
make
install -v lib/* $DEPLOYDIR/lib
contact: Jan Huwald // Impressum