opencv.guncellendi
This commit is contained in:
		
							parent
							
								
									e6511e8b16
								
							
						
					
					
						commit
						c1e00ba631
					
				
					 1 changed files with 10 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -11,7 +11,8 @@ version=3.3.0
 | 
			
		|||
release=2
 | 
			
		||||
 | 
			
		||||
source=(http://downloads.sourceforge.net/opencvlibrary/$name-$version.zip
 | 
			
		||||
		https://raw.githubusercontent.com/opencv/opencv_3rdparty/a62e20676a60ee0ad6581e217fe7e4bada3b95db/ippicv/ippicv_2017u2_lnx_intel64_20170418.tgz)
 | 
			
		||||
		https://raw.githubusercontent.com/opencv/opencv_3rdparty/a62e20676a60ee0ad6581e217fe7e4bada3b95db/ippicv/ippicv_2017u2_lnx_intel64_20170418.tgz
 | 
			
		||||
		https://github.com/opencv/opencv_contrib/archive/$version.tar.gz::opencv_contrib-$version.tar.gz)
 | 
			
		||||
   
 | 
			
		||||
build() {
 | 
			
		||||
        cd $name-$version
 | 
			
		||||
| 
						 | 
				
			
			@ -41,9 +42,17 @@ build() {
 | 
			
		|||
		-DCMAKE_BUILD_TYPE=Release \
 | 
			
		||||
		-DCMAKE_INSTALL_PREFIX=/usr \
 | 
			
		||||
		-DCMAKE_SKIP_RPATH=ON \
 | 
			
		||||
		-DOPENCV_EXTRA_MODULES_PATH="$SRC/opencv_contrib-$version/modules" \
 | 
			
		||||
		 ..
 | 
			
		||||
        make
 | 
			
		||||
        make DESTDIR=$PKG install
 | 
			
		||||
        cd "$PKG/usr/share"
 | 
			
		||||
		if [[ -d OpenCV/samples ]]; then
 | 
			
		||||
			mv OpenCV/samples "$SRC/$name-samples"
 | 
			
		||||
			mv OpenCV $name #dizini ismi tutarlı olması için
 | 
			
		||||
		elif [[ ! -d OpenCV ]]; then
 | 
			
		||||
			echo "Dizin adlandırma hatası!"
 | 
			
		||||
		fi
 | 
			
		||||
        
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue