Changeset 29124
- Timestamp:
- 2014-07-09T10:46:30+12:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/openCV/trunk/src/packages/CASCADE-MAKE/OPENCV.sh
r26881 r29124 2 2 3 3 package=OpenCV 4 version=-2.4. 34 version=-2.4.9 5 5 6 6 progname=$0 … … 17 17 #echo GSDLOS = $GSDLOS 18 18 19 opt_run_untar $force_untar $auto_untar $package $version 20 19 21 # Whether force_config is set for this package depends on CMake test 20 22 # to see if 'release' directory has been created or no 21 23 if [ $auto_config = "1" ] ; then 22 if [ ! -d $package$version/release ; then24 if [ ! -d $package$version/release ] ; then 23 25 force_config=1 24 26 fi 25 27 fi 26 28 27 opt_run_untar $force_untar $auto_untar $package $version .tar.bz2 29 if type -p opencv_createsamples; then 30 echo "found opencv in PATH" 31 _OPENCV=opencv_createsamples 32 elif [[ -x "$GEXTOPENCV_INSTALLED/linux/bin/opencv_createsamples" ]]; then 33 echo "found opencv in openCV/linux/bin" 34 _OPENCV="$GEXTOPENCV_INSTALLED/linux/bin/opencv_createsamples" 35 fi 28 36 29 37 if [ $force_config = "1" ] ; then … … 35 43 fi ; \ 36 44 cd release ; \ 37 cmake -D CMAKE_BUILD_TYPE=RELEASE \ 38 -D CMAKE_INSTALL_PREFIX=$prefix \ 39 -D BUILD_PYTHON_SUPPORT=OFF ..; 40 PKG_CONFIG_PATH=$prefix/lib/pkgconfig:${PKG_CONFIG_PATH}; 41 export PKG_CONFIG_PATH; 45 46 if [ ! -f Makefile ] ; then \ 47 cmake -D CMAKE_BUILD_TYPE=RELEASE \ 48 -D CMAKE_INSTALL_PREFIX=$prefix ..; 49 fi ; \ 50 PKG_CONFIG_PATH=$prefix/lib/pkgconfig:${PKG_CONFIG_PATH}; \ 51 export PKG_CONFIG_PATH; \ 42 52 ) 43 53 if [ $? != 0 ] ; then … … 46 56 fi 47 57 echo "[popd]" 58 opt_run_cmake $compile $package $version "release" 59 opt_run_cmake $install $package $version "release" "install" 48 60 else 49 61 if [ $auto_config = "1" ] ; then … … 52 64 fi 53 65 54 opt_run_cmake $compile $package $version "release"55 opt_run_cmake $install $package $version "release" "install"56 66 opt_run_cmake $clean $package $version "release" "clean" 57 67 opt_run_cmake $distclean $package $version "release" "distclean"
Note:
See TracChangeset
for help on using the changeset viewer.