[arch-commits] Commit in opencv/repos (3 files)

2020-05-12 Thread Antonio Rojas via arch-commits
Date: Tuesday, May 12, 2020 @ 08:55:06
  Author: arojas
Revision: 383285

archrelease: copy trunk to staging-x86_64

Added:
  opencv/repos/staging-x86_64/
  opencv/repos/staging-x86_64/PKGBUILD
(from rev 383284, opencv/trunk/PKGBUILD)
  opencv/repos/staging-x86_64/opencv-includedir.patch
(from rev 383284, opencv/trunk/opencv-includedir.patch)

-+
 PKGBUILD|   93 ++
 opencv-includedir.patch |9 
 2 files changed, 102 insertions(+)

Copied: opencv/repos/staging-x86_64/PKGBUILD (from rev 383284, 
opencv/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2020-05-12 08:55:06 UTC (rev 383285)
@@ -0,0 +1,93 @@
+# Maintainer: Ray Rashif 
+# Contributor: Tobias Powalowski 
+
+pkgbase=opencv
+pkgname=(opencv opencv-samples)
+pkgver=4.3.0
+pkgrel=7
+pkgdesc="Open Source Computer Vision Library"
+arch=(x86_64)
+license=(BSD)
+url="https://opencv.org/";
+depends=(intel-tbb openexr gst-plugins-base libdc1394 cblas lapack libgphoto2 
openjpeg2 ffmpeg)
+makedepends=(cmake python-numpy python-setuptools mesa eigen hdf5 lapacke 
qt5-base vtk glew ant java-environment)
+optdepends=('opencv-samples: samples'
+'vtk: for the viz module'
+'qt5-base: for the HighGUI module and the Python bindings'
+'hdf5: for the HDF5 module and the Python bindings'
+'opencl-icd-loader: For coding with OpenCL'
+'python-numpy: Python bindings'
+'java-runtime: Java interface')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/opencv/opencv/archive/$pkgver.zip";
+
"opencv_contrib-$pkgver.tar.gz::https://github.com/opencv/opencv_contrib/archive/$pkgver.tar.gz";
+opencv-includedir.patch)
+sha256sums=('36799186756c1e12adde97f0a8d1afc395d5b0f86d8ad9ef951bc33aa732f9b9'
+'acb8e89c9e7d1174e63e40532125b60d248b00e517255a98a419d415228c6a55'
+'a96e35c9592e655b21a62cfe04e864a10e21535ad900e5de67356b9e9f40ca10')
+
+prepare() {
+  mkdir -p build
+
+  cd $pkgname-$pkgver
+  patch -p1 -i ../opencv-includedir.patch # Fix wrong include patch in 
pkgconfig file
+
+  sed -e '/ocv_tbb_cmake_guess(HAVE_TBB)/d' -i cmake/OpenCVDetectTBB.cmake # 
Don't use TBB's cmake config, it breaks build
+}
+
+build() {
+  cd build
+  export JAVA_HOME="/usr/lib/jvm/default"
+  # cmake's FindLAPACK doesn't add cblas to LAPACK_LIBRARIES, so we need to 
specify them manually
+  _pythonpath=`python -c "from sysconfig import get_path; 
print(get_path('platlib'))"`
+  cmake ../$pkgname-$pkgver \
+-DWITH_OPENCL=ON \
+-DWITH_OPENGL=ON \
+-DWITH_TBB=ON \
+-DWITH_VULKAN=ON \
+-DWITH_QT=ON \
+-DBUILD_WITH_DEBUG_INFO=OFF \
+-DBUILD_TESTS=OFF \
+-DBUILD_PERF_TESTS=OFF \
+-DBUILD_EXAMPLES=ON \
+-DINSTALL_C_EXAMPLES=ON \
+-DINSTALL_PYTHON_EXAMPLES=ON \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DCPU_BASELINE_DISABLE=SSE3 \
+-DCPU_BASELINE_REQUIRE=SSE2 \
+-DOPENCV_EXTRA_MODULES_PATH="$srcdir/opencv_contrib-$pkgver/modules" \
+-DOPENCV_SKIP_PYTHON_LOADER=ON \
+-DOPENCV_PYTHON3_INSTALL_PATH=$_pythonpath \
+
-DLAPACK_LIBRARIES="/usr/lib/liblapack.so;/usr/lib/libblas.so;/usr/lib/libcblas.so"
 \
+-DLAPACK_CBLAS_H="/usr/include/cblas.h" \
+-DLAPACK_LAPACKE_H="/usr/include/lapacke.h" \
+-DOPENCV_GENERATE_PKGCONFIG=ON \
+-DOPENCV_ENABLE_NONFREE=ON \
+-DOPENCV_JNI_INSTALL_PATH=lib \
+-DOPENCV_GENERATE_SETUPVARS=OFF \
+-DEIGEN_INCLUDE_PATH=/usr/include/eigen3
+  make
+}
+
+package_opencv() {
+  cd build
+  make DESTDIR="$pkgdir" install
+
+  # install license file
+  install -Dm644 "$srcdir"/$pkgname-$pkgver/LICENSE -t 
"$pkgdir"/usr/share/licenses/$pkgname
+
+  # separate samples package
+  mv "$pkgdir"/usr/share/opencv4/samples "$srcdir"
+}
+
+package_opencv-samples() {
+  pkgdesc+=" (samples)"
+  depends=("opencv=$pkgver")
+  unset optdepends
+
+  cd build
+  mkdir -p "$pkgdir"/usr/share/opencv4
+  mv "$srcdir"/samples "$pkgdir"/usr/share/opencv4
+
+  # install license file
+  install -Dm644 "$srcdir"/opencv-$pkgver/LICENSE -t 
"$pkgdir"/usr/share/licenses/$pkgname
+}

Copied: opencv/repos/staging-x86_64/opencv-includedir.patch (from rev 383284, 
opencv/trunk/opencv-includedir.patch)
===
--- staging-x86_64/opencv-includedir.patch  (rev 0)
+++ staging-x86_64/opencv-includedir.patch  2020-05-12 08:55:06 UTC (rev 
383285)
@@ -0,0 +1,9 @@
+diff -u -r opencv-4.0.1/cmake/templates/opencv-XXX.pc.in 
opencv-4.0.1-includedir/cmake/templates/opencv-XXX.pc.in
+--- opencv-4.0.1/cmake/templates/opencv-XXX.pc.in  2018-12-22 
07:03:30.0 +
 opencv-4.0.1-includedir/cmake/templates/opencv-XXX.pc.in   2019-02-07 
15:08:15.016613349 +
+@@ -11,4 +10,4 @@
+ Version: @OPENCV_VERSION_PL

[arch-commits] Commit in opencv/repos (3 files)

2020-05-09 Thread Antonio Rojas via arch-commits
Date: Saturday, May 9, 2020 @ 15:23:23
  Author: arojas
Revision: 382961

archrelease: copy trunk to staging-x86_64

Added:
  opencv/repos/staging-x86_64/
  opencv/repos/staging-x86_64/PKGBUILD
(from rev 382960, opencv/trunk/PKGBUILD)
  opencv/repos/staging-x86_64/opencv-includedir.patch
(from rev 382960, opencv/trunk/opencv-includedir.patch)

-+
 PKGBUILD|   93 ++
 opencv-includedir.patch |9 
 2 files changed, 102 insertions(+)

Copied: opencv/repos/staging-x86_64/PKGBUILD (from rev 382960, 
opencv/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2020-05-09 15:23:23 UTC (rev 382961)
@@ -0,0 +1,93 @@
+# Maintainer: Ray Rashif 
+# Contributor: Tobias Powalowski 
+
+pkgbase=opencv
+pkgname=(opencv opencv-samples)
+pkgver=4.3.0
+pkgrel=6
+pkgdesc="Open Source Computer Vision Library"
+arch=(x86_64)
+license=(BSD)
+url="https://opencv.org/";
+depends=(intel-tbb openexr gst-plugins-base libdc1394 cblas lapack libgphoto2 
openjpeg2 ffmpeg)
+makedepends=(cmake python-numpy python-setuptools mesa eigen hdf5 lapacke 
qt5-base vtk glew ant java-environment)
+optdepends=('opencv-samples: samples'
+'vtk: for the viz module'
+'qt5-base: for the HighGUI module and the Python bindings'
+'hdf5: for the HDF5 module and the Python bindings'
+'opencl-icd-loader: For coding with OpenCL'
+'python-numpy: Python bindings'
+'java-runtime: Java interface')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/opencv/opencv/archive/$pkgver.zip";
+
"opencv_contrib-$pkgver.tar.gz::https://github.com/opencv/opencv_contrib/archive/$pkgver.tar.gz";
+opencv-includedir.patch)
+sha256sums=('36799186756c1e12adde97f0a8d1afc395d5b0f86d8ad9ef951bc33aa732f9b9'
+'acb8e89c9e7d1174e63e40532125b60d248b00e517255a98a419d415228c6a55'
+'a96e35c9592e655b21a62cfe04e864a10e21535ad900e5de67356b9e9f40ca10')
+
+prepare() {
+  mkdir -p build
+
+  cd $pkgname-$pkgver
+  patch -p1 -i ../opencv-includedir.patch # Fix wrong include patch in 
pkgconfig file
+
+  sed -e '/ocv_tbb_cmake_guess(HAVE_TBB)/d' -i cmake/OpenCVDetectTBB.cmake # 
Don't use TBB's cmake config, it breaks build
+}
+
+build() {
+  cd build
+  export JAVA_HOME="/usr/lib/jvm/default"
+  # cmake's FindLAPACK doesn't add cblas to LAPACK_LIBRARIES, so we need to 
specify them manually
+  _pythonpath=`python -c "from sysconfig import get_path; 
print(get_path('platlib'))"`
+  cmake ../$pkgname-$pkgver \
+-DWITH_OPENCL=ON \
+-DWITH_OPENGL=ON \
+-DWITH_TBB=ON \
+-DWITH_VULKAN=ON \
+-DWITH_QT=ON \
+-DBUILD_WITH_DEBUG_INFO=OFF \
+-DBUILD_TESTS=OFF \
+-DBUILD_PERF_TESTS=OFF \
+-DBUILD_EXAMPLES=ON \
+-DINSTALL_C_EXAMPLES=ON \
+-DINSTALL_PYTHON_EXAMPLES=ON \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DCPU_BASELINE_DISABLE=SSE3 \
+-DCPU_BASELINE_REQUIRE=SSE2 \
+-DOPENCV_EXTRA_MODULES_PATH="$srcdir/opencv_contrib-$pkgver/modules" \
+-DOPENCV_SKIP_PYTHON_LOADER=ON \
+-DOPENCV_PYTHON3_INSTALL_PATH=$_pythonpath \
+
-DLAPACK_LIBRARIES="/usr/lib/liblapack.so;/usr/lib/libblas.so;/usr/lib/libcblas.so"
 \
+-DLAPACK_CBLAS_H="/usr/include/cblas.h" \
+-DLAPACK_LAPACKE_H="/usr/include/lapacke.h" \
+-DOPENCV_GENERATE_PKGCONFIG=ON \
+-DOPENCV_ENABLE_NONFREE=ON \
+-DOPENCV_JNI_INSTALL_PATH=lib \
+-DOPENCV_GENERATE_SETUPVARS=OFF \
+-DEIGEN_INCLUDE_PATH=/usr/include/eigen3
+  make
+}
+
+package_opencv() {
+  cd build
+  make DESTDIR="$pkgdir" install
+
+  # install license file
+  install -Dm644 "$srcdir"/$pkgname-$pkgver/LICENSE -t 
"$pkgdir"/usr/share/licenses/$pkgname
+
+  # separate samples package
+  mv "$pkgdir"/usr/share/opencv4/samples "$srcdir"
+}
+
+package_opencv-samples() {
+  pkgdesc+=" (samples)"
+  depends=("opencv=$pkgver")
+  unset optdepends
+
+  cd build
+  mkdir -p "$pkgdir"/usr/share/opencv4
+  mv "$srcdir"/samples "$pkgdir"/usr/share/opencv4
+
+  # install license file
+  install -Dm644 "$srcdir"/opencv-$pkgver/LICENSE -t 
"$pkgdir"/usr/share/licenses/$pkgname
+}

Copied: opencv/repos/staging-x86_64/opencv-includedir.patch (from rev 382960, 
opencv/trunk/opencv-includedir.patch)
===
--- staging-x86_64/opencv-includedir.patch  (rev 0)
+++ staging-x86_64/opencv-includedir.patch  2020-05-09 15:23:23 UTC (rev 
382961)
@@ -0,0 +1,9 @@
+diff -u -r opencv-4.0.1/cmake/templates/opencv-XXX.pc.in 
opencv-4.0.1-includedir/cmake/templates/opencv-XXX.pc.in
+--- opencv-4.0.1/cmake/templates/opencv-XXX.pc.in  2018-12-22 
07:03:30.0 +
 opencv-4.0.1-includedir/cmake/templates/opencv-XXX.pc.in   2019-02-07 
15:08:15.016613349 +
+@@ -11,4 +10,4 @@
+ Version: @OPENCV_VERSION_PL

[arch-commits] Commit in opencv/repos (3 files)

2020-04-11 Thread Antonio Rojas via arch-commits
Date: Saturday, April 11, 2020 @ 09:30:32
  Author: arojas
Revision: 380015

archrelease: copy trunk to staging-x86_64

Added:
  opencv/repos/staging-x86_64/
  opencv/repos/staging-x86_64/PKGBUILD
(from rev 380014, opencv/trunk/PKGBUILD)
  opencv/repos/staging-x86_64/opencv-includedir.patch
(from rev 380014, opencv/trunk/opencv-includedir.patch)

-+
 PKGBUILD|   92 ++
 opencv-includedir.patch |9 
 2 files changed, 101 insertions(+)

