Index: /gs3-extensions/openCV/trunk/src/CASCADE-MAKE.sh
===================================================================
--- /gs3-extensions/openCV/trunk/src/CASCADE-MAKE.sh	(revision 26721)
+++ /gs3-extensions/openCV/trunk/src/CASCADE-MAKE.sh	(revision 26721)
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+source devel.bash
+
+for d in packages ; do
+    echo "Running $d/CASCADE-MAKE.sh"
+
+    (cd $d ; ./CASCADE-MAKE.sh $*)
+
+    if [ $? != 0 ] ; then
+        echo "Error encountered running $d/CASCADE-MAKE.sh"
+        exit 1
+    fi
+done
+
+if [ $makedist = "1"  ] ; then
+  default_toplevel_make_dist $GSDLOS devel.bash
+fi
Index: /gs3-extensions/openCV/trunk/src/devel.bash
===================================================================
--- /gs3-extensions/openCV/trunk/src/devel.bash	(revision 26721)
+++ /gs3-extensions/openCV/trunk/src/devel.bash	(revision 26721)
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+if [ -d cascade-make ] ; then
+  source cascade-make/lib/cascade-lib.bash GEXT_OPENCV . $*
+fi
+
+if [ -z $GEXT_OPENCV ] ; then
+  source gs3-setup.sh
+fi
+
+if [ -z $GEXTOPENCV_DEVEL ] ; then
+    # Set environment variable so we can tell devel.bash has been sourced
+    export GEXTOPENCV_DEVEL=$GEXT_OPENCV
+    
+    export PATH="$GEXTOPENCV_INSTALLED/bin:$PATH"
+    export CFLAGS="-I$GEXTOPENCV_INSTALLED/include $CFLAGS"
+    export CPPFLAGS="-I$GEXTOPENCV_INSTALLED/include $CPPFLAGS"
+    export CXXFLAGS="-I$GEXTOPENCV_INSTALLED/include $CXXFLAGS"
+    export LDFLAGS="-L$GEXTOPENCV_INSTALLED/lib $LDFLAGS"
+    export PKG_CONFIG_PATH="$GEXTOPENCV_INSTALLED/lib/pkgconfig:$PKG_CONFIG_PATH"
+    
+    echo "+Your environment is now setup to compile with the OpenCV Support Library"
+
+else
+    echo "+Your environment is already setup to compile with the OpenCV Support Library"
+fi
Index: /gs3-extensions/openCV/trunk/src/gs3-setup.bat
===================================================================
--- /gs3-extensions/openCV/trunk/src/gs3-setup.bat	(revision 26721)
+++ /gs3-extensions/openCV/trunk/src/gs3-setup.bat	(revision 26721)
@@ -0,0 +1,64 @@
+@echo off
+pushd "%CD%"
+CD /D "%~dp0"
+
+set extdesc=the OpenCV Extension
+
+if "%OS%" == "Windows_NT" goto WinNT
+if "%OS%" == "" goto Win95
+if "%GSDLLANG%" == "en" echo Setup failed - your PATH has not been set
+if "%GSDLLANG%" == "es" echo No se pudo realizar la configuraci¢n - no se ha establecido la RUTA.
+if "%GSDLLANG%" == "fr" echo Echc de l'installation - votre variable PATH n'a pas t ajuste
+if "%GSDLLANG%" == "ru" echo áâ ­®¢ª  ­¥ ã€ « áì -  ­¥ ¡ë« ãáâ ­®¢«¥­
+goto End
+
+:WinNT
+set GEXT_OPENCV=%CD%
+set PATH=%GEXT_OPENCV%\bin\script;%PATH%
+set PATH=%GEXT_OPENCV%\bin\windows;%PATH%
+set PATH=%GEXT_OPENCV%\lib;%PATH%
+set GS_CP_SET=yes
+goto Success
+
+:Win95
+if "%1" == "SetEnv" goto Win95Env
+REM We'll invoke a second copy of the command processor to make
+REM sure there's enough environment space
+COMMAND /E:2048 /K %0 SetEnv
+goto End
+
+:Win95Env
+set GEXT_OPENCV=%CD%
+set PATH="%GEXT_OPENCV%\bin\script";"%PATH%"
+set PATH="%GEXT_OPENCV%\bin\windows";"%PATH%"
+set PATH="%GEXT_OPENCV%\lib";"%PATH%"
+set GS_CP_SET=yes
+goto Success
+
+:Success
+
+set fulldir=%~dp0
+
+:: strip off everything up to (and including) ext dir
+set extdir=%fulldir:*ext\=%
+
+:: remove trailing slash
+set extdir=%extdir:\=%
+
+setlocal enabledelayedexpansion
+if "x%GSDL3EXTS%" == "x" (
+  set GSDL3EXTS=!extdir!
+) else (
+  set GSDL3EXTS=!GSDL3EXTS!:!extdir!
+)
+endlocal & set GSDL3EXTS=%GSDL3EXTS%
+
+echo +Your environment is now setup for %extdesc%
+
+:: Back to delayed expansion to avoid problems with environment
+:: variables with brackets in them, such as "Program Files (x86)"
+
+
+:End
+
+popd
Index: /gs3-extensions/openCV/trunk/src/gs3-setup.sh
===================================================================
--- /gs3-extensions/openCV/trunk/src/gs3-setup.sh	(revision 26721)
+++ /gs3-extensions/openCV/trunk/src/gs3-setup.sh	(revision 26721)
@@ -0,0 +1,57 @@
+
+extdesc="the OpenCV Extension"
+
+full_setup=`pwd`/${BASH_SOURCE}
+fulldir=${full_setup%/*}
+fulldir=${fulldir%/.}
+
+if test -z $GSDLOS ; then
+  GSDLOS=`uname -s | tr '[A-Z]' '[a-z]'`
+  # check for running bash under Cygwin
+  if test "`echo $GSDLOS | sed 's/cygwin//'`" != "$GSDLOS" ;
+  then
+    GSDLOS=windows
+  fi
+  # check for running bash under MinGW/MSys
+  if test "`echo $GSDLOS | sed 's/mingw//'`" != "$GSDLOS" ;
+  then
+    GSDLOS=windows
+  fi
+  echo "GSDLOS was not set.  Setting it to '$GSDLOS'"
+  export GSDLOS
+fi
+	
+
+if [ "x$GEXT_OPENCV" = "x" ] ; then
+  export GEXT_OPENCV=`pwd`
+  export GEXTOPENCV_INSTALLED=$GEXT_OPENCV/$GSDLOS
+
+  if [ -d "$GEXTOPENCV_INSTALLED/bin/script" ] ; then
+    export PATH=$GEXTOPENCV_INSTALLED/bin/script:$PATH
+  fi
+
+  if [ -d "$GEXTOPENCV_INSTALLED/bin" ] ; then
+    export PATH=$GEXTOPENCV_INSTALLED/bin:$PATH
+  fi
+
+  if [ -d "$GEXTOPENCV_INSTALLED/lib" ] ; then
+    if [ "$GSDLOS" = "linux" ] ; then
+      export LD_LIBRARY_PATH=$GEXTOPENCV_INSTALLED/lib:$LD_LIBRARY_PATH
+    elif [ "$GSDLOS" = "darwin" ] ; then
+      export DYLD_LIBRARY_PATH=$GEXTOPENCV_INSTALLED/lib:$DYLD_LIBRARY_PATH
+    fi
+  fi
+
+  extdir=${GEXT_OPENCV##*/}
+
+  if [ "x$GSDL3EXTS" = "x" ] ; then
+    export GSDL3EXTS=$extdir
+  else 
+    export GSDL3EXTS=$GSDL3EXTS:$extdir
+  fi
+
+
+  echo "+Your environment is now setup for $extdesc"
+else
+  echo "+Your environment is already setup for $extdesc"
+fi
