From 3dae4b359e9494c34cc6056e43f1c835fca53100 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 28 Apr 2010 01:10:31 +0200 Subject: Add custom.libdir property to sneak in eg a alt. GL lib --- make/make.jogl.all.linux-x86_64.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'make/make.jogl.all.linux-x86_64.sh') diff --git a/make/make.jogl.all.linux-x86_64.sh b/make/make.jogl.all.linux-x86_64.sh index b6c5e9d63..b17cd2f15 100644 --- a/make/make.jogl.all.linux-x86_64.sh +++ b/make/make.jogl.all.linux-x86_64.sh @@ -4,6 +4,29 @@ if [ -e ../../setenv-build-jogl-x86_64.sh ] ; then . ../../setenv-build-jogl-x86_64.sh fi +if [ -z "$ANT_PATH" ] ; then + if [ -e /usr/share/ant/bin/ant -a -e /usr/share/ant/lib/ant.jar ] ; then + ANT_PATH=/usr/share/ant + export ANT_PATH + echo autosetting ANT_PATH to $ANT_PATH + fi +fi +if [ -z "$ANT_PATH" ] ; then + echo ANT_PATH does not exist, set it + exit +fi + +if [ "$1" = "-libdir" ] ; then + shift + if [ -z "$1" ] ; then + echo libdir argument missing + print_usage + exit + fi + CUSTOMLIBDIR="-Dcustom.libdir=$1" + shift +fi + # -Djogl.cg=1 -Dx11.cg.lib=../../lib-linux-x86_64 # -Dc.compiler.debug=true \ # -Dbuild.noarchives=true \ @@ -15,7 +38,11 @@ fi # -DisX11=true \ # -Dbuild.noarchives=true \ +#LD_LIBRARY_PATH=/opt-linux-x86_64/mesa-7.8.1/lib64 +#export LD_LIBRARY_PATH + ant \ + $CUSTOMLIBDIR \ -Dbuild.noarchives=true \ -Djogl.cg=1 -Dx11.cg.lib=../../lib-linux-x86_64 \ -Drootrel.build=build-x86_64 \ -- cgit v1.2.3