milis/talimatname/genel/opencv/talimat

32 lines
949 B
Plaintext
Raw Normal View History

2017-04-06 13:04:30 +02:00
# Description: 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.
# URL: http://opencv.org/
2017-10-05 07:40:50 +02:00
# Packager: milisarge
# Depends on: libjpeg-turbo libtiff jasper libpng ffmpeg28 gstreamer xine-lib v4l-utils xorg-mesa
2016-02-24 01:27:23 +01:00
_pybin=python2
_pydir=python2.7
name=opencv
2017-10-05 07:40:50 +02:00
version=3.3.0
2016-02-24 01:27:23 +01:00
release=1
source=(http://downloads.sourceforge.net/opencvlibrary/$name-$version.zip )
2017-04-06 13:04:30 +02:00
2016-02-24 01:27:23 +01:00
build() {
cd $name-*
2017-10-05 07:40:50 +02:00
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release \
2016-02-24 01:27:23 +01:00
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_SKIP_RPATH=ON \
-DWITH_XINE=ON \
-DWITH_UiNICAP=OFF \
-DPYTHON_EXECUTABLE=/usr/bin/$_pybin \
-DPYTHON_INCLUDE_DIR=/usr/include/$_pydir \
2017-10-05 07:40:50 +02:00
-DPYTHON_LIBRARY=/usr/lib/lib$_pydir.so ../
2016-02-24 01:27:23 +01:00
make
make DESTDIR=$PKG install
}