Copied: opencv/repos/staging-x86_64/PKGBUILD (from rev 380014, 
opencv/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2020-04-11 09:30:32 UTC (rev 380015)
@@ -0,0 +1,92 @@
+# Maintainer: Ray Rashif 
+# Contributor: Tobias Powalowski 
+
+pkgbase=opencv
+pkgname=(opencv opencv-samples)
+pkgver=4.3.0
+pkgrel=2
+pkgdesc="Open Source Computer Vision Library"
+arch=(x86_64)
+license=(BSD)
+url="https://opencv.org/";
+depends=(intel-tbb openexr gst-plugins-base libdc1394 cblas lapack libgphoto2 
jasper ffmpeg)
+makedepends=(cmake python-numpy python-setuptools mesa eigen hdf5 lapacke 
qt5-base vtk glew ant java-environment)
+optdepends=('opencv-samples: samples'
+'vtk: for the viz module'
+'qt5-base: for the HighGUI module and the Python bindings'
+'hdf5: for the HDF5 module and the Python bindings'
+'opencl-icd-loader: For coding with OpenCL'
+'python-numpy: Python bindings'
+'java-runtime: Java interface')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/opencv/opencv/archive/$pkgver.zip";
+
"opencv_contrib-$pkgver.tar.gz::https://github.com/opencv/opencv_contrib/archive/$pkgver.tar.gz";
+opencv-includedir.patch)
+sha256sums=('36799186756c1e12adde97f0a8d1afc395d5b0f86d8ad9ef951bc33aa732f9b9'
+'acb8e89c9e7d1174e63e40532125b60d248b00e517255a98a419d415228c6a55'
+'a96e35c9592e655b21a62cfe04e864a10e21535ad900e5de67356b9e9f40ca10')
+
+prepare() {
+  mkdir -p build
+
+  cd $pkgname-$pkgver
+  patch -p1 -i ../opencv-includedir.patch # Fix wrong include patch in 
pkgconfig file
+
+  sed -e '/ocv_tbb_cmake_guess(HAVE_TBB)/d' -i cmake/OpenCVDetectTBB.cmake # 
Don't use TBB's cmake config, it breaks build
+}
+
+build() {
+  cd build
+  export JAVA_HOME="/usr/lib/jvm/default"
+  # cmake's FindLAPACK doesn't add cblas to LAPACK_LIBRARIES, so we need to 
specify them manually
+  _pythonpath=`python -c "from sysconfig import get_path; 
print(get_path('platlib'))"`
+  cmake ../$pkgname-$pkgver \
+-DWITH_OPENCL=ON \
+-DWITH_OPENGL=ON \
+-DWITH_TBB=ON \
+-DWITH_QT=ON \
+-DBUILD_WITH_DEBUG_INFO=OFF \
+-DBUILD_TESTS=OFF \
+-DBUILD_PERF_TESTS=OFF \
+-DBUILD_EXAMPLES=ON \
+-DINSTALL_C_EXAMPLES=ON \
+-DINSTALL_PYTHON_EXAMPLES=ON \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DCPU_BASELINE_DISABLE=SSE3 \
+-DCPU_BASELINE_REQUIRE=SSE2 \
+-DOPENCV_EXTRA_MODULES_PATH="$srcdir/opencv_contrib-$pkgver/modules" \
+-DOPENCV_SKIP_PYTHON_LOADER=ON \
+-DOPENCV_PYTHON3_INSTALL_PATH=$_pythonpath \
+
-DLAPACK_LIBRARIES="/usr/lib/liblapack.so;/usr/lib/libblas.so;/usr/lib/libcblas.so"
 \
+-DLAPACK_CBLAS_H="/usr/include/cblas.h" \
+-DLAPACK_LAPACKE_H="/usr/include/lapacke.h" \
+-DOPENCV_GENERATE_PKGCONFIG=ON \
+-DOPENCV_ENABLE_NONFREE=ON \
+-DOPENCV_JNI_INSTALL_PATH=lib \
+-DOPENCV_GENERATE_SETUPVARS=OFF \
+-DEIGEN_INCLUDE_PATH=/usr/include/eigen3
+  make
+}
+
+package_opencv() {
+  cd build
+  make DESTDIR="$pkgdir" install
+
+  # install license file
+  install -Dm644 "$srcdir"/$pkgname-$pkgver/LICENSE -t 
"$pkgdir"/usr/share/licenses/$pkgname
+
+  # separate samples package
+  mv "$pkgdir"/usr/share/opencv4/samples "$srcdir"
+}
+
+package_opencv-samples() {
+  pkgdesc+=" (samples)"
+  depends=("opencv=$pkgver")
+  unset optdepends
+
+  cd build
+  mkdir -p "$pkgdir"/usr/share/opencv4
+  mv "$srcdir"/samples "$pkgdir"/usr/share/opencv4
+
+  # install license file
+  install -Dm644 "$srcdir"/opencv-$pkgver/LICENSE -t 
"$pkgdir"/usr/share/licenses/$pkgname
+}

Copied: opencv/repos/staging-x86_64/opencv-includedir.patch (from rev 380014, 
opencv/trunk/opencv-includedir.patch)
===
--- staging-x86_64/opencv-includedir.patch  (rev 0)
+++ staging-x86_64/opencv-includedir.patch  2020-04-11 09:30:32 UTC (rev 
380015)
@@ -0,0 +1,9 @@
+diff -u -r opencv-4.0.1/cmake/templates/opencv-XXX.pc.in 
opencv-4.0.1-includedir/cmake/templates/opencv-XXX.pc.in
+--- opencv-4.0.1/cmake/templates/opencv-XXX.pc.in  2018-12-22 
07:03:30.0 +
 opencv-4.0.1-includedir/cmake/templates/opencv-XXX.pc.in   2019-02-07 
15:08:15.016613349 +
+@@ -11,4 +10,4 @@
+ Version: @OPENCV_VERSION_PLAIN@
+ Libs: @OPENCV_PC_

[arch-commits] Commit in opencv/repos (3 files)

2020-04-04 Thread Antonio Rojas via arch-commits
Date: Saturday, April 4, 2020 @ 09:31:04
  Author: arojas
Revision: 379499

archrelease: copy trunk to staging-x86_64

Added:
  opencv/repos/staging-x86_64/
  opencv/repos/staging-x86_64/PKGBUILD
(from rev 379498, opencv/trunk/PKGBUILD)
  opencv/repos/staging-x86_64/opencv-includedir.patch
(from rev 379498, opencv/trunk/opencv-includedir.patch)

-+
 PKGBUILD|   92 ++
 opencv-includedir.patch |9 
 2 files changed, 101 insertions(+)

Copied: opencv/repos/staging-x86_64/PKGBUILD (from rev 379498, 
opencv/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2020-04-04 09:31:04 UTC (rev 379499)
@@ -0,0 +1,92 @@
+# Maintainer: Ray Rashif 
+# Contributor: Tobias Powalowski 
+
+pkgbase=opencv
+pkgname=(opencv opencv-samples)
+pkgver=4.3.0
+pkgrel=1
+pkgdesc="Open Source Computer Vision Library"
+arch=(x86_64)
+license=(BSD)
+url="https://opencv.org/";
+depends=(intel-tbb openexr gst-plugins-base libdc1394 cblas lapack libgphoto2 
jasper ffmpeg)
+makedepends=(cmake python-numpy python-setuptools mesa eigen hdf5 lapacke 
qt5-base vtk glew ant java-environment)
+optdepends=('opencv-samples: samples'
+'vtk: for the viz module'
+'qt5-base: for the HighGUI module and the Python bindings'
+'hdf5: for the HDF5 module and the Python bindings'
+'opencl-icd-loader: For coding with OpenCL'
+'python-numpy: Python bindings'
+'java-runtime: Java interface')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/opencv/opencv/archive/$pkgver.zip";
+
"opencv_contrib-$pkgver.tar.gz::https://github.com/opencv/opencv_contrib/archive/$pkgver.tar.gz";
+opencv-includedir.patch)
+sha256sums=('36799186756c1e12adde97f0a8d1afc395d5b0f86d8ad9ef951bc33aa732f9b9'
+'acb8e89c9e7d1174e63e40532125b60d248b00e517255a98a419d415228c6a55'
+'a96e35c9592e655b21a62cfe04e864a10e21535ad900e5de67356b9e9f40ca10')
+
+prepare() {
+  mkdir -p build
+
+  cd $pkgname-$pkgver
+  patch -p1 -i ../opencv-includedir.patch # Fix wrong include patch in 
pkgconfig file
+
+  sed -e '/ocv_tbb_cmake_guess(HAVE_TBB)/d' -i cmake/OpenCVDetectTBB.cmake # 
Don't use TBB's cmake config, it breaks build
+}
+
+build() {
+  cd build
+  export JAVA_HOME="/usr/lib/jvm/default"
+  # cmake's FindLAPACK doesn't add cblas to LAPACK_LIBRARIES, so we need to 
specify them manually
+  _pythonpath=`python -c "from sysconfig import get_path; 
print(get_path('platlib'))"`
+  cmake ../$pkgname-$pkgver \
+-DWITH_OPENCL=ON \
+-DWITH_OPENGL=ON \
+-DWITH_TBB=ON \
+-DWITH_QT=ON \
+-DBUILD_WITH_DEBUG_INFO=OFF \
+-DBUILD_TESTS=OFF \
+-DBUILD_PERF_TESTS=OFF \
+-DBUILD_EXAMPLES=ON \
+-DINSTALL_C_EXAMPLES=ON \
+-DINSTALL_PYTHON_EXAMPLES=ON \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DCPU_BASELINE_DISABLE=SSE3 \
+-DCPU_BASELINE_REQUIRE=SSE2 \
+-DOPENCV_EXTRA_MODULES_PATH="$srcdir/opencv_contrib-$pkgver/modules" \
+-DOPENCV_SKIP_PYTHON_LOADER=ON \
+-DOPENCV_PYTHON3_INSTALL_PATH=$_pythonpath \
+
-DLAPACK_LIBRARIES="/usr/lib/liblapack.so;/usr/lib/libblas.so;/usr/lib/libcblas.so"
 \
+-DLAPACK_CBLAS_H="/usr/include/cblas.h" \
+-DLAPACK_LAPACKE_H="/usr/include/lapacke.h" \
+-DOPENCV_GENERATE_PKGCONFIG=ON \
+-DOPENCV_ENABLE_NONFREE=ON \
+-DOPENCV_JNI_INSTALL_PATH=lib \
+-DOPENCV_GENERATE_SETUPVARS=OFF \
+-DEIGEN_INCLUDE_PATH=/usr/include/eigen3
+  make
+}
+
+package_opencv() {
+  cd build
+  make DESTDIR="$pkgdir" install
+
+  # install license file
+  install -Dm644 "$srcdir"/$pkgname-$pkgver/LICENSE -t 
"$pkgdir"/usr/share/licenses/$pkgname
+
+  # separate samples package
+  mv "$pkgdir"/usr/share/opencv4/samples "$srcdir"
+}
+
+package_opencv-samples() {
+  pkgdesc+=" (samples)"
+  depends=("opencv=$pkgver")
+  unset optdepends
+
+  cd build
+  mkdir -p "$pkgdir"/usr/share/opencv4
+  mv "$srcdir"/samples "$pkgdir"/usr/share/opencv4
+
+  # install license file
+  install -Dm644 "$srcdir"/opencv-$pkgver/LICENSE -t 
"$pkgdir"/usr/share/licenses/$pkgname
+}

Copied: opencv/repos/staging-x86_64/opencv-includedir.patch (from rev 379498, 
opencv/trunk/opencv-includedir.patch)
===
--- staging-x86_64/opencv-includedir.patch  (rev 0)
+++ staging-x86_64/opencv-includedir.patch  2020-04-04 09:31:04 UTC (rev 
379499)
@@ -0,0 +1,9 @@
+diff -u -r opencv-4.0.1/cmake/templates/opencv-XXX.pc.in 
opencv-4.0.1-includedir/cmake/templates/opencv-XXX.pc.in
+--- opencv-4.0.1/cmake/templates/opencv-XXX.pc.in  2018-12-22 
07:03:30.0 +
 opencv-4.0.1-includedir/cmake/templates/opencv-XXX.pc.in   2019-02-07 
15:08:15.016613349 +
+@@ -11,4 +10,4 @@
+ Version: @OPENCV_VERSION_PLAIN@
+ Libs: @OPENCV_PC_L

[arch-commits] Commit in opencv/repos (3 files)

2019-12-20 Thread Antonio Rojas via arch-commits
Date: Saturday, December 21, 2019 @ 00:28:03
  Author: arojas
Revision: 372008

archrelease: copy trunk to staging-x86_64

Added:
  opencv/repos/staging-x86_64/
  opencv/repos/staging-x86_64/PKGBUILD
(from rev 372007, opencv/trunk/PKGBUILD)
  opencv/repos/staging-x86_64/opencv-includedir.patch
(from rev 372007, opencv/trunk/opencv-includedir.patch)

-+
 PKGBUILD|   94 ++
 opencv-includedir.patch |9 
 2 files changed, 103 insertions(+)

