gnu: opencv: Don't hardcode build directories.

* gnu/packages/image-processing.scm (opencv)[arguments]: Change
OPENCV_EXTRA_MODULES_PATH and OPENCV_TEST_DATA_PATH to use 'getcwd'
instead of hardcoding the build path.
This commit is contained in:
Efraim Flashner 2019-01-14 10:01:52 +02:00
parent 6949f45c10
commit b5baf9529e
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -255,15 +255,12 @@ (define-public opencv
"-DBUILD_PERF_TESTS=OFF" "-DBUILD_PERF_TESTS=OFF"
"-DBUILD_TESTS=ON" "-DBUILD_TESTS=ON"
(string-append "-DOPENCV_EXTRA_MODULES_PATH=" (string-append "-DOPENCV_EXTRA_MODULES_PATH=" (getcwd)
"/tmp/guix-build-opencv-" ,version ".drv-0"
"/opencv-contrib/opencv_contrib-" ,version "/opencv-contrib/opencv_contrib-" ,version
"/modules") "/modules")
;;Define test data: ;;Define test data:
(string-append "-DOPENCV_TEST_DATA_PATH=" (string-append "-DOPENCV_TEST_DATA_PATH=" (getcwd)
"/tmp/guix-build-opencv-" ,version ".drv-0"
;;"/opencv-3.4.0"
"/opencv-extra/opencv_extra-" ,version "/opencv-extra/opencv_extra-" ,version
"/testdata") "/testdata")