root/gs3-extensions/openCV/trunk/src/packages/CASCADE-MAKE/OPENCV.sh @ 26722

Revision 26722, 1.6 KB (checked in by davidb, 7 years ago)

initial set of files to compile OpenCV

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3package=OpenCV
4version=-2.4.3
5
6progname=$0
7
8source ../cascade-make/lib/cascade-lib.bash GEXT_OPENCV ../.. $*
9
10prefix=$GEXTOPENCV_INSTALLED
11
12#export CFLAGS="$CFLAGS -I$GEXTAUDIODB_INSTALLED/include"
13#export CPPFLAGS="$CPPFLAGS -I$GEXTAUDIODB_INSTALLED/include"
14#export CXXFLAGS="$CXXFLAGS -I$GEXTAUDIODB_INSTALLED/include"
15#export LDFLAGS="$LDFLAGS -L$GEXTAUDIODB_INSTALLED/lib"
16
17#echo GSDLOS = $GSDLOS
18
19# Whether force_config is set for this package depends on CMake test
20# to see if 'release' directory has been created or no
21if [ $auto_config = "1" ] ; then
22  if [ ! -d $package$version/release ; then
23    force_config=1
24  fi
25fi
26
27opt_run_untar $force_untar $auto_untar $package $version .tar.bz2
28
29if [ $force_config = "1" ] ; then
30  echo "[pushd $package$version]"
31  ( cd $package$version ; \
32    if [ ! -d release ] ; then \
33      echo "Creating 'release' directory" ; \
34      mkdir release ; \
35    fi ; \
36    cd release ; \
37    cmake -D CMAKE_BUILD_TYPE=RELEASE \
38          -D CMAKE_INSTALL_PREFIX=$prefix \
39          -D BUILD_PYTHON_SUPPORT=OFF .. \
40   )
41  if [ $? != 0 ] ; then
42      echo "      Error encountered running *configure* stage of $progname"
43      exit 1
44  fi
45  echo "[popd]"
46else
47  if [ $auto_config = "1" ] ; then
48    echo "Found top-level for ${progname%.*} => no need to run configure/initialize CMake"
49  fi
50fi
51
52opt_run_cmake $compile $package $version "release"
53opt_run_cmake $install $package $version "release" "install"
54opt_run_cmake $clean $package $version "release" "clean"
55opt_run_cmake $distclean $package $version "release" "distclean"
56
57opt_run_tarclean $tarclean $package $version
58
Note: See TracBrowser for help on using the browser.