2017-10-27 20:46:27 +02:00
|
|
|
|
# Tanım: OpenCV (Açık Kaynaklı Bilgisayar Vizyon Kütüphanesi) açık kaynaklı bir bilgisayar görme ve makine öğrenme yazılımı kütüphanesi.
|
2017-04-06 13:04:30 +02:00
|
|
|
|
# URL: http://opencv.org/
|
2017-10-27 20:46:27 +02:00
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler: libjpeg-turbo libtiff jasper libpng ffmpeg28 gstreamer xine-lib v4l-utils xorg-mesa python3-numpy python-numpy gtkglext libgphoto2
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
|
|
|
|
_pybin=python2
|
|
|
|
|
_pydir=python2.7
|
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
isim=opencv
|
|
|
|
|
surum=3.3.0
|
|
|
|
|
devir=2
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
kaynak=(http://downloads.sourceforge.net/opencvlibrary/$isim-$surum.zip
|
2017-10-07 09:12:19 +02:00
|
|
|
|
https://raw.githubusercontent.com/opencv/opencv_3rdparty/a62e20676a60ee0ad6581e217fe7e4bada3b95db/ippicv/ippicv_2017u2_lnx_intel64_20170418.tgz
|
2017-10-28 14:10:23 +02:00
|
|
|
|
https://github.com/opencv/opencv_contrib/archive/$surum.tar.gz::opencv_contrib-$surum.tar.gz)
|
2017-04-06 13:04:30 +02:00
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2017-10-28 14:10:23 +02:00
|
|
|
|
cd $isim-$surum
|
2017-10-07 07:55:35 +02:00
|
|
|
|
|
|
|
|
|
ipp_surum=ippicv_2017u2_lnx_intel64_20170418.tgz
|
|
|
|
|
ipp_file=$DERLEME_KAYNAKDIZIN/$ipp_surum &&
|
|
|
|
|
ipp_hash=$(md5sum $ipp_file | cut -d" " -f1) &&
|
|
|
|
|
ipp_dir=.cache/ippicv &&
|
|
|
|
|
|
|
|
|
|
mkdir -p $ipp_dir &&
|
|
|
|
|
cp $ipp_file $ipp_dir/$ipp_hash-$ipp_surum
|
|
|
|
|
|
|
|
|
|
|
2017-10-05 07:40:50 +02:00
|
|
|
|
mkdir build
|
|
|
|
|
cd build
|
2017-10-07 07:55:35 +02:00
|
|
|
|
cmake -D WITH_OPENCL=ON \
|
|
|
|
|
-DWITH_OPENGL=ON \
|
|
|
|
|
-DWITH_TBB=ON \
|
|
|
|
|
-DWITH_XINE=ON \
|
|
|
|
|
-DWITH_GSTREAMER=OFF \
|
|
|
|
|
-DBUILD_WITH_DEBUG_INFO=OFF \
|
|
|
|
|
-DBUILD_TESTS=OFF \
|
|
|
|
|
-DBUILD_PERF_TESTS=OFF \
|
|
|
|
|
-DBUILD_EXAMPLES=ON \
|
|
|
|
|
-DINSTALL_C_EXAMPLES=ON \
|
|
|
|
|
-DINSTALL_PYTHON_EXAMPLES=ON \
|
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
|
-DCMAKE_SKIP_RPATH=ON \
|
2017-10-28 14:10:23 +02:00
|
|
|
|
-DOPENCV_EXTRA_MODULES_PATH="$SRC/opencv_contrib-$surum/modules" \
|
2017-10-07 07:55:35 +02:00
|
|
|
|
..
|
2016-02-24 01:27:23 +01:00
|
|
|
|
make
|
|
|
|
|
make DESTDIR=$PKG install
|
2017-10-07 09:12:19 +02:00
|
|
|
|
cd "$PKG/usr/share"
|
|
|
|
|
if [[ -d OpenCV/samples ]]; then
|
2017-10-28 14:10:23 +02:00
|
|
|
|
mv OpenCV/samples "$SRC/$isim-samples"
|
|
|
|
|
mv OpenCV $isim #dizini ismi tutarlı olması için
|
2017-10-07 09:12:19 +02:00
|
|
|
|
elif [[ ! -d OpenCV ]]; then
|
|
|
|
|
echo "Dizin adlandırma hatası!"
|
|
|
|
|
fi
|
2017-10-07 07:55:35 +02:00
|
|
|
|
|
2016-02-24 01:27:23 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|