diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-05-24 02:16:04 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-05-24 02:16:04 (GMT) |
commit | 1c480a554ad4094bfb2337d915be33393a679e13 (patch) | |
tree | a3f7ba72d866e2a99a27b23bb197524af4027fa9 /scripts/uni-build-dependencies.sh | |
parent | 71ab237aada8db602045063f0f1c6082ef06972a (diff) |
make dependency build work for OpenCSG without qmake
Diffstat (limited to 'scripts/uni-build-dependencies.sh')
-rwxr-xr-x | scripts/uni-build-dependencies.sh | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/scripts/uni-build-dependencies.sh b/scripts/uni-build-dependencies.sh index bfc830f..67df0b7 100755 --- a/scripts/uni-build-dependencies.sh +++ b/scripts/uni-build-dependencies.sh @@ -408,11 +408,25 @@ build_opencsg() OPENCSG_QMAKE=qmake-qt4 elif [ "`command -v qmake4`" ]; then OPENCSG_QMAKE=qmake4 - else + elif [ "`command -v qmake`" ]; then OPENCSG_QMAKE=qmake + else + echo qmake not found... using standard OpenCSG makefiles + OPENCSG_QMAKE=make + cp Makefile Makefile.bak + cp src/Makefile src/Makefile.bak + + cat Makefile.bak | sed s/example// |sed s/glew// > Makefile + cat src/Makefile.bak | sed s@^INCPATH.*@INCPATH\ =\ -I$BASEDIR/include\ -I../include\ -I..\ -I.@ > src/Makefile + cp src/Makefile src/Makefile.bak2 + cat src/Makefile.bak2 | sed s@^LIBS.*@LIBS\ =\ -L$BASEDIR/lib\ -L/usr/X11R6/lib\ -lGLU\ -lGL@ > src/Makefile + tmp=$version + build_glu 9.0.0 # todo - autodetect the need for glu + version=$tmp fi cd $BASEDIR/src/OpenCSG-$version/src + OPENCSG_QMAKE=make $OPENCSG_QMAKE cd $BASEDIR/src/OpenCSG-$version @@ -562,7 +576,7 @@ fi build_eigen 3.1.1 build_gmp 5.0.5 build_mpfr 3.1.1 -build_boost 1.49.0 +build_boost 1.53.0 # NB! For CGAL, also update the actual download URL in the function build_cgal 4.1 build_glew 1.9.0 |