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.1 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | package=cmake
|
---|
4 | version=-3.0.0
|
---|
5 |
|
---|
6 | progname=$0
|
---|
7 |
|
---|
8 | source ../cascade-make/lib/cascade-lib.bash GEXTOPENCV ../.. $*
|
---|
9 |
|
---|
10 | prefix=$GEXTOPENCV_INSTALLED
|
---|
11 |
|
---|
12 | opt_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.
|
---|
16 | if type -p cmake; then
|
---|
17 | echo "found cmake in PATH"
|
---|
18 | _CMAKE=cmake
|
---|
19 | elif [[ -x "$GEXTOPENCV_INSTALLED/linux/bin/cmake" ]]; then
|
---|
20 | echo "found cmake in openCV/linux/bin"
|
---|
21 | _CMAKE="$GEXTOPENCV_INSTALLED/linux/bin/cmake"
|
---|
22 | fi
|
---|
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 |
|
---|
29 | if [[ ! "$_CMAKE" ]]; then
|
---|
30 | opt_run_make $compile $package $version
|
---|
31 | opt_run_make $install $package $version "install"
|
---|
32 | else
|
---|
33 | echo "$package$version already available => no need to recompile"
|
---|
34 | fi
|
---|
35 |
|
---|
36 | opt_run_make $clean $package $version "clean"
|
---|
37 | opt_run_make $distclean $package $version "distclean"
|
---|
38 |
|
---|
39 | opt_run_tarclean $tarclean $package $version
|
---|
40 |
|
---|
41 |
|
---|
42 |
|
---|
43 |
|
---|
44 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.