diff options
author | don bright <hugh.m.bright@gmail.com> | 2012-12-20 23:35:16 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2012-12-20 23:35:16 (GMT) |
commit | 238cf8570dc9916f2fe18f73c7e0b1ca48653469 (patch) | |
tree | 262069139b9365702b5a344ec66501579db3c959 /scripts/setenv-unibuild.sh | |
parent | 799bb20d38f12f964f7ff3eba6575719a4530097 (diff) |
fixes for netbsd. clarify readme.
Diffstat (limited to 'scripts/setenv-unibuild.sh')
-rw-r--r-- | scripts/setenv-unibuild.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/setenv-unibuild.sh b/scripts/setenv-unibuild.sh index 5462983..e7fe614 100644 --- a/scripts/setenv-unibuild.sh +++ b/scripts/setenv-unibuild.sh @@ -23,6 +23,7 @@ setenv_common() fi DEPLOYDIR=$BASEDIR + export BASEDIR export PATH=$BASEDIR/bin:$PATH export LD_LIBRARY_PATH=$DEPLOYDIR/lib:$DEPLOYDIR/lib64 export LD_RUN_PATH=$DEPLOYDIR/lib:$DEPLOYDIR/lib64 @@ -51,6 +52,20 @@ setenv_freebsd() QTDIR=/usr/local/share/qt4 } +setenv_netbsd() +{ + setenv_common + QMAKESPEC=netbsd-g++ + QTDIR=/usr/pkg/qt4 + PATH=/usr/pkg/qt4/bin:$PATH + LD_LIBRARY_PATH=/usr/pkg/qt4/lib:$LD_LIBRARY_PATH + + export QMAKESPEC + export QTDIR + export PATH + export LD_LIBRARY_PATH +} + setenv_linux_clang() { export CC=clang @@ -69,4 +84,8 @@ if [ "`uname | grep -i 'linux\|debian'`" ]; then fi elif [ "`uname | grep -i freebsd`" ]; then setenv_freebsd +elif [ "`uname | grep -i netbsd`" ]; then + setenv_netbsd +else + echo unknown system. edit $0 fi |