milis/talimatname/genel/opencv/talimat

30 lines
905 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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/
# Packager: alihan-ozturk28@hotmail.com
# Depends on: libjpeg-turbo libtiff jasper libpng ffmpeg gstreamer xine-lib
_pybin=python2
_pydir=python2.7
name=opencv
version=2.4.9
release=1
source=(http://downloads.sourceforge.net/opencvlibrary/$name-$version.zip )
build() {
cd $name-*
cmake . -DCMAKE_BUILD_TYPE=Release \
-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 \
-DPYTHON_LIBRARY=/usr/lib/lib$_pydir.so
make
make DESTDIR=$PKG install
}