Copied: opencv/repos/staging-x86_64/PKGBUILD (from rev 372007, 
opencv/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2019-12-21 00:28:03 UTC (rev 372008)
@@ -0,0 +1,94 @@
+# Maintainer: Ray Rashif 
+# Contributor: Tobias Powalowski 
+
+pkgbase=opencv
+pkgname=(opencv opencv-samples)
+pkgver=4.2.0
+pkgrel=1
+pkgdesc="Open Source Computer Vision Library"
+arch=(x86_64)
+license=(BSD)
+url="https://opencv.org/";
+depends=(intel-tbb openexr gst-plugins-base libdc1394 cblas lapack libgphoto2 
jasper ffmpeg)
+makedepends=(cmake python-numpy python-setuptools mesa eigen hdf5 lapacke 
qt5-base vtk glew ant java-environment xorgproto)
+optdepends=('opencv-samples: samples'
+'vtk: for the viz module'
+'qt5-base: for the HighGUI module and the Python bindings'
+'hdf5: for the HDF5 module and the Python bindings'
+'opencl-icd-loader: For coding with OpenCL'
+'python-numpy: Python bindings'
+'java-runtime: Java interface')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/opencv/opencv/archive/$pkgver.zip";
+
"opencv_contrib-$pkgver.tar.gz::https://github.com/opencv/opencv_contrib/archive/$pkgver.tar.gz";
+opencv-includedir.patch)
+sha256sums=('55bd939079d141a50fca74bde5b61b339dd0f0ece6320ec76859aaff03c90d9f'
+'8a6b5661611d89baa59a26eb7ccf4abb3e55d73f99bb52d8f7c32265c8a43020'
+'a96e35c9592e655b21a62cfe04e864a10e21535ad900e5de67356b9e9f40ca10')
+
+prepare() {
+  mkdir -p build
+
+  cd $pkgname-$pkgver
+  patch -p1 -i ../opencv-includedir.patch # Fix wrong include patch in 
pkgconfig file
+
+  sed -e '/ocv_tbb_cmake_guess(HAVE_TBB)/d' -i cmake/OpenCVDetectTBB.cmake # 
Don't use TBB's cmake config, it breaks build
+}
+
+build() {
+  cd build
+  export JAVA_HOME="/usr/lib/jvm/default"
+  # cmake's FindLAPACK doesn't add cblas to LAPACK_LIBRARIES, so we need to 
specify them manually
+  _pythonpath=`python -c "from sysconfig import get_path; 
print(get_path('platlib'))"`
+  cmake ../$pkgname-$pkgver \
+-DWITH_OPENCL=ON \
+-DWITH_OPENGL=ON \
+-DWITH_TBB=ON \
+-DWITH_QT=ON \
+-DBUILD_WITH_DEBUG_INFO=OFF \
+-DBUILD_TESTS=OFF \
+-DBUILD_PERF_TESTS=OFF \
+-DBUILD_EXAMPLES=ON \
+-DINSTALL_C_EXAMPLES=ON \
+-DINSTALL_PYTHON_EXAMPLES=ON \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DCPU_BASELINE_DISABLE=SSE3 \
+-DCPU_BASELINE_REQUIRE=SSE2 \
+-DOPENCV_EXTRA_MODULES_PATH="$srcdir/opencv_contrib-$pkgver/modules" \
+-DOPENCV_SKIP_PYTHON_LOADER=ON \
+-DOPENCV_PYTHON3_INSTALL_PATH=$_pythonpath \
+
-DLAPACK_LIBRARIES="/usr/lib/liblapack.so;/usr/lib/libblas.so;/usr/lib/libcblas.so"
 \
+-DLAPACK_CBLAS_H="/usr/include/cblas.h" \
+-DLAPACK_LAPACKE_H="/usr/include/lapacke.h" \
+-DOPENCV_GENERATE_PKGCONFIG=ON \
+-DOPENCV_ENABLE_NONFREE=ON \
+-DOPENCV_JNI_INSTALL_PATH=lib \
+-DOPENCV_GENERATE_SETUPVARS=OFF \
+-DEIGEN_INCLUDE_PATH=/usr/include/eigen3
+  make
+}
+
+package_opencv() {
+  cd build
+  make DESTDIR="$pkgdir" install
+
+  # install license file
+  install -Dm644 "$srcdir"/$pkgname-$pkgver/LICENSE -t 
"$pkgdir"/usr/share/licenses/$pkgname
+
+  # separate samples package
+  cd "$pkgdir"/usr/share
+  mv opencv4/samples "$srcdir"/$pkgname-samples
+}
+
+package_opencv-samples() {
+  pkgdesc+=" (samples)"
+  depends=("opencv=$pkgver")
+  unset optdepends
+
+  mkdir -p "$pkgdir"/usr/share/opencv
+  cp -r "$srcdir"/opencv-samples "$pkgdir"/usr/share/opencv/samples
+  # fix permissions
+  chmod 755 "$pkgdir"/usr/share/opencv/samples/*
+
+  # install license file
+  install -Dm644 "$srcdir"/opencv-$pkgver/LICENSE -t 
"$pkgdir"/usr/share/licenses/$pkgname
+}

Copied: opencv/repos/staging-x86_64/opencv-includedir.patch (from rev 372007, 
opencv/trunk/opencv-includedir.patch)
===
--- staging-x86_64/opencv-includedir.patch  (rev 0)
+++ staging-x86_64/opencv-includedir.patch  2019-12-21 00:28:03 UTC (rev 
372008)
@@ -0,0 +1,9 @@
+diff -u -r opencv-4.0.1/cmake/templates/opencv-XXX.pc.in 
opencv-4.0.1-includedir/cmake/templates/opencv-XXX.pc.in
+--- opencv-4.0.1/cmake/templates/opencv-XXX.pc.in  2018-12-22 
07:03:30.0 +
 opencv-4.0.1-includedir/cmake/templates/opencv-XXX.pc.in 

[arch-commits] Commit in opencv/repos (3 files)

2019-10-26 Thread Felix Yan via arch-commits
Date: Saturday, October 26, 2019 @ 18:33:01
  Author: felixonmars
Revision: 365893

archrelease: copy trunk to staging-x86_64

Added:
  opencv/repos/staging-x86_64/
  opencv/repos/staging-x86_64/PKGBUILD
(from rev 365892, opencv/trunk/PKGBUILD)
  opencv/repos/staging-x86_64/opencv-includedir.patch
(from rev 365892, opencv/trunk/opencv-includedir.patch)

-+
 PKGBUILD|   94 ++
 opencv-includedir.patch |9 
 2 files changed, 103 insertions(+)

Copied: opencv/repos/staging-x86_64/PKGBUILD (from rev 365892, 
opencv/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2019-10-26 18:33:01 UTC (rev 365893)
@@ -0,0 +1,94 @@
+# Maintainer: Ray Rashif 
+# Contributor: Tobias Powalowski 
+
+pkgbase=opencv
+pkgname=(opencv opencv-samples)
+pkgver=4.1.2
+pkgrel=3
+pkgdesc="Open Source Computer Vision Library"
+arch=(x86_64)
+license=(BSD)
+url="https://opencv.org/";
+depends=(intel-tbb openexr gst-plugins-base libdc1394 cblas lapack libgphoto2 
jasper ffmpeg)
+makedepends=(cmake python-numpy python-setuptools mesa eigen hdf5 lapacke 
qt5-base vtk glew ant java-environment)
+optdepends=('opencv-samples: samples'
+'vtk: for the viz module'
+'qt5-base: for the HighGUI module and the Python bindings'
+'hdf5: for the HDF5 module and the Python bindings'
+'opencl-icd-loader: For coding with OpenCL'
+'python-numpy: Python bindings'
+'java-runtime: Java interface')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/opencv/opencv/archive/$pkgver.zip";
+
"opencv_contrib-$pkgver.tar.gz::https://github.com/opencv/opencv_contrib/archive/$pkgver.tar.gz";
+opencv-includedir.patch)
+sha256sums=('546d7d19388f2eea709a1951c7bfd56943241e41649473278950f4cbef656661'
+'0f6c3d30baa39e3e7611afb481ee86dea45dafb182cac87d570c95dccd83eb8b'
+'a96e35c9592e655b21a62cfe04e864a10e21535ad900e5de67356b9e9f40ca10')
+
+prepare() {
+  mkdir -p build
+
+  cd $pkgname-$pkgver
+  patch -p1 -i ../opencv-includedir.patch # Fix wrong include patch in 
pkgconfig file
+
+  sed -e '/ocv_tbb_cmake_guess(HAVE_TBB)/d' -i cmake/OpenCVDetectTBB.cmake # 
Don't use TBB's cmake config, it breaks build
+}
+
+build() {
+  cd build
+  export JAVA_HOME="/usr/lib/jvm/default"
+  # cmake's FindLAPACK doesn't add cblas to LAPACK_LIBRARIES, so we need to 
specify them manually
+  _pythonpath=`python -c "from sysconfig import get_path; 
print(get_path('platlib'))"`
+  cmake ../$pkgname-$pkgver \
+-DWITH_OPENCL=ON \
+-DWITH_OPENGL=ON \
+-DWITH_TBB=ON \
+-DWITH_QT=ON \
+-DBUILD_WITH_DEBUG_INFO=OFF \
+-DBUILD_TESTS=OFF \
+-DBUILD_PERF_TESTS=OFF \
+-DBUILD_EXAMPLES=ON \
+-DINSTALL_C_EXAMPLES=ON \
+-DINSTALL_PYTHON_EXAMPLES=ON \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DCPU_BASELINE_DISABLE=SSE3 \
+-DCPU_BASELINE_REQUIRE=SSE2 \
+-DOPENCV_EXTRA_MODULES_PATH="$srcdir/opencv_contrib-$pkgver/modules" \
+-DOPENCV_SKIP_PYTHON_LOADER=ON \
+-DOPENCV_PYTHON3_INSTALL_PATH=$_pythonpath \
+
-DLAPACK_LIBRARIES="/usr/lib/liblapack.so;/usr/lib/libblas.so;/usr/lib/libcblas.so"
 \
+-DLAPACK_CBLAS_H="/usr/include/cblas.h" \
+-DLAPACK_LAPACKE_H="/usr/include/lapacke.h" \
+-DOPENCV_GENERATE_PKGCONFIG=ON \
+-DOPENCV_ENABLE_NONFREE=ON \
+-DOPENCV_JNI_INSTALL_PATH=lib \
+-DOPENCV_GENERATE_SETUPVARS=OFF \
+-DEIGEN_INCLUDE_PATH=/usr/include/eigen3
+  make
+}
+
+package_opencv() {
+  cd build
+  make DESTDIR="$pkgdir" install
+
+  # install license file
+  install -Dm644 "$srcdir"/$pkgname-$pkgver/LICENSE -t 
"$pkgdir"/usr/share/licenses/$pkgname
+
+  # separate samples package
+  cd "$pkgdir"/usr/share
+  mv opencv4/samples "$srcdir"/$pkgname-samples
+}
+
+package_opencv-samples() {
+  pkgdesc+=" (samples)"
+  depends=("opencv=$pkgver")
+  unset optdepends
+
+  mkdir -p "$pkgdir"/usr/share/opencv
+  cp -r "$srcdir"/opencv-samples "$pkgdir"/usr/share/opencv/samples
+  # fix permissions
+  chmod 755 "$pkgdir"/usr/share/opencv/samples/*
+
+  # install license file
+  install -Dm644 "$srcdir"/opencv-$pkgver/LICENSE -t 
"$pkgdir"/usr/share/licenses/$pkgname
+}

Copied: opencv/repos/staging-x86_64/opencv-includedir.patch (from rev 365892, 
opencv/trunk/opencv-includedir.patch)
===
--- staging-x86_64/opencv-includedir.patch  (rev 0)
+++ staging-x86_64/opencv-includedir.patch  2019-10-26 18:33:01 UTC (rev 
365893)
@@ -0,0 +1,9 @@
+diff -u -r opencv-4.0.1/cmake/templates/opencv-XXX.pc.in 
opencv-4.0.1-includedir/cmake/templates/opencv-XXX.pc.in
+--- opencv-4.0.1/cmake/templates/opencv-XXX.pc.in  2018-12-22 
07:03:30.0 +
 opencv-4.0.1-includedir/cmake/templates/opencv-XXX.pc.in   2019

[arch-commits] Commit in opencv/repos (3 files)

2019-10-18 Thread Antonio Rojas via arch-commits
Date: Friday, October 18, 2019 @ 21:29:59
  Author: arojas
Revision: 365169

archrelease: copy trunk to staging-x86_64

Added:
  opencv/repos/staging-x86_64/
  opencv/repos/staging-x86_64/PKGBUILD
(from rev 365168, opencv/trunk/PKGBUILD)
  opencv/repos/staging-x86_64/opencv-includedir.patch
(from rev 365168, opencv/trunk/opencv-includedir.patch)

-+
 PKGBUILD|   95 ++
 opencv-includedir.patch |9 
 2 files changed, 104 insertions(+)

Copied: opencv/repos/staging-x86_64/PKGBUILD (from rev 365168, 
opencv/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2019-10-18 21:29:59 UTC (rev 365169)
@@ -0,0 +1,95 @@
+# Maintainer: Ray Rashif 
+# Contributor: Tobias Powalowski 
+
+pkgbase=opencv
+pkgname=(opencv opencv-samples)
+pkgver=4.1.2
+pkgrel=2
+pkgdesc="Open Source Computer Vision Library"
+arch=(x86_64)
+license=(BSD)
+url="https://opencv.org/";
+depends=(intel-tbb openexr gst-plugins-base libdc1394 cblas lapack libgphoto2 
jasper ffmpeg)
+makedepends=(cmake python-numpy python-setuptools mesa eigen hdf5 lapacke 
qt5-base vtk glew ant java-environment)
+optdepends=('opencv-samples: samples'
+'vtk: for the viz module'
+'qt5-base: for the HighGUI module and the Python bindings'
+'hdf5: for the HDF5 module and the Python bindings'
+'opencl-icd-loader: For coding with OpenCL'
+'python-numpy: Python bindings'
+'java-runtime: Java interface')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/opencv/opencv/archive/$pkgver.zip";
+
"opencv_contrib-$pkgver.tar.gz::https://github.com/opencv/opencv_contrib/archive/$pkgver.tar.gz";
+opencv-includedir.patch)
+sha256sums=('546d7d19388f2eea709a1951c7bfd56943241e41649473278950f4cbef656661'
+'0f6c3d30baa39e3e7611afb481ee86dea45dafb182cac87d570c95dccd83eb8b'
+'a96e35c9592e655b21a62cfe04e864a10e21535ad900e5de67356b9e9f40ca10')
+
+prepare() {
+  mkdir -p build
+
+  cd $pkgname-$pkgver
+  patch -p1 -i ../opencv-includedir.patch # Fix wrong include patch in 
pkgconfig file
+# Fix build with openexr 2.4
+  sed -e 's|Half|Half-2_4|' -e 's|Iex|Iex-2_4|' -e 's|Imath|Imath-2_4|' -e 
's|IlmImf|IlmImf-2_4|' -e 's|IlmThread|IlmThread-2_4|' \
+-i cmake/OpenCVFindOpenEXR.cmake
+}
+
+build() {
+  cd build
+  export JAVA_HOME="/usr/lib/jvm/default"
+  # cmake's FindLAPACK doesn't add cblas to LAPACK_LIBRARIES, so we need to 
specify them manually
+  _pythonpath=`python -c "from sysconfig import get_path; 
print(get_path('platlib'))"`
+  cmake ../$pkgname-$pkgver \
+-DWITH_OPENCL=ON \
+-DWITH_OPENGL=ON \
+-DWITH_TBB=ON \
+-DWITH_QT=ON \
+-DBUILD_WITH_DEBUG_INFO=OFF \
+-DBUILD_TESTS=OFF \
+-DBUILD_PERF_TESTS=OFF \
+-DBUILD_EXAMPLES=ON \
+-DINSTALL_C_EXAMPLES=ON \
+-DINSTALL_PYTHON_EXAMPLES=ON \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DCPU_BASELINE_DISABLE=SSE3 \
+-DCPU_BASELINE_REQUIRE=SSE2 \
+-DOPENCV_EXTRA_MODULES_PATH="$srcdir/opencv_contrib-$pkgver/modules" \
+-DOPENCV_SKIP_PYTHON_LOADER=ON \
+-DOPENCV_PYTHON3_INSTALL_PATH=$_pythonpath \
+
-DLAPACK_LIBRARIES="/usr/lib/liblapack.so;/usr/lib/libblas.so;/usr/lib/libcblas.so"
 \
+-DLAPACK_CBLAS_H="/usr/include/cblas.h" \
+-DLAPACK_LAPACKE_H="/usr/include/lapacke.h" \
+-DOPENCV_GENERATE_PKGCONFIG=ON \
+-DOPENCV_ENABLE_NONFREE=ON \
+-DOPENCV_JNI_INSTALL_PATH=lib \
+-DOPENCV_GENERATE_SETUPVARS=OFF \
+-DEIGEN_INCLUDE_PATH=/usr/include/eigen3
+  make
+}
+
+package_opencv() {
+  cd build
+  make DESTDIR="$pkgdir" install
+
+  # install license file
+  install -Dm644 "$srcdir"/$pkgname-$pkgver/LICENSE -t 
"$pkgdir"/usr/share/licenses/$pkgname
+
+  # separate samples package
+  cd "$pkgdir"/usr/share
+  mv opencv4/samples "$srcdir"/$pkgname-samples
+}
+
+package_opencv-samples() {
+  pkgdesc+=" (samples)"
+  depends=("opencv=$pkgver")
+  unset optdepends
+
+  mkdir -p "$pkgdir"/usr/share/opencv
+  cp -r "$srcdir"/opencv-samples "$pkgdir"/usr/share/opencv/samples
+  # fix permissions
+  chmod 755 "$pkgdir"/usr/share/opencv/samples/*
+
+  # install license file
+  install -Dm644 "$srcdir"/opencv-$pkgver/LICENSE -t 
"$pkgdir"/usr/share/licenses/$pkgname
+}

Copied: opencv/repos/staging-x86_64/opencv-includedir.patch (from rev 365168, 
opencv/trunk/opencv-includedir.patch)
===
--- staging-x86_64/opencv-includedir.patch  (rev 0)
+++ staging-x86_64/opencv-includedir.patch  2019-10-18 21:29:59 UTC (rev 
365169)
@@ -0,0 +1,9 @@
+diff -u -r opencv-4.0.1/cmake/templates/opencv-XXX.pc.in 
opencv-4.0.1-includedir/cmake/templates/opencv-XXX.pc.in
+--- opencv-4.0.1/cmake/templates/opencv-XXX.pc.in  2018-12-22 
07:03:30.0 +

[arch-commits] Commit in opencv/repos (3 files)

2019-05-22 Thread Antonio Rojas via arch-commits
Date: Wednesday, May 22, 2019 @ 19:03:29
  Author: arojas
Revision: 353860

archrelease: copy trunk to staging-x86_64

Added:
  opencv/repos/staging-x86_64/
  opencv/repos/staging-x86_64/PKGBUILD
(from rev 353859, opencv/trunk/PKGBUILD)
  opencv/repos/staging-x86_64/opencv-includedir.patch
(from rev 353859, opencv/trunk/opencv-includedir.patch)

-+
 PKGBUILD|   91 ++
 opencv-includedir.patch |9 
 2 files changed, 100 insertions(+)

Copied: opencv/repos/staging-x86_64/PKGBUILD (from rev 353859, 
opencv/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2019-05-22 19:03:29 UTC (rev 353860)
@@ -0,0 +1,91 @@
+# Maintainer: Ray Rashif 
+# Contributor: Tobias Powalowski 
+
+pkgbase=opencv
+pkgname=(opencv opencv-samples)
+pkgver=4.1.0
+pkgrel=2
+pkgdesc="Open Source Computer Vision Library"
+arch=(x86_64)
+license=(BSD)
+url="https://opencv.org/";
+depends=(intel-tbb openexr gst-plugins-base libdc1394 cblas lapack libgphoto2 
jasper ffmpeg)
+makedepends=(cmake python-numpy python-setuptools mesa eigen hdf5 lapacke gtk3 
vtk glew ant java-environment)
+optdepends=('opencv-samples: samples'
+'gtk3: for the HighGUI module'
+'vtk: for the viz module'
+'hdf5: support for HDF5 format'
+'opencl-icd-loader: For coding with OpenCL'
+'python-numpy: Python interface'
+'java-runtime: Java interface')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/opencv/opencv/archive/$pkgver.zip";
+
"opencv_contrib-$pkgver.tar.gz::https://github.com/opencv/opencv_contrib/archive/$pkgver.tar.gz";
+opencv-includedir.patch)
+sha256sums=('2c75b129da2e2c8728d168b7bf14ceca2da0ebe938557b109bae6742855ede13'
+'e7d775cc0b87b04308823ca518b11b34cc12907a59af4ccdaf64419c1ba5e682'
+'a96e35c9592e655b21a62cfe04e864a10e21535ad900e5de67356b9e9f40ca10')
+
+prepare() {
+  mkdir -p build
+
+  cd $pkgname-$pkgver
+  patch -p1 -i ../opencv-includedir.patch # Fix wrong include patch in 
pkgconfig file
+}
+
+build() {
+  cd build
+  export JAVA_HOME="/usr/lib/jvm/default"
+  # cmake's FindLAPACK doesn't add cblas to LAPACK_LIBRARIES, so we need to 
specify them manually
+  _pythonpath=`python -c "from sysconfig import get_path; 
print(get_path('platlib'))"`
+  cmake ../$pkgname-$pkgver \
+-DWITH_OPENCL=ON \
+-DWITH_OPENGL=ON \
+-DWITH_TBB=ON \
+-DOpenGL_GL_PREFERENCE=GLVND \
+-DBUILD_WITH_DEBUG_INFO=OFF \
+-DBUILD_TESTS=OFF \
+-DBUILD_PERF_TESTS=OFF \
+-DBUILD_EXAMPLES=ON \
+-DINSTALL_C_EXAMPLES=ON \
+-DINSTALL_PYTHON_EXAMPLES=ON \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DCMAKE_INSTALL_LIBDIR=lib \
+-DCPU_BASELINE_DISABLE=SSE3 \
+-DCPU_BASELINE_REQUIRE=SSE2 \
+-DOPENCV_EXTRA_MODULES_PATH="$srcdir/opencv_contrib-$pkgver/modules" \
+-DOPENCV_SKIP_PYTHON_LOADER=ON \
+-DOPENCV_PYTHON3_INSTALL_PATH=$_pythonpath \
+
-DLAPACK_LIBRARIES="/usr/lib/liblapack.so;/usr/lib/libblas.so;/usr/lib/libcblas.so"
 \
+-DLAPACK_CBLAS_H="/usr/include/cblas.h" \
+-DLAPACK_LAPACKE_H="/usr/include/lapacke.h" \
+-DOPENCV_GENERATE_PKGCONFIG=ON \
+-DOPENCV_ENABLE_NONFREE=ON \
+-DOPENCV_JNI_INSTALL_PATH=lib
+  make
+}
+
+package_opencv() {
+  cd build
+  make DESTDIR="$pkgdir" install
+
+  # install license file
+  install -Dm644 "$srcdir"/$pkgname-$pkgver/LICENSE -t 
"$pkgdir"/usr/share/licenses/$pkgname
+
+  # separate samples package
+  cd "$pkgdir"/usr/share
+  mv opencv4/samples "$srcdir"/$pkgname-samples
+}
+
+package_opencv-samples() {
+  pkgdesc+=" (samples)"
+  depends=("opencv=$pkgver")
+  unset optdepends
+
+  mkdir -p "$pkgdir"/usr/share/opencv
+  cp -r "$srcdir"/opencv-samples "$pkgdir"/usr/share/opencv/samples
+  # fix permissions
+  chmod 755 "$pkgdir"/usr/share/opencv/samples/*
+
+  # install license file
+  install -Dm644 "$srcdir"/opencv-$pkgver/LICENSE -t 
"$pkgdir"/usr/share/licenses/$pkgname
+}

Copied: opencv/repos/staging-x86_64/opencv-includedir.patch (from rev 353859, 
opencv/trunk/opencv-includedir.patch)
===
--- staging-x86_64/opencv-includedir.patch  (rev 0)
+++ staging-x86_64/opencv-includedir.patch  2019-05-22 19:03:29 UTC (rev 
353860)
@@ -0,0 +1,9 @@
+diff -u -r opencv-4.0.1/cmake/templates/opencv-XXX.pc.in 
opencv-4.0.1-includedir/cmake/templates/opencv-XXX.pc.in
+--- opencv-4.0.1/cmake/templates/opencv-XXX.pc.in  2018-12-22 
07:03:30.0 +
 opencv-4.0.1-includedir/cmake/templates/opencv-XXX.pc.in   2019-02-07 
15:08:15.016613349 +
+@@ -11,4 +10,4 @@
+ Version: @OPENCV_VERSION_PLAIN@
+ Libs: @OPENCV_PC_LIBS@
+ Libs.private: @OPENCV_PC_LIBS_PRIVATE@
+-Cflags: -I${includedir_old} -I${includedir_new}
++Cflags: -I${include

[arch-commits] Commit in opencv/repos (3 files)

2019-04-08 Thread Antonio Rojas via arch-commits
Date: Monday, April 8, 2019 @ 09:40:38
  Author: arojas
Revision: 350319

archrelease: copy trunk to staging-x86_64

Added:
  opencv/repos/staging-x86_64/
  opencv/repos/staging-x86_64/PKGBUILD
(from rev 350318, opencv/trunk/PKGBUILD)
  opencv/repos/staging-x86_64/opencv-includedir.patch
(from rev 350318, opencv/trunk/opencv-includedir.patch)

-+
 PKGBUILD|   91 ++
 opencv-includedir.patch |9 
 2 files changed, 100 insertions(+)

Copied: opencv/repos/staging-x86_64/PKGBUILD (from rev 350318, 
opencv/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2019-04-08 09:40:38 UTC (rev 350319)
@@ -0,0 +1,91 @@
+# Maintainer: Ray Rashif 
+# Contributor: Tobias Powalowski 
+
+pkgbase=opencv
+pkgname=(opencv opencv-samples)
+pkgver=4.1.0
+pkgrel=1
+pkgdesc="Open Source Computer Vision Library"
+arch=(x86_64)
+license=(BSD)
+url="https://opencv.org/";
+depends=(intel-tbb openexr gst-plugins-base libdc1394 cblas lapack libgphoto2 
jasper ffmpeg)
+makedepends=(cmake python-numpy python-setuptools mesa eigen hdf5 lapacke gtk3 
vtk glew ant java-environment)
+optdepends=('opencv-samples: samples'
+'gtk3: for the HighGUI module'
+'vtk: for the viz module'
+'hdf5: support for HDF5 format'
+'opencl-icd-loader: For coding with OpenCL'
+'python-numpy: Python interface'
+'java-runtime: Java interface')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/opencv/opencv/archive/$pkgver.zip";
+
"opencv_contrib-$pkgver.tar.gz::https://github.com/opencv/opencv_contrib/archive/$pkgver.tar.gz";
+opencv-includedir.patch)
+sha256sums=('2c75b129da2e2c8728d168b7bf14ceca2da0ebe938557b109bae6742855ede13'
+'e7d775cc0b87b04308823ca518b11b34cc12907a59af4ccdaf64419c1ba5e682'
+'a96e35c9592e655b21a62cfe04e864a10e21535ad900e5de67356b9e9f40ca10')
+
+prepare() {
+  mkdir -p build
+
+  cd $pkgname-$pkgver
+  patch -p1 -i ../opencv-includedir.patch # Fix wrong include patch in 
pkgconfig file
+}
+
+build() {
+  cd build
+  export JAVA_HOME="/usr/lib/jvm/default"
+  # cmake's FindLAPACK doesn't add cblas to LAPACK_LIBRARIES, so we need to 
specify them manually
+  _pythonpath=`python -c "from sysconfig import get_path; 
print(get_path('platlib'))"`
+  cmake ../$pkgname-$pkgver \
+-DWITH_OPENCL=ON \
+-DWITH_OPENGL=ON \
+-DWITH_TBB=ON \
+-DOpenGL_GL_PREFERENCE=GLVND \
+-DBUILD_WITH_DEBUG_INFO=OFF \
+-DBUILD_TESTS=OFF \
+-DBUILD_PERF_TESTS=OFF \
+-DBUILD_EXAMPLES=ON \
+-DINSTALL_C_EXAMPLES=ON \
+-DINSTALL_PYTHON_EXAMPLES=ON \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DCMAKE_INSTALL_LIBDIR=lib \
+-DCPU_BASELINE_DISABLE=SSE3 \
+-DCPU_BASELINE_REQUIRE=SSE2 \
+-DOPENCV_EXTRA_MODULES_PATH="$srcdir/opencv_contrib-$pkgver/modules" \
+-DOPENCV_SKIP_PYTHON_LOADER=ON \
+-DOPENCV_PYTHON3_INSTALL_PATH=$_pythonpath \
+
-DLAPACK_LIBRARIES="/usr/lib/liblapack.so;/usr/lib/libblas.so;/usr/lib/libcblas.so"
 \
+-DLAPACK_CBLAS_H="/usr/include/cblas.h" \
+-DLAPACK_LAPACKE_H="/usr/include/lapacke.h" \
+-DOPENCV_GENERATE_PKGCONFIG=ON \
+-DOPENCV_ENABLE_NONFREE=ON \
+-DOPENCV_JNI_INSTALL_PATH=lib
+  make
+}
+
+package_opencv() {
+  cd build
+  make DESTDIR="$pkgdir" install
+
+  # install license file
+  install -Dm644 "$srcdir"/$pkgname-$pkgver/LICENSE -t 
"$pkgdir"/usr/share/licenses/$pkgname
+
+  # separate samples package
+  cd "$pkgdir"/usr/share
+  mv opencv4/samples "$srcdir"/$pkgname-samples
+}
+
+package_opencv-samples() {
+  pkgdesc+=" (samples)"
+  depends=("opencv=$pkgver")
+  unset optdepends
+
+  mkdir -p "$pkgdir"/usr/share/opencv
+  cp -r "$srcdir"/opencv-samples "$pkgdir"/usr/share/opencv/samples
+  # fix permissions
+  chmod 755 "$pkgdir"/usr/share/opencv/samples/*
+
+  # install license file
+  install -Dm644 "$srcdir"/opencv-$pkgver/LICENSE -t 
"$pkgdir"/usr/share/licenses/$pkgname
+}

Copied: opencv/repos/staging-x86_64/opencv-includedir.patch (from rev 350318, 
opencv/trunk/opencv-includedir.patch)
===
--- staging-x86_64/opencv-includedir.patch  (rev 0)
+++ staging-x86_64/opencv-includedir.patch  2019-04-08 09:40:38 UTC (rev 
350319)
@@ -0,0 +1,9 @@
+diff -u -r opencv-4.0.1/cmake/templates/opencv-XXX.pc.in 
opencv-4.0.1-includedir/cmake/templates/opencv-XXX.pc.in
+--- opencv-4.0.1/cmake/templates/opencv-XXX.pc.in  2018-12-22 
07:03:30.0 +
 opencv-4.0.1-includedir/cmake/templates/opencv-XXX.pc.in   2019-02-07 
15:08:15.016613349 +
+@@ -11,4 +10,4 @@
+ Version: @OPENCV_VERSION_PLAIN@
+ Libs: @OPENCV_PC_LIBS@
+ Libs.private: @OPENCV_PC_LIBS_PRIVATE@
+-Cflags: -I${includedir_old} -I${includedir_new}
++Cflags: -I${includedi

[arch-commits] Commit in opencv/repos (3 files)

2019-03-16 Thread Antonio Rojas via arch-commits
Date: Saturday, March 16, 2019 @ 23:07:48
  Author: arojas
Revision: 348534

archrelease: copy trunk to staging-x86_64

Added:
  opencv/repos/staging-x86_64/
  opencv/repos/staging-x86_64/PKGBUILD
(from rev 348533, opencv/trunk/PKGBUILD)
  opencv/repos/staging-x86_64/opencv-includedir.patch
(from rev 348533, opencv/trunk/opencv-includedir.patch)

-+
 PKGBUILD|   91 ++
 opencv-includedir.patch |9 
 2 files changed, 100 insertions(+)

Copied: opencv/repos/staging-x86_64/PKGBUILD (from rev 348533, 
opencv/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2019-03-16 23:07:48 UTC (rev 348534)
@@ -0,0 +1,91 @@
+# Maintainer: Ray Rashif 
+# Contributor: Tobias Powalowski 
+
+pkgbase=opencv
+pkgname=(opencv opencv-samples)
+pkgver=4.0.1
+pkgrel=6
+pkgdesc="Open Source Computer Vision Library"
+arch=(x86_64)
+license=(BSD)
+url="https://opencv.org/";
+depends=(intel-tbb openexr gst-plugins-base libdc1394 cblas lapack libgphoto2 
jasper ffmpeg)
+makedepends=(cmake python-numpy python-setuptools mesa eigen hdf5 lapacke gtk3 
vtk glew ant java-environment)
+optdepends=('opencv-samples: samples'
+'gtk3: for the HighGUI module'
+'vtk: for the viz module'
+'hdf5: support for HDF5 format'
+'opencl-icd-loader: For coding with OpenCL'
+'python-numpy: Python interface'
+'java-runtime: Java interface')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/opencv/opencv/archive/$pkgver.zip";
+
"opencv_contrib-$pkgver.tar.gz::https://github.com/opencv/opencv_contrib/archive/$pkgver.tar.gz";
+opencv-includedir.patch)
+sha256sums=('b79ccdc4797a959c5ab17249a8a302c066248ae070e4d7010e2d77a625fdb30a'
+'0d8acbad4b7074cfaafd906a7419c23629179d5e98894714402090b192ef8237'
+'a96e35c9592e655b21a62cfe04e864a10e21535ad900e5de67356b9e9f40ca10')
+
+prepare() {
+  mkdir -p build
+
+  cd $pkgname-$pkgver
+  patch -p1 -i ../opencv-includedir.patch # Fix wrong include patch in 
pkgconfig file
+}
+
+build() {
+  cd build
+  export JAVA_HOME="/usr/lib/jvm/default"
+  # cmake's FindLAPACK doesn't add cblas to LAPACK_LIBRARIES, so we need to 
specify them manually
+  _pythonpath=`python -c "from sysconfig import get_path; 
print(get_path('platlib'))"`
+  cmake ../$pkgname-$pkgver \
+-DWITH_OPENCL=ON \
+-DWITH_OPENGL=ON \
+-DWITH_TBB=ON \
+-DOpenGL_GL_PREFERENCE=GLVND \
+-DBUILD_WITH_DEBUG_INFO=OFF \
+-DBUILD_TESTS=OFF \
+-DBUILD_PERF_TESTS=OFF \
+-DBUILD_EXAMPLES=ON \
+-DINSTALL_C_EXAMPLES=ON \
+-DINSTALL_PYTHON_EXAMPLES=ON \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DCMAKE_INSTALL_LIBDIR=lib \
+-DCPU_BASELINE_DISABLE=SSE3 \
+-DCPU_BASELINE_REQUIRE=SSE2 \
+-DOPENCV_EXTRA_MODULES_PATH="$srcdir/opencv_contrib-$pkgver/modules" \
+-DOPENCV_SKIP_PYTHON_LOADER=ON \
+-DOPENCV_PYTHON3_INSTALL_PATH=$_pythonpath \
+
-DLAPACK_LIBRARIES="/usr/lib/liblapack.so;/usr/lib/libblas.so;/usr/lib/libcblas.so"
 \
+-DLAPACK_CBLAS_H="/usr/include/cblas.h" \
+-DLAPACK_LAPACKE_H="/usr/include/lapacke.h" \
+-DOPENCV_GENERATE_PKGCONFIG=ON \
+-DOPENCV_ENABLE_NONFREE=ON \
+-DOPENCV_JNI_INSTALL_PATH=lib
+  make
+}
+
+package_opencv() {
+  cd build
+  make DESTDIR="$pkgdir" install
+
+  # install license file
+  install -Dm644 "$srcdir"/$pkgname-$pkgver/LICENSE -t 
"$pkgdir"/usr/share/licenses/$pkgname
+
+  # separate samples package
+  cd "$pkgdir"/usr/share
+  mv opencv4/samples "$srcdir"/$pkgname-samples
+}
+
+package_opencv-samples() {
+  pkgdesc+=" (samples)"
+  depends=("opencv=$pkgver")
+  unset optdepends
+
+  mkdir -p "$pkgdir"/usr/share/opencv
+  cp -r "$srcdir"/opencv-samples "$pkgdir"/usr/share/opencv/samples
+  # fix permissions
+  chmod 755 "$pkgdir"/usr/share/opencv/samples/*
+
+  # install license file
+  install -Dm644 "$srcdir"/opencv-$pkgver/LICENSE -t 
"$pkgdir"/usr/share/licenses/$pkgname
+}

Copied: opencv/repos/staging-x86_64/opencv-includedir.patch (from rev 348533, 
opencv/trunk/opencv-includedir.patch)
===
--- staging-x86_64/opencv-includedir.patch  (rev 0)
+++ staging-x86_64/opencv-includedir.patch  2019-03-16 23:07:48 UTC (rev 
348534)
@@ -0,0 +1,9 @@
+diff -u -r opencv-4.0.1/cmake/templates/opencv-XXX.pc.in 
opencv-4.0.1-includedir/cmake/templates/opencv-XXX.pc.in
+--- opencv-4.0.1/cmake/templates/opencv-XXX.pc.in  2018-12-22 
07:03:30.0 +
 opencv-4.0.1-includedir/cmake/templates/opencv-XXX.pc.in   2019-02-07 
15:08:15.016613349 +
+@@ -11,4 +10,4 @@
+ Version: @OPENCV_VERSION_PLAIN@
+ Libs: @OPENCV_PC_LIBS@
+ Libs.private: @OPENCV_PC_LIBS_PRIVATE@
+-Cflags: -I${includedir_old} -I${includedir_new}
++Cflags: -I${includ

[arch-commits] Commit in opencv/repos (3 files)

2015-07-10 Thread Ray Rashif
Date: Friday, July 10, 2015 @ 18:18:52
  Author: schiv
Revision: 242084

archrelease: copy trunk to staging-x86_64

Added:
  opencv/repos/staging-x86_64/
  opencv/repos/staging-x86_64/PKGBUILD
(from rev 242083, opencv/trunk/PKGBUILD)
  opencv/repos/staging-x86_64/fsh.patch
(from rev 242083, opencv/trunk/fsh.patch)

---+
 PKGBUILD  |  108 +++
 fsh.patch |  136 
 2 files changed, 244 insertions(+)

Copied: opencv/repos/staging-x86_64/PKGBUILD (from rev 242083, 
opencv/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2015-07-10 16:18:52 UTC (rev 242084)
@@ -0,0 +1,108 @@
+# $Id$
+# Maintainer: Ray Rashif 
+# Contributor: Tobias Powalowski 
+
+pkgbase=opencv
+pkgname=('opencv' 'opencv-samples')
+_contrib=opencv_contrib
+pkgver=3.0.0
+pkgrel=1
+pkgdesc="Open Source Computer Vision Library"
+arch=('i686' 'x86_64')
+license=('BSD')
+url="http://opencv.org/";
+depends=('intel-tbb' 'openexr' 'xine-lib' 'libdc1394'
+  'gtkglext' 'libwebp' 'libgphoto2')
+makedepends=('cmake' 'python2-numpy' 'python-numpy' 'mesa' 'eigen' 'git')
+optdepends=('opencv-samples'
+'eigen2'
+'libcl: For coding with OpenCL'
+'python2-numpy: Python 2.x interface'
+'python-numpy: Python 3.x interface')
+source=("http://downloads.sourceforge.net/opencvlibrary/$pkgname-$pkgver.zip";
+
"$_contrib-$pkgver::git+https://github.com/Itseez/$_contrib.git#tag=$pkgver";)
+md5sums=('09004c275d8092cbdf5b61675cecd399'
+ 'SKIP')
+
+_cmakeopts=('-D WITH_OPENGL=ON'
+'-D WITH_TBB=ON'
+'-D WITH_XINE=ON'
+'-D WITH_GSTREAMER=OFF'
+'-D BUILD_WITH_DEBUG_INFO=OFF'
+'-D BUILD_TESTS=OFF'
+'-D BUILD_PERF_TESTS=OFF'
+'-D INSTALL_TESTS=ON'
+'-D INSTALL_C_EXAMPLES=ON'
+'-D INSTALL_PYTHON_EXAMPLES=ON'
+"-D OPENCV_EXTRA_MODULES_PATH=$srcdir/$_contrib/modules"
+'-D CMAKE_BUILD_TYPE=Release'
+'-D CMAKE_INSTALL_PREFIX=/usr'
+'-D CMAKE_SKIP_RPATH=ON')
+
+# SSE only available from Pentium 3 onwards (i686 is way older)
+[[ "$CARCH" = 'i686' ]] && \
+  _cmakeopts+=('-D ENABLE_SSE=OFF'
+   '-D ENABLE_SSE2=OFF'
+   '-D ENABLE_SSE3=OFF')
+
+# all x64 CPUs support SSE2 but not SSE3
+[[ "$CARCH" = 'x86_64' ]] && _cmakeopts+=('-D ENABLE_SSE3=OFF')
+
+#prepare() {
+#  cd "$srcdir/$pkgname-$pkgver"
+#
+#  # TODO: this is mostly upstream frei0r; they hardcode the path
+#  #msg2 "Hack-fixing folder naming inconsistency (downstream)"
+#  # see http://code.opencv.org/issues/2512
+#  # and https://bugs.archlinux.org/task/32342
+#  #patch -Np1 -i "$srcdir/fsh.patch"
+#
+#  # no longer including docs, see https://bugs.archlinux.org/task/34185
+#  # python2 compatibility for generating (html) docs
+#  #sed -i 's/sphinx-build/sphinx-build2/' cmake/OpenCVDetectPython.cmake
+#}
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  export LDFLAGS+=",-z,noexecstack"
+  cmake ${_cmakeopts[@]} .
+  make
+}
+
+package_opencv() {
+  options=('staticlibs')
+
+  cd "$srcdir/$pkgname-$pkgver"
+
+  make DESTDIR="$pkgdir" install
+
+  # install license file
+  install -Dm644 "$srcdir/$pkgname-$pkgver/LICENSE" \
+"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+  cd "$pkgdir/usr/share"
+
+  # separate samples package; also be -R friendly
+  if [[ -d OpenCV/samples ]]; then
+mv OpenCV/samples "$srcdir/$pkgname-samples"
+mv OpenCV $pkgname # otherwise folder naming is inconsistent
+  elif [[ ! -d OpenCV ]]; then
+warning "Directory naming issue; samples package may not be built!"
+  fi
+}
+
+package_opencv-samples() {
+  pkgdesc+=" (samples)"
+  depends=("opencv=$pkgver") # sample codes change with lib/API
+  unset optdepends
+
+  mkdir -p "$pkgdir/usr/share/opencv"
+  cp -r "$srcdir/opencv-samples" "$pkgdir/usr/share/opencv/samples"
+
+  # install license file
+  install -Dm644 "$srcdir/opencv-$pkgver/LICENSE" \
+"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: opencv/repos/staging-x86_64/fsh.patch (from rev 242083, 
opencv/trunk/fsh.patch)
===
--- staging-x86_64/fsh.patch(rev 0)
+++ staging-x86_64/fsh.patch2015-07-10 16:18:52 UTC (rev 242084)
@@ -0,0 +1,136 @@
+diff -baur opencv-2.4.7.orig/cmake/OpenCVGenPkgconfig.cmake 
opencv-2.4.7/cmake/OpenCVGenPkgconfig.cmake
+--- opencv-2.4.7.orig/cmake/OpenCVGenPkgconfig.cmake   2013-11-12 
20:31:27.253763202 +
 opencv-2.4.7/cmake/OpenCVGenPkgconfig.cmake2013-11-12 
20:31:54.923577113 +
+@@ -46,7 +46,7 @@
+ 
+   #need better solution
+   if(libpath MATCHES "3rdparty")
+-set(installDir "share/OpenCV/3rd

[arch-commits] Commit in opencv/repos (3 files)

2015-07-10 Thread Ray Rashif
Date: Friday, July 10, 2015 @ 18:18:21
  Author: schiv
Revision: 242083

archrelease: copy trunk to staging-i686

Added:
  opencv/repos/staging-i686/
  opencv/repos/staging-i686/PKGBUILD
(from rev 242081, opencv/trunk/PKGBUILD)
  opencv/repos/staging-i686/fsh.patch
(from rev 242081, opencv/trunk/fsh.patch)

---+
 PKGBUILD  |  108 +++
 fsh.patch |  136 
 2 files changed, 244 insertions(+)

Copied: opencv/repos/staging-i686/PKGBUILD (from rev 242081, 
opencv/trunk/PKGBUILD)
===
--- staging-i686/PKGBUILD   (rev 0)
+++ staging-i686/PKGBUILD   2015-07-10 16:18:21 UTC (rev 242083)
@@ -0,0 +1,108 @@
+# $Id$
+# Maintainer: Ray Rashif 
+# Contributor: Tobias Powalowski 
+
+pkgbase=opencv
+pkgname=('opencv' 'opencv-samples')
+_contrib=opencv_contrib
+pkgver=3.0.0
+pkgrel=1
+pkgdesc="Open Source Computer Vision Library"
+arch=('i686' 'x86_64')
+license=('BSD')
+url="http://opencv.org/";
+depends=('intel-tbb' 'openexr' 'xine-lib' 'libdc1394'
+  'gtkglext' 'libwebp' 'libgphoto2')
+makedepends=('cmake' 'python2-numpy' 'python-numpy' 'mesa' 'eigen' 'git')
+optdepends=('opencv-samples'
+'eigen2'
+'libcl: For coding with OpenCL'
+'python2-numpy: Python 2.x interface'
+'python-numpy: Python 3.x interface')
+source=("http://downloads.sourceforge.net/opencvlibrary/$pkgname-$pkgver.zip";
+
"$_contrib-$pkgver::git+https://github.com/Itseez/$_contrib.git#tag=$pkgver";)
+md5sums=('09004c275d8092cbdf5b61675cecd399'
+ 'SKIP')
+
+_cmakeopts=('-D WITH_OPENGL=ON'
+'-D WITH_TBB=ON'
+'-D WITH_XINE=ON'
+'-D WITH_GSTREAMER=OFF'
+'-D BUILD_WITH_DEBUG_INFO=OFF'
+'-D BUILD_TESTS=OFF'
+'-D BUILD_PERF_TESTS=OFF'
+'-D INSTALL_TESTS=ON'
+'-D INSTALL_C_EXAMPLES=ON'
+'-D INSTALL_PYTHON_EXAMPLES=ON'
+"-D OPENCV_EXTRA_MODULES_PATH=$srcdir/$_contrib/modules"
+'-D CMAKE_BUILD_TYPE=Release'
+'-D CMAKE_INSTALL_PREFIX=/usr'
+'-D CMAKE_SKIP_RPATH=ON')
+
+# SSE only available from Pentium 3 onwards (i686 is way older)
+[[ "$CARCH" = 'i686' ]] && \
+  _cmakeopts+=('-D ENABLE_SSE=OFF'
+   '-D ENABLE_SSE2=OFF'
+   '-D ENABLE_SSE3=OFF')
+
+# all x64 CPUs support SSE2 but not SSE3
+[[ "$CARCH" = 'x86_64' ]] && _cmakeopts+=('-D ENABLE_SSE3=OFF')
+
+#prepare() {
+#  cd "$srcdir/$pkgname-$pkgver"
+#
+#  # TODO: this is mostly upstream frei0r; they hardcode the path
+#  #msg2 "Hack-fixing folder naming inconsistency (downstream)"
+#  # see http://code.opencv.org/issues/2512
+#  # and https://bugs.archlinux.org/task/32342
+#  #patch -Np1 -i "$srcdir/fsh.patch"
+#
+#  # no longer including docs, see https://bugs.archlinux.org/task/34185
+#  # python2 compatibility for generating (html) docs
+#  #sed -i 's/sphinx-build/sphinx-build2/' cmake/OpenCVDetectPython.cmake
+#}
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  export LDFLAGS+=",-z,noexecstack"
+  cmake ${_cmakeopts[@]} .
+  make
+}
+
+package_opencv() {
+  options=('staticlibs')
+
+  cd "$srcdir/$pkgname-$pkgver"
+
+  make DESTDIR="$pkgdir" install
+
+  # install license file
+  install -Dm644 "$srcdir/$pkgname-$pkgver/LICENSE" \
+"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+  cd "$pkgdir/usr/share"
+
+  # separate samples package; also be -R friendly
+  if [[ -d OpenCV/samples ]]; then
+mv OpenCV/samples "$srcdir/$pkgname-samples"
+mv OpenCV $pkgname # otherwise folder naming is inconsistent
+  elif [[ ! -d OpenCV ]]; then
+warning "Directory naming issue; samples package may not be built!"
+  fi
+}
+
+package_opencv-samples() {
+  pkgdesc+=" (samples)"
+  depends=("opencv=$pkgver") # sample codes change with lib/API
+  unset optdepends
+
+  mkdir -p "$pkgdir/usr/share/opencv"
+  cp -r "$srcdir/opencv-samples" "$pkgdir/usr/share/opencv/samples"
+
+  # install license file
+  install -Dm644 "$srcdir/opencv-$pkgver/LICENSE" \
+"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: opencv/repos/staging-i686/fsh.patch (from rev 242081, 
opencv/trunk/fsh.patch)
===
--- staging-i686/fsh.patch  (rev 0)
+++ staging-i686/fsh.patch  2015-07-10 16:18:21 UTC (rev 242083)
@@ -0,0 +1,136 @@
+diff -baur opencv-2.4.7.orig/cmake/OpenCVGenPkgconfig.cmake 
opencv-2.4.7/cmake/OpenCVGenPkgconfig.cmake
+--- opencv-2.4.7.orig/cmake/OpenCVGenPkgconfig.cmake   2013-11-12 
20:31:27.253763202 +
 opencv-2.4.7/cmake/OpenCVGenPkgconfig.cmake2013-11-12 
20:31:54.923577113 +
+@@ -46,7 +46,7 @@
+ 
+   #need better solution
+   if(libpath MATCHES "3rdparty")
+-set(installDir "share/OpenCV/3rdparty/${OPEN

[arch-commits] Commit in opencv/repos (3 files)

2012-02-05 Thread Ionut Biru
Date: Sunday, February 5, 2012 @ 06:53:22
  Author: ibiru
Revision: 148866

db-move: moved opencv from [testing] to [extra] (x86_64)

Added:
  opencv/repos/extra-x86_64/PKGBUILD
(from rev 148654, opencv/repos/testing-x86_64/PKGBUILD)
Deleted:
  opencv/repos/extra-x86_64/PKGBUILD
  opencv/repos/testing-x86_64/

--+
 PKGBUILD |  238 ++---
 1 file changed, 119 insertions(+), 119 deletions(-)

Deleted: extra-x86_64/PKGBUILD
===
--- extra-x86_64/PKGBUILD   2012-02-05 11:53:20 UTC (rev 148865)
+++ extra-x86_64/PKGBUILD   2012-02-05 11:53:22 UTC (rev 148866)
@@ -1,119 +0,0 @@
-# $Id$
-# Maintainer: Ray Rashif 
-# Contributor: Tobias Powalowski 
-
-pkgbase=opencv
-pkgname=('opencv' 'opencv-docs' 'opencv-samples')
-_realname=OpenCV
-pkgver=2.3.1_a
-_realver=2.3.1
-pkgrel=3
-pkgdesc="Open Source Computer Vision Library"
-arch=('i686' 'x86_64')
-license=('BSD')
-url="http://opencv.willowgarage.com/";
-depends=('jasper' 'gstreamer0.10-base' 'openexr'
- 'gtk2' 'xine-lib' 'libdc1394' 'v4l-utils')
-makedepends=('pkg-config' 'cmake' 'python2-numpy' 'eigen2')
-optdepends=('opencv-docs'
-'opencv-samples'
-'eigen2'
-'python2-numpy: Python 2.x interface')
-options=('!libtool')
-source=("http://downloads.sourceforge.net/opencvlibrary/$_realname-${_realver}a.tar.bz2";)
-md5sums=('82e4b6bfa349777233eea09b075e931e')
-
-_cmakeopts=('-D CMAKE_BUILD_TYPE=Release'
-'-D CMAKE_INSTALL_PREFIX=/usr'
-'-D CMAKE_SKIP_RPATH=ON'
-'-D BUILD_TESTS=OFF'
-'-D ENABLE_SSE=ON'
-'-D ENABLE_SSE2=ON'
-'-D ENABLE_SSE3=OFF'
-'-D ENABLE_SSSE3=OFF'
-'-D ENABLE_SSE41=OFF'
-'-D ENABLE_SSE42=OFF'
-'-D BUILD_EXAMPLES=ON'
-'-D INSTALL_C_EXAMPLES=ON'
-'-D INSTALL_PYTHON_EXAMPLES=ON'
-'-D WITH_XINE=ON'
-'-D WITH_QT=OFF'
-'-D WITH_QT_OPENGL=OFF'
-'-D WITH_UNICAP=OFF'
-'-D WITH_PVAPI=OFF'
-'-D WITH_OPENNI=OFF'
-'-D WITH_TBB=OFF'
-'-D WITH_IPP=OFF'
-'-D WITH_CUDA=OFF'
-'-D USE_FAST_MATH=ON')
-
-build() {
-  cd "$srcdir/$_realname-$_realver"
-
-  # x64, i.e "Athlon64" and upwards, can use SSE3
-  [ $CARCH = x86_64 ] && \
-_cmakeopts=${_cmakeopts[@]/ENABLE_SSE3=OFF/ENABLE_SSE3=ON}
-
-  cmake ${_cmakeopts[@]} .
-
-  make
-}
-
-package_opencv() {
-  cd "$srcdir/$_realname-$_realver"
-
-  make DESTDIR="$pkgdir" install
-
-  # install license file
-  install -Dm644 "$srcdir/$_realname-$_realver/doc/license.txt" \
-"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-
-  cd "$pkgdir/usr/share"
-
-  # prepare FSH-friendly dirs
-  if [ -d OpenCV ]; then
-mv opencv/samples OpenCV/
-rm -r opencv
-mv OpenCV opencv
-  fi
-
-  # separate docs package; also be -R friendly
-  [ -d opencv/doc ] && mv opencv/doc "$srcdir/opencv-doc"
-
-  # separate samples package
-  [ -d opencv/samples ] && mv opencv/samples "$srcdir/opencv-samples"
-}
-
-package_opencv-docs() {
-  pkgdesc+=" (documentation)"
-  unset depends
-  unset optdepends
-  options=('docs')
-
-  cd "$srcdir"
-
-  mkdir -p "$pkgdir/usr/share/doc"
-  cp -r opencv-doc "$pkgdir/usr/share/doc/opencv"
-
-  # install license file
-  install -Dm644 "$srcdir/$_realname-$_realver/doc/license.txt" \
-"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
-package_opencv-samples() {
-  pkgdesc+=" (samples)"
-  depends=('bash')
-  unset optdepends
-  unset options
-
-  cd "$srcdir"
-
-  mkdir -p "$pkgdir/usr/share/opencv"
-  cp -r opencv-samples "$pkgdir/usr/share/opencv/samples"
-
-  # install license file
-  install -Dm644 "$srcdir/$_realname-$_realver/doc/license.txt" \
-"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: opencv/repos/extra-x86_64/PKGBUILD (from rev 148654, 
opencv/repos/testing-x86_64/PKGBUILD)
===
--- extra-x86_64/PKGBUILD   (rev 0)
+++ extra-x86_64/PKGBUILD   2012-02-05 11:53:22 UTC (rev 148866)
@@ -0,0 +1,119 @@
+# $Id$
+# Maintainer: Ray Rashif 
+# Contributor: Tobias Powalowski 
+
+pkgbase=opencv
+pkgname=('opencv' 'opencv-docs' 'opencv-samples')
+_realname=OpenCV
+pkgver=2.3.1_a
+_realver=2.3.1
+pkgrel=4
+pkgdesc="Open Source Computer Vision Library"
+arch=('i686' 'x86_64')
+license=('BSD')
+url="http://opencv.willowgarage.com/";
+depends=('jasper' 'gstreamer0.10-base' 'openexr'
+ 'gtk2' 'xine-lib' 'libdc1394' 'v4l-utils')
+makedepends=('pkg-config' 'cmake' 'python2-numpy' 'eigen2')
+optdepends=('opencv-docs'
+'opencv-samples'
+'eigen2'
+'python2-numpy: Python 2.x interface')
+options=('!libtool')
+source=("http://downloads.sourceforge.net/opencvlibrary/$_realname-${_realver}a.ta

[arch-commits] Commit in opencv/repos (3 files)

2012-02-05 Thread Ionut Biru
Date: Sunday, February 5, 2012 @ 06:53:20
  Author: ibiru
Revision: 148865

db-move: moved opencv from [testing] to [extra] (i686)

Added:
  opencv/repos/extra-i686/PKGBUILD
(from rev 148654, opencv/repos/testing-i686/PKGBUILD)
Deleted:
  opencv/repos/extra-i686/PKGBUILD
  opencv/repos/testing-i686/

--+
 PKGBUILD |  238 ++---
 1 file changed, 119 insertions(+), 119 deletions(-)

Deleted: extra-i686/PKGBUILD
===
--- extra-i686/PKGBUILD 2012-02-05 11:53:19 UTC (rev 148864)
+++ extra-i686/PKGBUILD 2012-02-05 11:53:20 UTC (rev 148865)
@@ -1,119 +0,0 @@
-# $Id$
-# Maintainer: Ray Rashif 
-# Contributor: Tobias Powalowski 
-
-pkgbase=opencv
-pkgname=('opencv' 'opencv-docs' 'opencv-samples')
-_realname=OpenCV
-pkgver=2.3.1_a
-_realver=2.3.1
-pkgrel=3
-pkgdesc="Open Source Computer Vision Library"
-arch=('i686' 'x86_64')
-license=('BSD')
-url="http://opencv.willowgarage.com/";
-depends=('jasper' 'gstreamer0.10-base' 'openexr'
- 'gtk2' 'xine-lib' 'libdc1394' 'v4l-utils')
-makedepends=('pkg-config' 'cmake' 'python2-numpy' 'eigen2')
-optdepends=('opencv-docs'
-'opencv-samples'
-'eigen2'
-'python2-numpy: Python 2.x interface')
-options=('!libtool')
-source=("http://downloads.sourceforge.net/opencvlibrary/$_realname-${_realver}a.tar.bz2";)
-md5sums=('82e4b6bfa349777233eea09b075e931e')
-
-_cmakeopts=('-D CMAKE_BUILD_TYPE=Release'
-'-D CMAKE_INSTALL_PREFIX=/usr'
-'-D CMAKE_SKIP_RPATH=ON'
-'-D BUILD_TESTS=OFF'
-'-D ENABLE_SSE=ON'
-'-D ENABLE_SSE2=ON'
-'-D ENABLE_SSE3=OFF'
-'-D ENABLE_SSSE3=OFF'
-'-D ENABLE_SSE41=OFF'
-'-D ENABLE_SSE42=OFF'
-'-D BUILD_EXAMPLES=ON'
-'-D INSTALL_C_EXAMPLES=ON'
-'-D INSTALL_PYTHON_EXAMPLES=ON'
-'-D WITH_XINE=ON'
-'-D WITH_QT=OFF'
-'-D WITH_QT_OPENGL=OFF'
-'-D WITH_UNICAP=OFF'
-'-D WITH_PVAPI=OFF'
-'-D WITH_OPENNI=OFF'
-'-D WITH_TBB=OFF'
-'-D WITH_IPP=OFF'
-'-D WITH_CUDA=OFF'
-'-D USE_FAST_MATH=ON')
-
-build() {
-  cd "$srcdir/$_realname-$_realver"
-
-  # x64, i.e "Athlon64" and upwards, can use SSE3
-  [ $CARCH = x86_64 ] && \
-_cmakeopts=${_cmakeopts[@]/ENABLE_SSE3=OFF/ENABLE_SSE3=ON}
-
-  cmake ${_cmakeopts[@]} .
-
-  make
-}
-
-package_opencv() {
-  cd "$srcdir/$_realname-$_realver"
-
-  make DESTDIR="$pkgdir" install
-
-  # install license file
-  install -Dm644 "$srcdir/$_realname-$_realver/doc/license.txt" \
-"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-
-  cd "$pkgdir/usr/share"
-
-  # prepare FSH-friendly dirs
-  if [ -d OpenCV ]; then
-mv opencv/samples OpenCV/
-rm -r opencv
-mv OpenCV opencv
-  fi
-
-  # separate docs package; also be -R friendly
-  [ -d opencv/doc ] && mv opencv/doc "$srcdir/opencv-doc"
-
-  # separate samples package
-  [ -d opencv/samples ] && mv opencv/samples "$srcdir/opencv-samples"
-}
-
-package_opencv-docs() {
-  pkgdesc+=" (documentation)"
-  unset depends
-  unset optdepends
-  options=('docs')
-
-  cd "$srcdir"
-
-  mkdir -p "$pkgdir/usr/share/doc"
-  cp -r opencv-doc "$pkgdir/usr/share/doc/opencv"
-
-  # install license file
-  install -Dm644 "$srcdir/$_realname-$_realver/doc/license.txt" \
-"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
-package_opencv-samples() {
-  pkgdesc+=" (samples)"
-  depends=('bash')
-  unset optdepends
-  unset options
-
-  cd "$srcdir"
-
-  mkdir -p "$pkgdir/usr/share/opencv"
-  cp -r opencv-samples "$pkgdir/usr/share/opencv/samples"
-
-  # install license file
-  install -Dm644 "$srcdir/$_realname-$_realver/doc/license.txt" \
-"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: opencv/repos/extra-i686/PKGBUILD (from rev 148654, 
opencv/repos/testing-i686/PKGBUILD)
===
--- extra-i686/PKGBUILD (rev 0)
+++ extra-i686/PKGBUILD 2012-02-05 11:53:20 UTC (rev 148865)
@@ -0,0 +1,119 @@
+# $Id$
+# Maintainer: Ray Rashif 
+# Contributor: Tobias Powalowski 
+
+pkgbase=opencv
+pkgname=('opencv' 'opencv-docs' 'opencv-samples')
+_realname=OpenCV
+pkgver=2.3.1_a
+_realver=2.3.1
+pkgrel=4
+pkgdesc="Open Source Computer Vision Library"
+arch=('i686' 'x86_64')
+license=('BSD')
+url="http://opencv.willowgarage.com/";
+depends=('jasper' 'gstreamer0.10-base' 'openexr'
+ 'gtk2' 'xine-lib' 'libdc1394' 'v4l-utils')
+makedepends=('pkg-config' 'cmake' 'python2-numpy' 'eigen2')
+optdepends=('opencv-docs'
+'opencv-samples'
+'eigen2'
+'python2-numpy: Python 2.x interface')
+options=('!libtool')
+source=("http://downloads.sourceforge.net/opencvlibrary/$_realname-${_realver}a.tar.bz2";)
+md5sums=('82e4b6bfa349777233eea09b075e

[arch-commits] Commit in opencv/repos (3 files)

2012-01-30 Thread Ionut Biru
Date: Monday, January 30, 2012 @ 13:49:08
  Author: ibiru
Revision: 148245

db-move: moved opencv from [staging] to [testing] (x86_64)

Added:
  opencv/repos/testing-x86_64/
  opencv/repos/testing-x86_64/PKGBUILD
(from rev 148047, opencv/repos/staging-x86_64/PKGBUILD)
Deleted:
  opencv/repos/staging-x86_64/

--+
 PKGBUILD |  119 +
 1 file changed, 119 insertions(+)

Copied: opencv/repos/testing-x86_64/PKGBUILD (from rev 148047, 
opencv/repos/staging-x86_64/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2012-01-30 18:49:08 UTC (rev 148245)
@@ -0,0 +1,119 @@
+# $Id$
+# Maintainer: Ray Rashif 
+# Contributor: Tobias Powalowski 
+
+pkgbase=opencv
+pkgname=('opencv' 'opencv-docs' 'opencv-samples')
+_realname=OpenCV
+pkgver=2.3.1_a
+_realver=2.3.1
+pkgrel=4
+pkgdesc="Open Source Computer Vision Library"
+arch=('i686' 'x86_64')
+license=('BSD')
+url="http://opencv.willowgarage.com/";
+depends=('jasper' 'gstreamer0.10-base' 'openexr'
+ 'gtk2' 'xine-lib' 'libdc1394' 'v4l-utils')
+makedepends=('pkg-config' 'cmake' 'python2-numpy' 'eigen2')
+optdepends=('opencv-docs'
+'opencv-samples'
+'eigen2'
+'python2-numpy: Python 2.x interface')
+options=('!libtool')
+source=("http://downloads.sourceforge.net/opencvlibrary/$_realname-${_realver}a.tar.bz2";)
+md5sums=('82e4b6bfa349777233eea09b075e931e')
+
+_cmakeopts=('-D CMAKE_BUILD_TYPE=Release'
+'-D CMAKE_INSTALL_PREFIX=/usr'
+'-D CMAKE_SKIP_RPATH=ON'
+'-D BUILD_TESTS=OFF'
+'-D ENABLE_SSE=ON'
+'-D ENABLE_SSE2=ON'
+'-D ENABLE_SSE3=OFF'
+'-D ENABLE_SSSE3=OFF'
+'-D ENABLE_SSE41=OFF'
+'-D ENABLE_SSE42=OFF'
+'-D BUILD_EXAMPLES=ON'
+'-D INSTALL_C_EXAMPLES=ON'
+'-D INSTALL_PYTHON_EXAMPLES=ON'
+'-D WITH_XINE=ON'
+'-D WITH_QT=OFF'
+'-D WITH_QT_OPENGL=OFF'
+'-D WITH_UNICAP=OFF'
+'-D WITH_PVAPI=OFF'
+'-D WITH_OPENNI=OFF'
+'-D WITH_TBB=OFF'
+'-D WITH_IPP=OFF'
+'-D WITH_CUDA=OFF'
+'-D USE_FAST_MATH=ON')
+
+build() {
+  cd "$srcdir/$_realname-$_realver"
+
+  # x64, i.e "Athlon64" and upwards, can use SSE3
+  [ $CARCH = x86_64 ] && \
+_cmakeopts=${_cmakeopts[@]/ENABLE_SSE3=OFF/ENABLE_SSE3=ON}
+
+  cmake ${_cmakeopts[@]} .
+
+  make
+}
+
+package_opencv() {
+  cd "$srcdir/$_realname-$_realver"
+
+  make DESTDIR="$pkgdir" install
+
+  # install license file
+  install -Dm644 "$srcdir/$_realname-$_realver/doc/license.txt" \
+"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+  cd "$pkgdir/usr/share"
+
+  # prepare FSH-friendly dirs
+  if [ -d OpenCV ]; then
+mv opencv/samples OpenCV/
+rm -r opencv
+mv OpenCV opencv
+  fi
+
+  # separate docs package; also be -R friendly
+  [ -d opencv/doc ] && mv opencv/doc "$srcdir/opencv-doc"
+
+  # separate samples package
+  [ -d opencv/samples ] && mv opencv/samples "$srcdir/opencv-samples"
+}
+
+package_opencv-docs() {
+  pkgdesc+=" (documentation)"
+  unset depends
+  unset optdepends
+  options=('docs')
+
+  cd "$srcdir"
+
+  mkdir -p "$pkgdir/usr/share/doc"
+  cp -r opencv-doc "$pkgdir/usr/share/doc/opencv"
+
+  # install license file
+  install -Dm644 "$srcdir/$_realname-$_realver/doc/license.txt" \
+"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_opencv-samples() {
+  pkgdesc+=" (samples)"
+  depends=('bash')
+  unset optdepends
+  unset options
+
+  cd "$srcdir"
+
+  mkdir -p "$pkgdir/usr/share/opencv"
+  cp -r opencv-samples "$pkgdir/usr/share/opencv/samples"
+
+  # install license file
+  install -Dm644 "$srcdir/$_realname-$_realver/doc/license.txt" \
+"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:



[arch-commits] Commit in opencv/repos (3 files)

2012-01-30 Thread Ionut Biru
Date: Monday, January 30, 2012 @ 13:49:07
  Author: ibiru
Revision: 148244

db-move: moved opencv from [staging] to [testing] (i686)

Added:
  opencv/repos/testing-i686/
  opencv/repos/testing-i686/PKGBUILD
(from rev 148047, opencv/repos/staging-i686/PKGBUILD)
Deleted:
  opencv/repos/staging-i686/

--+
 PKGBUILD |  119 +
 1 file changed, 119 insertions(+)

Copied: opencv/repos/testing-i686/PKGBUILD (from rev 148047, 
opencv/repos/staging-i686/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2012-01-30 18:49:07 UTC (rev 148244)
@@ -0,0 +1,119 @@
+# $Id$
+# Maintainer: Ray Rashif 
+# Contributor: Tobias Powalowski 
+
+pkgbase=opencv
+pkgname=('opencv' 'opencv-docs' 'opencv-samples')
+_realname=OpenCV
+pkgver=2.3.1_a
+_realver=2.3.1
+pkgrel=4
+pkgdesc="Open Source Computer Vision Library"
+arch=('i686' 'x86_64')
+license=('BSD')
+url="http://opencv.willowgarage.com/";
+depends=('jasper' 'gstreamer0.10-base' 'openexr'
+ 'gtk2' 'xine-lib' 'libdc1394' 'v4l-utils')
+makedepends=('pkg-config' 'cmake' 'python2-numpy' 'eigen2')
+optdepends=('opencv-docs'
+'opencv-samples'
+'eigen2'
+'python2-numpy: Python 2.x interface')
+options=('!libtool')
+source=("http://downloads.sourceforge.net/opencvlibrary/$_realname-${_realver}a.tar.bz2";)
+md5sums=('82e4b6bfa349777233eea09b075e931e')
+
+_cmakeopts=('-D CMAKE_BUILD_TYPE=Release'
+'-D CMAKE_INSTALL_PREFIX=/usr'
+'-D CMAKE_SKIP_RPATH=ON'
+'-D BUILD_TESTS=OFF'
+'-D ENABLE_SSE=ON'
+'-D ENABLE_SSE2=ON'
+'-D ENABLE_SSE3=OFF'
+'-D ENABLE_SSSE3=OFF'
+'-D ENABLE_SSE41=OFF'
+'-D ENABLE_SSE42=OFF'
+'-D BUILD_EXAMPLES=ON'
+'-D INSTALL_C_EXAMPLES=ON'
+'-D INSTALL_PYTHON_EXAMPLES=ON'
+'-D WITH_XINE=ON'
+'-D WITH_QT=OFF'
+'-D WITH_QT_OPENGL=OFF'
+'-D WITH_UNICAP=OFF'
+'-D WITH_PVAPI=OFF'
+'-D WITH_OPENNI=OFF'
+'-D WITH_TBB=OFF'
+'-D WITH_IPP=OFF'
+'-D WITH_CUDA=OFF'
+'-D USE_FAST_MATH=ON')
+
+build() {
+  cd "$srcdir/$_realname-$_realver"
+
+  # x64, i.e "Athlon64" and upwards, can use SSE3
+  [ $CARCH = x86_64 ] && \
+_cmakeopts=${_cmakeopts[@]/ENABLE_SSE3=OFF/ENABLE_SSE3=ON}
+
+  cmake ${_cmakeopts[@]} .
+
+  make
+}
+
+package_opencv() {
+  cd "$srcdir/$_realname-$_realver"
+
+  make DESTDIR="$pkgdir" install
+
+  # install license file
+  install -Dm644 "$srcdir/$_realname-$_realver/doc/license.txt" \
+"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+  cd "$pkgdir/usr/share"
+
+  # prepare FSH-friendly dirs
+  if [ -d OpenCV ]; then
+mv opencv/samples OpenCV/
+rm -r opencv
+mv OpenCV opencv
+  fi
+
+  # separate docs package; also be -R friendly
+  [ -d opencv/doc ] && mv opencv/doc "$srcdir/opencv-doc"
+
+  # separate samples package
+  [ -d opencv/samples ] && mv opencv/samples "$srcdir/opencv-samples"
+}
+
+package_opencv-docs() {
+  pkgdesc+=" (documentation)"
+  unset depends
+  unset optdepends
+  options=('docs')
+
+  cd "$srcdir"
+
+  mkdir -p "$pkgdir/usr/share/doc"
+  cp -r opencv-doc "$pkgdir/usr/share/doc/opencv"
+
+  # install license file
+  install -Dm644 "$srcdir/$_realname-$_realver/doc/license.txt" \
+"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_opencv-samples() {
+  pkgdesc+=" (samples)"
+  depends=('bash')
+  unset optdepends
+  unset options
+
+  cd "$srcdir"
+
+  mkdir -p "$pkgdir/usr/share/opencv"
+  cp -r opencv-samples "$pkgdir/usr/share/opencv/samples"
+
+  # install license file
+  install -Dm644 "$srcdir/$_realname-$_realver/doc/license.txt" \
+"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:



[arch-commits] Commit in opencv/repos (3 files)

2012-01-10 Thread Eric Bélanger
Date: Tuesday, January 10, 2012 @ 18:37:44
  Author: eric
Revision: 146424

db-move: moved opencv from [testing] to [extra] (x86_64)

Added:
  opencv/repos/extra-x86_64/PKGBUILD
(from rev 146414, opencv/repos/testing-x86_64/PKGBUILD)
Deleted:
  opencv/repos/extra-x86_64/PKGBUILD
  opencv/repos/testing-x86_64/

--+
 PKGBUILD |  230 +++--
 1 file changed, 119 insertions(+), 111 deletions(-)

Deleted: extra-x86_64/PKGBUILD
===
--- extra-x86_64/PKGBUILD   2012-01-10 23:37:43 UTC (rev 146423)
+++ extra-x86_64/PKGBUILD   2012-01-10 23:37:44 UTC (rev 146424)
@@ -1,111 +0,0 @@
-# $Id$
-# Maintainer: Ray Rashif 
-# Contributor: Tobias Powalowski 
-
-pkgbase=opencv
-pkgname=('opencv' 'opencv-docs' 'opencv-samples')
-_realname=OpenCV
-pkgver=2.3.1_a
-_realver=2.3.1
-pkgrel=2
-pkgdesc="Open Source Computer Vision Library"
-arch=('i686' 'x86_64')
-license=('BSD')
-url="http://opencv.willowgarage.com/";
-depends=('jasper' 'gstreamer0.10-base' 'openexr'
- 'gtk2' 'xine-lib' 'libdc1394' 'v4l-utils')
-makedepends=('pkg-config' 'cmake' 'python2-numpy' 'eigen2')
-optdepends=('opencv-docs'
-'opencv-samples'
-'eigen2'
-'python2-numpy: Python 2.x interface')
-options=('!libtool')
-source=("http://downloads.sourceforge.net/opencvlibrary/$_realname-${_realver}a.tar.bz2";)
-md5sums=('82e4b6bfa349777233eea09b075e931e')
-
-_cmakeopts=('-D CMAKE_BUILD_TYPE=Release'
-'-D CMAKE_INSTALL_PREFIX=/usr'
-'-D CMAKE_SKIP_RPATH=ON'
-'-D BUILD_TESTS=OFF'
-'-D ENABLE_SSE=ON'
-'-D ENABLE_SSE2=ON'
-'-D ENABLE_SSE3=OFF'
-'-D ENABLE_SSSE3=OFF'
-'-D ENABLE_SSE41=OFF'
-'-D ENABLE_SSE42=OFF'
-'-D BUILD_EXAMPLES=ON'
-'-D INSTALL_C_EXAMPLES=ON'
-'-D INSTALL_PYTHON_EXAMPLES=ON'
-'-D WITH_XINE=ON'
-'-D WITH_QT=OFF'
-'-D WITH_QT_OPENGL=OFF'
-'-D WITH_UNICAP=OFF'
-'-D WITH_PVAPI=OFF'
-'-D WITH_OPENNI=OFF'
-'-D WITH_TBB=OFF'
-'-D WITH_IPP=OFF'
-'-D WITH_CUDA=OFF'
-'-D USE_FAST_MATH=ON')
-
-build() {
-  cd "$srcdir/$_realname-$_realver"
-
-  # x64, i.e "Athlon64" and upwards, can use SSE3
-  [ $CARCH = x86_64 ] && \
-_cmakeopts=${_cmakeopts[@]/ENABLE_SSE3=OFF/ENABLE_SSE3=ON}
-
-  cmake ${_cmakeopts[@]} .
-
-  make
-}
-
-package_opencv() {
-  cd "$srcdir/$_realname-$_realver"
-
-  make DESTDIR="$pkgdir" install
-
-  # install license file
-  install -Dm644 "$srcdir/$_realname-$_realver/doc/license.txt" \
-"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-
-  cd "$pkgdir/usr/share"
-
-  # prepare FSH-friendly dirs
-  if [ -d OpenCV ]; then
-mv opencv/samples OpenCV/
-rm -r opencv
-mv OpenCV opencv
-  fi
-
-  # separate docs package; also be -R friendly
-  [ -d opencv/doc ] && mv opencv/doc "$srcdir/opencv-doc"
-
-  # separate samples package
-  [ -d opencv/samples ] && mv opencv/samples "$srcdir/opencv-samples"
-}
-
-package_opencv-docs() {
-  pkgdesc+=" (documentation)"
-  unset depends
-  unset optdepends
-  options=('docs')
-
-  cd "$srcdir"
-
-  mkdir -p "$pkgdir/usr/share/doc"
-  cp -r opencv-doc "$pkgdir/usr/share/doc/opencv"
-}
-
-package_opencv-samples() {
-  pkgdesc+=" (samples)"
-  depends=('bash')
-  unset optdepends
-  unset options
-
-  cd "$srcdir"
-
-  mkdir -p "$pkgdir/usr/share/opencv"
-  cp -r opencv-samples "$pkgdir/usr/share/opencv/samples"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: opencv/repos/extra-x86_64/PKGBUILD (from rev 146414, 
opencv/repos/testing-x86_64/PKGBUILD)
===
--- extra-x86_64/PKGBUILD   (rev 0)
+++ extra-x86_64/PKGBUILD   2012-01-10 23:37:44 UTC (rev 146424)
@@ -0,0 +1,119 @@
+# $Id$
+# Maintainer: Ray Rashif 
+# Contributor: Tobias Powalowski 
+
+pkgbase=opencv
+pkgname=('opencv' 'opencv-docs' 'opencv-samples')
+_realname=OpenCV
+pkgver=2.3.1_a
+_realver=2.3.1
+pkgrel=3
+pkgdesc="Open Source Computer Vision Library"
+arch=('i686' 'x86_64')
+license=('BSD')
+url="http://opencv.willowgarage.com/";
+depends=('jasper' 'gstreamer0.10-base' 'openexr'
+ 'gtk2' 'xine-lib' 'libdc1394' 'v4l-utils')
+makedepends=('pkg-config' 'cmake' 'python2-numpy' 'eigen2')
+optdepends=('opencv-docs'
+'opencv-samples'
+'eigen2'
+'python2-numpy: Python 2.x interface')
+options=('!libtool')
+source=("http://downloads.sourceforge.net/opencvlibrary/$_realname-${_realver}a.tar.bz2";)
+md5sums=('82e4b6bfa349777233eea09b075e931e')
+
+_cmakeopts=('-D CMAKE_BUILD_TYPE=Release'
+'-D CMAKE_INSTALL_PREFIX=/usr'
+'-D CMAKE_SKIP_RPATH=ON'
+'-D BUILD_TESTS=OFF'
+'-D ENABLE_SSE=ON'
+'-D ENABLE_SSE2=ON'
+  

[arch-commits] Commit in opencv/repos (3 files)

2012-01-10 Thread Eric Bélanger
Date: Tuesday, January 10, 2012 @ 18:37:43
  Author: eric
Revision: 146423

db-move: moved opencv from [testing] to [extra] (i686)

Added:
  opencv/repos/extra-i686/PKGBUILD
(from rev 146414, opencv/repos/testing-i686/PKGBUILD)
Deleted:
  opencv/repos/extra-i686/PKGBUILD
  opencv/repos/testing-i686/

--+
 PKGBUILD |  230 +++--
 1 file changed, 119 insertions(+), 111 deletions(-)

Deleted: extra-i686/PKGBUILD
===
--- extra-i686/PKGBUILD 2012-01-10 23:37:42 UTC (rev 146422)
+++ extra-i686/PKGBUILD 2012-01-10 23:37:43 UTC (rev 146423)
@@ -1,111 +0,0 @@
-# $Id$
-# Maintainer: Ray Rashif 
-# Contributor: Tobias Powalowski 
-
-pkgbase=opencv
-pkgname=('opencv' 'opencv-docs' 'opencv-samples')
-_realname=OpenCV
-pkgver=2.3.1_a
-_realver=2.3.1
-pkgrel=2
-pkgdesc="Open Source Computer Vision Library"
-arch=('i686' 'x86_64')
-license=('BSD')
-url="http://opencv.willowgarage.com/";
-depends=('jasper' 'gstreamer0.10-base' 'openexr'
- 'gtk2' 'xine-lib' 'libdc1394' 'v4l-utils')
-makedepends=('pkg-config' 'cmake' 'python2-numpy' 'eigen2')
-optdepends=('opencv-docs'
-'opencv-samples'
-'eigen2'
-'python2-numpy: Python 2.x interface')
-options=('!libtool')
-source=("http://downloads.sourceforge.net/opencvlibrary/$_realname-${_realver}a.tar.bz2";)
-md5sums=('82e4b6bfa349777233eea09b075e931e')
-
-_cmakeopts=('-D CMAKE_BUILD_TYPE=Release'
-'-D CMAKE_INSTALL_PREFIX=/usr'
-'-D CMAKE_SKIP_RPATH=ON'
-'-D BUILD_TESTS=OFF'
-'-D ENABLE_SSE=ON'
-'-D ENABLE_SSE2=ON'
-'-D ENABLE_SSE3=OFF'
-'-D ENABLE_SSSE3=OFF'
-'-D ENABLE_SSE41=OFF'
-'-D ENABLE_SSE42=OFF'
-'-D BUILD_EXAMPLES=ON'
-'-D INSTALL_C_EXAMPLES=ON'
-'-D INSTALL_PYTHON_EXAMPLES=ON'
-'-D WITH_XINE=ON'
-'-D WITH_QT=OFF'
-'-D WITH_QT_OPENGL=OFF'
-'-D WITH_UNICAP=OFF'
-'-D WITH_PVAPI=OFF'
-'-D WITH_OPENNI=OFF'
-'-D WITH_TBB=OFF'
-'-D WITH_IPP=OFF'
-'-D WITH_CUDA=OFF'
-'-D USE_FAST_MATH=ON')
-
-build() {
-  cd "$srcdir/$_realname-$_realver"
-
-  # x64, i.e "Athlon64" and upwards, can use SSE3
-  [ $CARCH = x86_64 ] && \
-_cmakeopts=${_cmakeopts[@]/ENABLE_SSE3=OFF/ENABLE_SSE3=ON}
-
-  cmake ${_cmakeopts[@]} .
-
-  make
-}
-
-package_opencv() {
-  cd "$srcdir/$_realname-$_realver"
-
-  make DESTDIR="$pkgdir" install
-
-  # install license file
-  install -Dm644 "$srcdir/$_realname-$_realver/doc/license.txt" \
-"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-
-  cd "$pkgdir/usr/share"
-
-  # prepare FSH-friendly dirs
-  if [ -d OpenCV ]; then
-mv opencv/samples OpenCV/
-rm -r opencv
-mv OpenCV opencv
-  fi
-
-  # separate docs package; also be -R friendly
-  [ -d opencv/doc ] && mv opencv/doc "$srcdir/opencv-doc"
-
-  # separate samples package
-  [ -d opencv/samples ] && mv opencv/samples "$srcdir/opencv-samples"
-}
-
-package_opencv-docs() {
-  pkgdesc+=" (documentation)"
-  unset depends
-  unset optdepends
-  options=('docs')
-
-  cd "$srcdir"
-
-  mkdir -p "$pkgdir/usr/share/doc"
-  cp -r opencv-doc "$pkgdir/usr/share/doc/opencv"
-}
-
-package_opencv-samples() {
-  pkgdesc+=" (samples)"
-  depends=('bash')
-  unset optdepends
-  unset options
-
-  cd "$srcdir"
-
-  mkdir -p "$pkgdir/usr/share/opencv"
-  cp -r opencv-samples "$pkgdir/usr/share/opencv/samples"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: opencv/repos/extra-i686/PKGBUILD (from rev 146414, 
opencv/repos/testing-i686/PKGBUILD)
===
--- extra-i686/PKGBUILD (rev 0)
+++ extra-i686/PKGBUILD 2012-01-10 23:37:43 UTC (rev 146423)
@@ -0,0 +1,119 @@
+# $Id$
+# Maintainer: Ray Rashif 
+# Contributor: Tobias Powalowski 
+
+pkgbase=opencv
+pkgname=('opencv' 'opencv-docs' 'opencv-samples')
+_realname=OpenCV
+pkgver=2.3.1_a
+_realver=2.3.1
+pkgrel=3
+pkgdesc="Open Source Computer Vision Library"
+arch=('i686' 'x86_64')
+license=('BSD')
+url="http://opencv.willowgarage.com/";
+depends=('jasper' 'gstreamer0.10-base' 'openexr'
+ 'gtk2' 'xine-lib' 'libdc1394' 'v4l-utils')
+makedepends=('pkg-config' 'cmake' 'python2-numpy' 'eigen2')
+optdepends=('opencv-docs'
+'opencv-samples'
+'eigen2'
+'python2-numpy: Python 2.x interface')
+options=('!libtool')
+source=("http://downloads.sourceforge.net/opencvlibrary/$_realname-${_realver}a.tar.bz2";)
+md5sums=('82e4b6bfa349777233eea09b075e931e')
+
+_cmakeopts=('-D CMAKE_BUILD_TYPE=Release'
+'-D CMAKE_INSTALL_PREFIX=/usr'
+'-D CMAKE_SKIP_RPATH=ON'
+'-D BUILD_TESTS=OFF'
+'-D ENABLE_SSE=ON'
+'-D ENABLE_SSE2=ON'
+'-D ENABLE_SSE3=OFF'
+'-D ENABLE_S

[arch-commits] Commit in opencv/repos (3 files)

2012-01-06 Thread Eric Bélanger
Date: Saturday, January 7, 2012 @ 00:13:31
  Author: eric
Revision: 146252

db-move: moved opencv from [staging] to [testing] (i686)

Added:
  opencv/repos/testing-i686/
  opencv/repos/testing-i686/PKGBUILD
(from rev 146243, opencv/repos/staging-i686/PKGBUILD)
Deleted:
  opencv/repos/staging-i686/

--+
 PKGBUILD |  119 +
 1 file changed, 119 insertions(+)

Copied: opencv/repos/testing-i686/PKGBUILD (from rev 146243, 
opencv/repos/staging-i686/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2012-01-07 05:13:31 UTC (rev 146252)
@@ -0,0 +1,119 @@
+# $Id$
+# Maintainer: Ray Rashif 
+# Contributor: Tobias Powalowski 
+
+pkgbase=opencv
+pkgname=('opencv' 'opencv-docs' 'opencv-samples')
+_realname=OpenCV
+pkgver=2.3.1_a
+_realver=2.3.1
+pkgrel=3
+pkgdesc="Open Source Computer Vision Library"
+arch=('i686' 'x86_64')
+license=('BSD')
+url="http://opencv.willowgarage.com/";
+depends=('jasper' 'gstreamer0.10-base' 'openexr'
+ 'gtk2' 'xine-lib' 'libdc1394' 'v4l-utils')
+makedepends=('pkg-config' 'cmake' 'python2-numpy' 'eigen2')
+optdepends=('opencv-docs'
+'opencv-samples'
+'eigen2'
+'python2-numpy: Python 2.x interface')
+options=('!libtool')
+source=("http://downloads.sourceforge.net/opencvlibrary/$_realname-${_realver}a.tar.bz2";)
+md5sums=('82e4b6bfa349777233eea09b075e931e')
+
+_cmakeopts=('-D CMAKE_BUILD_TYPE=Release'
+'-D CMAKE_INSTALL_PREFIX=/usr'
+'-D CMAKE_SKIP_RPATH=ON'
+'-D BUILD_TESTS=OFF'
+'-D ENABLE_SSE=ON'
+'-D ENABLE_SSE2=ON'
+'-D ENABLE_SSE3=OFF'
+'-D ENABLE_SSSE3=OFF'
+'-D ENABLE_SSE41=OFF'
+'-D ENABLE_SSE42=OFF'
+'-D BUILD_EXAMPLES=ON'
+'-D INSTALL_C_EXAMPLES=ON'
+'-D INSTALL_PYTHON_EXAMPLES=ON'
+'-D WITH_XINE=ON'
+'-D WITH_QT=OFF'
+'-D WITH_QT_OPENGL=OFF'
+'-D WITH_UNICAP=OFF'
+'-D WITH_PVAPI=OFF'
+'-D WITH_OPENNI=OFF'
+'-D WITH_TBB=OFF'
+'-D WITH_IPP=OFF'
+'-D WITH_CUDA=OFF'
+'-D USE_FAST_MATH=ON')
+
+build() {
+  cd "$srcdir/$_realname-$_realver"
+
+  # x64, i.e "Athlon64" and upwards, can use SSE3
+  [ $CARCH = x86_64 ] && \
+_cmakeopts=${_cmakeopts[@]/ENABLE_SSE3=OFF/ENABLE_SSE3=ON}
+
+  cmake ${_cmakeopts[@]} .
+
+  make
+}
+
+package_opencv() {
+  cd "$srcdir/$_realname-$_realver"
+
+  make DESTDIR="$pkgdir" install
+
+  # install license file
+  install -Dm644 "$srcdir/$_realname-$_realver/doc/license.txt" \
+"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+  cd "$pkgdir/usr/share"
+
+  # prepare FSH-friendly dirs
+  if [ -d OpenCV ]; then
+mv opencv/samples OpenCV/
+rm -r opencv
+mv OpenCV opencv
+  fi
+
+  # separate docs package; also be -R friendly
+  [ -d opencv/doc ] && mv opencv/doc "$srcdir/opencv-doc"
+
+  # separate samples package
+  [ -d opencv/samples ] && mv opencv/samples "$srcdir/opencv-samples"
+}
+
+package_opencv-docs() {
+  pkgdesc+=" (documentation)"
+  unset depends
+  unset optdepends
+  options=('docs')
+
+  cd "$srcdir"
+
+  mkdir -p "$pkgdir/usr/share/doc"
+  cp -r opencv-doc "$pkgdir/usr/share/doc/opencv"
+
+  # install license file
+  install -Dm644 "$srcdir/$_realname-$_realver/doc/license.txt" \
+"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_opencv-samples() {
+  pkgdesc+=" (samples)"
+  depends=('bash')
+  unset optdepends
+  unset options
+
+  cd "$srcdir"
+
+  mkdir -p "$pkgdir/usr/share/opencv"
+  cp -r opencv-samples "$pkgdir/usr/share/opencv/samples"
+
+  # install license file
+  install -Dm644 "$srcdir/$_realname-$_realver/doc/license.txt" \
+"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:



[arch-commits] Commit in opencv/repos (3 files)

2012-01-06 Thread Eric Bélanger
Date: Saturday, January 7, 2012 @ 00:13:32
  Author: eric
Revision: 146253

db-move: moved opencv from [staging] to [testing] (x86_64)

Added:
  opencv/repos/testing-x86_64/
  opencv/repos/testing-x86_64/PKGBUILD
(from rev 146243, opencv/repos/staging-x86_64/PKGBUILD)
Deleted:
  opencv/repos/staging-x86_64/

--+
 PKGBUILD |  119 +
 1 file changed, 119 insertions(+)

Copied: opencv/repos/testing-x86_64/PKGBUILD (from rev 146243, 
opencv/repos/staging-x86_64/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2012-01-07 05:13:32 UTC (rev 146253)
@@ -0,0 +1,119 @@
+# $Id$
+# Maintainer: Ray Rashif 
+# Contributor: Tobias Powalowski 
+
+pkgbase=opencv
+pkgname=('opencv' 'opencv-docs' 'opencv-samples')
+_realname=OpenCV
+pkgver=2.3.1_a
+_realver=2.3.1
+pkgrel=3
+pkgdesc="Open Source Computer Vision Library"
+arch=('i686' 'x86_64')
+license=('BSD')
+url="http://opencv.willowgarage.com/";
+depends=('jasper' 'gstreamer0.10-base' 'openexr'
+ 'gtk2' 'xine-lib' 'libdc1394' 'v4l-utils')
+makedepends=('pkg-config' 'cmake' 'python2-numpy' 'eigen2')
+optdepends=('opencv-docs'
+'opencv-samples'
+'eigen2'
+'python2-numpy: Python 2.x interface')
+options=('!libtool')
+source=("http://downloads.sourceforge.net/opencvlibrary/$_realname-${_realver}a.tar.bz2";)
+md5sums=('82e4b6bfa349777233eea09b075e931e')
+
+_cmakeopts=('-D CMAKE_BUILD_TYPE=Release'
+'-D CMAKE_INSTALL_PREFIX=/usr'
+'-D CMAKE_SKIP_RPATH=ON'
+'-D BUILD_TESTS=OFF'
+'-D ENABLE_SSE=ON'
+'-D ENABLE_SSE2=ON'
+'-D ENABLE_SSE3=OFF'
+'-D ENABLE_SSSE3=OFF'
+'-D ENABLE_SSE41=OFF'
+'-D ENABLE_SSE42=OFF'
+'-D BUILD_EXAMPLES=ON'
+'-D INSTALL_C_EXAMPLES=ON'
+'-D INSTALL_PYTHON_EXAMPLES=ON'
+'-D WITH_XINE=ON'
+'-D WITH_QT=OFF'
+'-D WITH_QT_OPENGL=OFF'
+'-D WITH_UNICAP=OFF'
+'-D WITH_PVAPI=OFF'
+'-D WITH_OPENNI=OFF'
+'-D WITH_TBB=OFF'
+'-D WITH_IPP=OFF'
+'-D WITH_CUDA=OFF'
+'-D USE_FAST_MATH=ON')
+
+build() {
+  cd "$srcdir/$_realname-$_realver"
+
+  # x64, i.e "Athlon64" and upwards, can use SSE3
+  [ $CARCH = x86_64 ] && \
+_cmakeopts=${_cmakeopts[@]/ENABLE_SSE3=OFF/ENABLE_SSE3=ON}
+
+  cmake ${_cmakeopts[@]} .
+
+  make
+}
+
+package_opencv() {
+  cd "$srcdir/$_realname-$_realver"
+
+  make DESTDIR="$pkgdir" install
+
+  # install license file
+  install -Dm644 "$srcdir/$_realname-$_realver/doc/license.txt" \
+"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+  cd "$pkgdir/usr/share"
+
+  # prepare FSH-friendly dirs
+  if [ -d OpenCV ]; then
+mv opencv/samples OpenCV/
+rm -r opencv
+mv OpenCV opencv
+  fi
+
+  # separate docs package; also be -R friendly
+  [ -d opencv/doc ] && mv opencv/doc "$srcdir/opencv-doc"
+
+  # separate samples package
+  [ -d opencv/samples ] && mv opencv/samples "$srcdir/opencv-samples"
+}
+
+package_opencv-docs() {
+  pkgdesc+=" (documentation)"
+  unset depends
+  unset optdepends
+  options=('docs')
+
+  cd "$srcdir"
+
+  mkdir -p "$pkgdir/usr/share/doc"
+  cp -r opencv-doc "$pkgdir/usr/share/doc/opencv"
+
+  # install license file
+  install -Dm644 "$srcdir/$_realname-$_realver/doc/license.txt" \
+"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_opencv-samples() {
+  pkgdesc+=" (samples)"
+  depends=('bash')
+  unset optdepends
+  unset options
+
+  cd "$srcdir"
+
+  mkdir -p "$pkgdir/usr/share/opencv"
+  cp -r opencv-samples "$pkgdir/usr/share/opencv/samples"
+
+  # install license file
+  install -Dm644 "$srcdir/$_realname-$_realver/doc/license.txt" \
+"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et: