source: gs3-extensions/openCV/trunk/src/packages/CASCADE-MAKE/OPENSIFT.sh@ 29121

Last change on this file since 29121 was 29121, checked in by jmt12, 10 years ago

Cascade-Make files for cmake (used in building OpenCV) and openSIFT

  • Property svn:executable set to *
  • Property svn:mime-type set to application/x-shellscript
File size: 1.3 KB
Line 
1#!/bin/bash
2
3package=OpenSIFT
4version=-gs-1.1.2
5
6progname=$0
7
8source ../cascade-make/lib/cascade-lib.bash GEXTOPENCV ../.. $*
9
10prefix=$GEXTOPENCV_INSTALLED
11
12opt_run_untar $force_untar $auto_untar $package $version
13#opt_run_configure $force_config $auto_config $package $version $prefix
14
15# Only compile if necessary - we don't edit these source files.
16if type -p siftfeat; then
17 echo "found sift in PATH"
18 _SIFT=siftfeat
19elif [[ -x "$GEXTOPENCV_INSTALLED/linux/bin/siftfeat" ]]; then
20 echo "found sift in openCV/linux/bin"
21 _SIFT="$GEXTOPENCV_INSTALLED/linux/bin/siftfeat"
22fi
23
24#if [[ "$_CMAKE" ]]; then
25# _VERSION=$("$_CMAKE" --version 2>&1 | sed 's/.*cmake version \([0-9]*\.[0-9]*\.[0-9]*\).*/\1/;1q')
26# echo "cmake version $_VERSION"
27#fi
28
29if [[ ! "$_SIFT" ]]; then
30 opt_run_make $compile $package $version
31 #opt_run_make $install $package $version "install"
32 cd $package$version
33 echo "installing executables..."
34 cp "bin/dspfeat" "$GEXTOPENCV_INSTALLED/bin/dspfeat"
35 cp "bin/match" "$GEXTOPENCV_INSTALLED/bin/match"
36 cp "bin/siftfeat" "$GEXTOPENCV_INSTALLED/bin/siftfeat"
37 cd -
38else
39 echo "$package$version already available => no need to recompile"
40fi
41
42opt_run_make $clean $package $version "clean"
43opt_run_make $distclean $package $version "distclean"
44
45opt_run_tarclean $tarclean $package $version
46
47
48
49
50
Note: See TracBrowser for help on using the repository browser.