anchor.diff:      svn checkout http://svn.xiph.org/tags/theora/libtheora-1.1.1/ "%DEPS%\theora"
   )
   
  -IF NOT EXIST "%DEPS%\theora\%WIN32_OR_X64%\Release_SSE2\libtheora_static.lib". (
  +IF NOT EXIST "%DEPS%\theora\win32\VS2008\%WIN32_OR_X64%\Release_SSE2\libtheora_static.lib". (
       cd "%DEPS%\theora\win32\VS2008"
       cecho {0D}Building Theora. Please be patient, this will take a while.{# #}{\n}
       MSBuild libtheora_static.sln /p:configuration=Debug /t:libtheora_static /clp:ErrorsOnly /nologo /m:%NUMBER_OF_PROCESSORS%
  
positive.code:     mkdir lib\Release
      mkdir lib\Debug
      mkdir include
      cd zlib-1.2.7
      IF NOT %ERRORLEVEL%==0 GOTO :ERROR
  
      IF %VS_ARCH%==x64 (
  
negative.code: 
      cd ..\..
      cd contrib\vstudio\%VC_VER%
      cecho {0D}Building zlib %ZLIB_VERSION%{# #}{\n}
      MSBuild zlibvc.sln /p:configuration="Release" /nologo /clp:ErrorsOnly /m:%NUMBER_OF_PROCESSORS%
      MSBuild zlibvc.sln /p:configuration="Debug" /nologo /clp:ErrorsOnly /m:%NUMBER_OF_PROCESSORS%
      cd ..\..\..
      copy /Y contrib\vstudio\%VC_VER%\%VS_ARCH%\ZlibStatRelease\zlibstat.lib ..\lib\Release
      copy /Y contrib\vstudio\%VC_VER%\%VS_ARCH%\ZlibStatDebug\zlibstat.lib ..\lib\Debug   
      copy /Y *.h ..\include\
  ) ELSE (
     cecho {0D}zlib %ZLIB_VERSION% already built. Skipping.{# #}{\n}
  )
  
  :: ZZIPLIB
  set ZZIPLIB_VERSION=0.13.59
  IF NOT EXIST "%DEPS%\zziplib-%ZZIPLIB_VERSION%.tar.bz2". (
      cd "%DEPS%"
      rmdir /S /Q "%DEPS%\zziplib"
      cecho {0D}Downloading zziplib %ZZIPLIB_VERSION%{# #}{\n}
      wget http://sourceforge.net/projects/zziplib/files/zziplib13/%ZZIPLIB_VERSION%/zziplib-%ZZIPLIB_VERSION%.tar.bz2/download
      IF NOT EXIST "%DEPS%\zziplib-%ZZIPLIB_VERSION%.tar.bz2". GOTO :ERROR
  ) ELSE (
      cecho {0D}zziplib %ZZIPLIB_VERSION% already downloaded. Skipping.{# #}{\n}
  )
  
  IF NOT EXIST "%DEPS%\zziplib". (
      CD "%DEPS%"
      cecho {0D}Extracting zziplib %ZZIPLIB_VERSION% package to "%DEPS%\zziplib"{# #}{\n}
      mkdir zziplib
      7za e -y zziplib-%ZZIPLIB_VERSION%.tar.bz2
      7za x -y -ozziplib zziplib-%ZZIPLIB_VERSION%.tar
      del /Q zziplib-%ZZIPLIB_VERSION%.tar
  )
  
  IF NOT EXIST "%DEPS%\zziplib\lib\zziplib.lib". (
     cd "%DEPS%\zziplib"
     mkdir lib
     mkdir include\zzip
     cd zziplib-%ZZIPLIB_VERSION%\msvc8
  
     :: Use a custom project file as zziblib does not ship with vs2008 project files.
     :: Additionally its include/lib paths are not proper for it to find our zlib build and it has weird lib name postfixes.
  