summaryrefslogtreecommitdiffstats
path: root/setenv-jogl.x86_64.sh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2009-03-13 12:10:29 +0000
committerSven Gothel <[email protected]>2009-03-13 12:10:29 +0000
commit8417ded5c1f892b58a4608ff248842c8aed4026a (patch)
treef9ce74136307bd122c72cec3babd03c26052e9df /setenv-jogl.x86_64.sh
parente03aaaf1b14cc40cb2c8f2158acf02390c4fafe6 (diff)
Adapt to JOGL nwi package changes
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@320 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'setenv-jogl.x86_64.sh')
-rw-r--r--setenv-jogl.x86_64.sh47
1 files changed, 47 insertions, 0 deletions
diff --git a/setenv-jogl.x86_64.sh b/setenv-jogl.x86_64.sh
new file mode 100644
index 0000000..a31f5de
--- /dev/null
+++ b/setenv-jogl.x86_64.sh
@@ -0,0 +1,47 @@
+#! /bin/sh
+
+if [ -z "$1" ] ; then
+ echo "Usage: $0 {JOGL_ALL|JOGL_ES1_MIN|JOGL_ES1_MAX|JOGL_ES2_MIN|JOGL_ES2_MAX|JOGL_GL2ES12_MIN|JOGL_GL2ES12_MAX|JOGL_GL2_MIN|JOGL_GL2_MAX}"
+else
+
+JOGL_PROFILE=$1
+shift
+
+echo JOGL PROFILE: $JOGL_PROFILE
+
+CVSROOT=":pserver:[email protected]:/cvs"
+THISDIR=`pwd`
+export CVSROOT THISDIR
+
+if [ -x /devtools/etc/profile.ant ] ; then
+ . /devtools/etc/profile.ant
+fi
+
+J2RE_HOME=/opt-linux-x86_64/jre6
+JAVA_HOME=/opt-linux-x86_64/j2se6
+CP_SEP=:
+
+export LIBXCB_ALLOW_SLOPPY_LOCK=1
+
+. $THISDIR/../jogl/etc/profile.jogl $THISDIR/../jogl/build-x86_64 $THISDIR/../jogl/build-x86_64/obj $JOGL_PROFILE
+
+GLUEGEN_JAR=$THISDIR/../gluegen/build-x86_64/gluegen-rt.jar
+GLUEGEN_OS=$THISDIR/../gluegen/build-x86_64/obj
+
+LIB=$THISDIR/lib
+
+# CLASSPATH=$JAVA_HOME/jre/lib/rt.jar:.:build-x86_64/classes
+CLASSPATH=.:$THISDIR/build-x86_64/jogl-demos.jar:$GLUEGEN_JAR:$JOGL_CLASSPATH
+for i in $LIB/*jar ; do
+ CLASSPATH=$CLASSPATH:$i
+done
+export CLASSPATH
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GLUEGEN_OS:$THISDIR/../jogl/build-x86_64/obj
+
+echo JOGL_CLASSPATH: $JOGL_CLASSPATH
+
+PATH=$J2RE_HOME/bin:$JAVA_HOME/bin:$PATH
+export PATH
+
+fi
+