diff options
author | Andreas Hüttel <dilfridge@gentoo.org> | 2013-03-29 17:29:28 +0000 |
---|---|---|
committer | Andreas Hüttel <dilfridge@gentoo.org> | 2013-03-29 17:29:28 +0000 |
commit | f387a67a224c5465f704a71ea2db165912160c61 (patch) | |
tree | 990972e4189e6c64b506d22db63be4a5b6d382fe /media-libs/opencv | |
parent | Version bump. (diff) | |
download | historical-f387a67a224c5465f704a71ea2db165912160c61.tar.gz historical-f387a67a224c5465f704a71ea2db165912160c61.tar.bz2 historical-f387a67a224c5465f704a71ea2db165912160c61.zip |
Add first version without java support. Needs work.
Package-Manager: portage-2.2.0_alpha170/cvs/Linux x86_64
Manifest-Sign-Key: 0x7887F787
Diffstat (limited to 'media-libs/opencv')
-rw-r--r-- | media-libs/opencv/ChangeLog | 8 | ||||
-rw-r--r-- | media-libs/opencv/Manifest | 33 | ||||
-rw-r--r-- | media-libs/opencv/files/opencv-2.4.4-javamagic.patch | 33 | ||||
-rw-r--r-- | media-libs/opencv/opencv-2.4.4a.ebuild | 191 |
4 files changed, 248 insertions, 17 deletions
diff --git a/media-libs/opencv/ChangeLog b/media-libs/opencv/ChangeLog index c0c768fcfc12..69fc7247c829 100644 --- a/media-libs/opencv/ChangeLog +++ b/media-libs/opencv/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-libs/opencv # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/opencv/ChangeLog,v 1.88 2013/03/02 21:46:34 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/opencv/ChangeLog,v 1.89 2013/03/29 17:29:14 dilfridge Exp $ + +*opencv-2.4.4a (29 Mar 2013) + + 29 Mar 2013; Andreas K. Huettel <dilfridge@gentoo.org> + +files/opencv-2.4.4-javamagic.patch, +opencv-2.4.4a.ebuild: + Add first version without java support. Needs work. 02 Mar 2013; Markos Chandras <hwoarang@gentoo.org> opencv-2.3.1a-r1.ebuild, opencv-2.4.2.ebuild, opencv-2.4.3.ebuild: diff --git a/media-libs/opencv/Manifest b/media-libs/opencv/Manifest index 686f9d4c88ab..8062b70d8473 100644 --- a/media-libs/opencv/Manifest +++ b/media-libs/opencv/Manifest @@ -10,30 +10,31 @@ AUX opencv-2.3.1a-libsuffix.patch 1949 SHA256 442c5e7fab7cf28f806c8fc2057d17705b AUX opencv-2.3.1a-nocaps.patch 5220 SHA256 eedd2f7881e592a34217e8217a5600c307dbb9558197ca576b431e4c30ce8207 SHA512 4df5cc178246befdf2913877abfc0e842dc76ab59baa82423d48979b3c18077020755708995a4c20d1d7a3e6bbfa54c9e6907ea472fe07ef791fa16f717c0ce1 WHIRLPOOL f00c5aa6e2b15740eb022c4d52c3217f8fdcaad14f177e350f64b1c3dab039ae24d43537b1374967145c8bc9953750fccdf8236aaeb90821692799cd2c304f29 AUX opencv-2.4.2-cflags.patch 742 SHA256 7ea8c07becb830fb03c14bfbf6c25fdfeaf3fcb75949b810520f4fd6c1178c1c SHA512 b92c07d8c9c40ad7721e0cca2d79b001f825478a336ad40cb43d02218fcd9e8b94b871575028ca8eaf6616cfce8138c796f32d4cf55d83d5cbe819ec50cf7c82 WHIRLPOOL f83ee4b677490cf6981b5a326ae6a7ad4cfae1c27fc6c516d054337939957d801ff1319798d2b0b9e86429b8d688f514e74b74bfff56c64df06fc3c7035f320e AUX opencv-2.4.3-gcc47.patch 835 SHA256 bb64b8af632b67293d1c8024b3786162fccc9f4ee4159f6592af0e76e86b7b00 SHA512 cc5e3e4c0def0745867403e990abf4b88d7d3edc72867a283403a991fd96f59c4cca6524ca184a52a40c913cd5d9cdfb52e98be71d5060fc4c7aa6b613a2a220 WHIRLPOOL 52aa228d8ebf2ba51eb67cc31ba4eee27f43d5fc86d3b5028e32e2a8caf1350ebda70bab2a060f9a387312795788b575253d446380645e52e7cf10f57cad9a88 +AUX opencv-2.4.4-javamagic.patch 1187 SHA256 03fb9c62464a09809d1fd8a14d1dab31f9d6ae0fc3d6916590217966fe1b8045 SHA512 84c6dac9c0dc2a9573af400543f746a28a1db0bd02318d5a0fb6262d7151ebc8ef0d327bd51ba0e82a95c04fe81040f6aed6f2dbe3de0820723a7726c2fc00e1 WHIRLPOOL c9d7ba39dc68bf1f9e4ae4aa198b431d39a98d22cd6ccc838facd7dcd8ccb6cd6ad3fafe8a1879d6d8ac740b2b0a3eb10faf997d8b09fa76f238e9854a492ed3 DIST OpenCV-2.3.1a.tar.bz2 32669613 SHA256 a9a2f529101c04eb2b606eee8c80f3ad93190b36f91ac09ee0ec5aa1eed1450c SHA512 6875eae92fa099766410dece37b65ee51c95eb8ed6d1bbe19b533c66361686b31bf5513f6558efdd37332e68b30c5a5f221d17492c00822aeb07efcbf956584d WHIRLPOOL 7cea733b5ea764b229b72565b3c8ea7b2665aa7063c98f97d05bc82d6a41000110a1935b9061050bf17fdf2cb3f382778ba924aa5c8ce7fbf96895a0317e4489 DIST OpenCV-2.4.2.tar.bz2 52562911 SHA256 690023811e03e21df996291392fcf78e43e42ef557b9307503c74c74b4272c28 SHA512 1e009817553668e4040c7959e07b402d06d66f6d4743ac4da2e44a38bef6c73ae0fa454932f7aae778915d29f5d457248fa3488f5df208d1cfb5775a26e34f44 WHIRLPOOL 8412be6b0f51ec76cce9fcb1fc1450b4b50aa3a98a2ab7d312d62ea47fc2b40f997cf09843de048a71d2cc1b5b2f1bf5eea92696ad3d4f5f520c4f3c850266e1 DIST OpenCV-2.4.3.tar.bz2 67240491 SHA256 f8fbe985978d4eae73e8c3b526ed40a37d4761d2029a5b035233f58146f6f59b SHA512 5305e726089f3f43b2bac06b09e2b5f021c63421ba0b36eeb10e43a067a6954569fccb5a66ff8971e83ffb2c3829df222b74e6a33117f85286b3389e5add232e WHIRLPOOL a384e7d09ac31638bb4bc93c2c7c6b2bc88d0344a494d44d53110528a1abb84250b7979c46d3be55891b61b952ed780f10cee41478bdb906357d80bf52f52b57 +DIST OpenCV-2.4.4a.tar.bz2 74636004 SHA256 e663cf6e4762c8be2f80f9bca8fb32c01d65e103df44c2df4a728ddf65216030 SHA512 7ea28d57a8a7127c7daf25df087420c163ab4d0c765f02919aff28dffc27f7d2c378fb738da7182ffd4102080d9fc57eff214dc54514d7b6525675acd2068fd2 WHIRLPOOL f18ec40c16b1a7a32d4b3e6788d0ea94a9ea80626f91245d2d7a076b2de280c41f775ce1876ae2948958b3c344aeb6821d81c8e576aa7fa40dfbb497f22e0786 EBUILD opencv-2.3.1a-r1.ebuild 4210 SHA256 e636c4c0ccc54bbf9b7d1d534ae2f53c32578625889d1d27bd5966d48133b5c9 SHA512 7bbc55b12dfbff2045e57f61aee9a3967caf52bf3c30ae92f9fb610231f23541a79b8bde0560e08a2052740e070dbe220ae1f01ae4216780c2f52ce46c8358a2 WHIRLPOOL 84d9b1a8af49dd9fc9f2f54d560381025a99a73c5a18156ea5f043db52d830781d6ea9017a1618c35a0c89756f8eec11c4631398549a54f002dcb9294e074bdc EBUILD opencv-2.4.2.ebuild 4684 SHA256 0f6638745a2b944ff05c791c2b6b4dbfc5929b5ffe7f321bc02ae835e3667bc0 SHA512 64f23e0887a909949e16a6da1da92a074173c8b5fcfc52072851fa9112448f898b0dea6e36d17b2dd5e0e5a35d4f82a06b4978a43845e876ee405e225583f4fa WHIRLPOOL 631cade9124458d9045241a649013ac1a4200c528612da5807274f4b9f9107ddca666395fef6470f439ad88521090840a85be95c73392625b30c9fa632a97722 EBUILD opencv-2.4.3.ebuild 4777 SHA256 94621b673dca5cfcf2c12582c4e27964387fbd3f43f1fc30f5408d343d8dd97e SHA512 bdac10f0786aba6790b39080b8c2a63ec77369d0497399e00f8df92d565eb9f6da5fac9a6ff0f5e8d0b6420c788e7b3c496395728538255cffb21f55591a2511 WHIRLPOOL f8a959431722e4cac14e7667bda9c1e85fe968c3d548894cef29dabe8fe01c3ec473970ab34ea4c0781cf8e966e8bf0db26d3cf3eb9a20d2e05964481badc878 -MISC ChangeLog 15487 SHA256 a75fd6d9273fd849092d133d82f438cf3296685183c85c91b33f156ac8551626 SHA512 7a693eb51a916eb9e607b59ce0b1325ce8e13f84f560d3377bf1da51550cd023d4eea9dcd026ad190e0d82cf6b6f1dde7a78c0aae71f7284ee1cc430ecbfad9c WHIRLPOOL 00f64317c745efb162ca7e59bb3651fa8e69b2c7f3aef07cac5a9a45698a0b2aa6c04331eca40cf057197e13c997799435e0ddfc85c47bb04a9c3300e71c5a85 +EBUILD opencv-2.4.4a.ebuild 4993 SHA256 bacbad422b99431d7e99b7f39da1bc1843e8f93d795bd6d5f1d28804285d3217 SHA512 a5673d28f00490e2586eb2ed9e756aee215b7a70d1db60bc11f377b498876202cd1c82b11e282437c6a1bc1b6869176ab9c3f50d365669b8b56cf5d76bd5bfc7 WHIRLPOOL 7bbef269e2bdc1c075fc03a77d03b41f84e8d4eae0933668fb5656a7e78ac80cbf86f925ddf758a313f14fbded30ba6310c58df2abe3bd8df78b92eaa366e5e5 +MISC ChangeLog 15692 SHA256 c46b824d0c43535ec833def93e076e8cd10b475964801e65fc707c1baf5c9845 SHA512 4e6dbd0ee7e81cdc62f85f649303d16e9526a04e6673ff8c43cb47e15767a1ff82ad8b2ebe0134623a49ffb246c13463d68c10efddb5d0ce51599afc552b284e WHIRLPOOL 26efa9ce616c8e3411ca4f0ff2cdf5ed37dcda6b025efdb7b30411b3cf189b18e7f7e04d13b26e5c756977ddee5836d173ccaaf348d7b44b6323eddfff69adf1 MISC metadata.xml 1327 SHA256 572366f1f13fcaa7c7773ef255f519a6e8a8c94ef49eabb2ab58631d621a5d89 SHA512 e8b0b9c864e71871f27334f52f6b90d14132c75ea6b63f72e34f26770989a73b07cd50c2ca96a3b9aa42af95c6b83c39b405b7bd41c2d4c2ed35ad5a57966340 WHIRLPOOL e8a0532a83665b47064be8a41a6ca72d3e678e3797c7a971bf4b3817c95fb12895ac6cfc09eaff429a08fbadaef80fab250155bc2bdc43d628571796f3fce5d1 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iQJ8BAEBCABmBQJRMnM5XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w -ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzNTVDNDczOUYzRjJEMTRGNDRGMzU2RkMw -OUJGNEY1NEMyQkE3RjNDAAoJEAm/T1TCun88SWgP/1662ebgM7wfwz+5TfjPNwOw -xLjB78Bn2hbCCDuuqnalpk7NGDgmp93PCXjkSb6jbnRvkeLAkGCYhBtowZsAq8XA -dIier2/aQBtqWfPrwWKpKtoKREiv5+USfJ7I4ymTzkDCEVzgZW4btt6RIL/JzrYU -dYHbSEs65yye/K1d5oPf9GgTaFkGVCQFV9sapaCeCEXep4IxACFT8y38efRWjJza -2OCnRidpXOkHelDOP/aiDJX/A6Jks17IOZQFGkznkEl9rTJz9Jag4sD5AcJJycKl -ixeWvAsNcg19FRifz9yLh/sIH5/VVUJsvWdP76W1pBT3AJsxhWSwchsKwxs8EIVW -UzED3SbXRY0yFlKWHwtc7N4HT6mfeZCnbPMxMye6WSs5S0O/b/o4+eq/5ZG5QVEX -LLZU1dbCj8hYy3cqguKz4HOgpMYukEK6fplDpM2pZLpolC2T/YqEOmdUCOwTcfdq -AlfS2oO1hFko+IEsw+ZoKaLZ84UkMYkT5zsyRu83CUkx6XIn2GrgAPj7PwTJN6LD -M6BgPVk0wmq495my83VMdrbXXAbVIQYsfnKt5QcuvnaFO+8/Jgx260hQSmxN+GFL -+in7s7XsXVFkaRx3ZzUxvZv9YfpPoxNPXE5Wq9pSxiCzWhdHjeHNDzg8n3KjWicI -GbwSHFvHOlHEmAPWOCAS -=zcKf +iQIcBAEBCAAGBQJRVdARAAoJEEb+UGWnxTyH6m4P/itK9lxETYkHHJoIvkUfDJPN +FLQKKg2LwwQGtj3x6oJGFuJxCeXEh/R+GgQRmu9+MCUcjvSfifXnz6nJeOu1p0E0 +mdZgR4mp0PrvmIzuaqzhuZ0Vic8siNajuw9biXtuqJpiENXoBsXOmETw30mvQ2T6 +oO6dAdDjMJCGt4IGN2AwXQCBE77ac9bZFGphWD1TDc2S5trVRRD/+bojDlHi+hA0 +retQj5WsRwjhzKU1rmXzjSAoHJwvC5U0+WB8B7lcgD2V6nW9/XYjr0+gNDs4oWKn +xgO0h6RG9KeFKIPTSHPRHbZrnLamniTGIagl9YI1OPjdJ/uAgNt3U5BfUn1Dn3WL +HeEKBE8OPsEvWRzfG9wfGSGnPf4pO2chcbcs28LK3HojsDBzxbJXQ8+Z2AqGDUoz +y7ETkrVIcQVreqcpJhXTuwu9fnizGTQAroFwIRN86EXI4otjDDlMHU7gCoyuBfl4 +Xsf5pe83LAKG16C1nu9dcfDnxLlrcxmvn9Ty10ogyP2YZdnMBVkBcNrn3D5riV25 +NaoueBzCLCEMDaI7JXPXyMAkZeEk8t/xlcw1J5eUDs55JGMx8Xdx7eYoOPl/dtXx +yQ/2YLQ0slU2c8lE2aJ0433GhRU1QxkhmNzvdfXGusU4Wp/+j7OewkHI5hhTj4XW +Bd+DkMLfcomdg2jYTanX +=U2eH -----END PGP SIGNATURE----- diff --git a/media-libs/opencv/files/opencv-2.4.4-javamagic.patch b/media-libs/opencv/files/opencv-2.4.4-javamagic.patch new file mode 100644 index 000000000000..fa0321102ce3 --- /dev/null +++ b/media-libs/opencv/files/opencv-2.4.4-javamagic.patch @@ -0,0 +1,33 @@ +diff -ruN opencv-2.4.4.orig/CMakeLists.txt opencv-2.4.4/CMakeLists.txt +--- opencv-2.4.4.orig/CMakeLists.txt 2013-03-01 16:44:17.000000000 +0100 ++++ opencv-2.4.4/CMakeLists.txt 2013-03-29 18:01:36.463227214 +0100 +@@ -144,7 +144,7 @@ + OCV_OPTION(WITH_OPENCL "Include OpenCL Runtime support" OFF IF (NOT ANDROID AND NOT IOS) ) + OCV_OPTION(WITH_OPENCLAMDFFT "Include AMD OpenCL FFT library support" OFF IF (NOT ANDROID AND NOT IOS) ) + OCV_OPTION(WITH_OPENCLAMDBLAS "Include AMD OpenCL BLAS library support" OFF IF (NOT ANDROID AND NOT IOS) ) +- ++OCV_OPTION(WITH_JAVA "Include Java support" ON) + + # OpenCV build components + # =================================================== +@@ -392,6 +392,8 @@ + include(cmake/OpenCVDetectPython.cmake) + + # --- Java Support --- ++if(WITH_JAVA) ++ + include(cmake/OpenCVDetectApacheAnt.cmake) + if(ANDROID) + include(cmake/OpenCVDetectAndroidSDK.cmake) +@@ -409,6 +411,11 @@ + SET(CAN_BUILD_ANDROID_PROJECTS FALSE) + endif() + ++else() ++ SET(ANT_EXECUTABLE "") ++ SET(CAN_BUILD_ANDROID_PROJECTS FALSE) ++endif() ++ + # --- OpenCL --- + if(WITH_OPENCL) + include(cmake/OpenCVDetectOpenCL.cmake) diff --git a/media-libs/opencv/opencv-2.4.4a.ebuild b/media-libs/opencv/opencv-2.4.4a.ebuild new file mode 100644 index 000000000000..9908c995731e --- /dev/null +++ b/media-libs/opencv/opencv-2.4.4a.ebuild @@ -0,0 +1,191 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/opencv/opencv-2.4.4a.ebuild,v 1.1 2013/03/29 17:29:14 dilfridge Exp $ + +EAPI=5 +PYTHON_DEPEND="2:2.6" + +inherit base toolchain-funcs cmake-utils python +#java-pkg-opt-2 java-ant-2 + +MY_P=OpenCV-${PV} + +DESCRIPTION="A collection of algorithms and sample code for various computer vision problems" +HOMEPAGE="http://opencv.willowgarage.com" +SRC_URI="mirror://sourceforge/opencvlibrary/${MY_P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux" +IUSE="cuda doc eigen examples ffmpeg gstreamer gtk ieee1394 ipp jpeg jpeg2k opencl openexr opengl pch png qt4 testprograms threads tiff v4l xine" + +RDEPEND=" + app-arch/bzip2 + dev-python/numpy + sys-libs/zlib + cuda? ( >=dev-util/nvidia-cuda-toolkit-4.2 ) + eigen? ( dev-cpp/eigen:2 ) + ffmpeg? ( virtual/ffmpeg ) + gstreamer? ( + media-libs/gstreamer:0.10 + media-libs/gst-plugins-base:0.10 + ) + gtk? ( + dev-libs/glib:2 + x11-libs/gtk+:2 + ) + jpeg? ( virtual/jpeg ) + jpeg2k? ( media-libs/jasper ) + ieee1394? ( + media-libs/libdc1394 + sys-libs/libraw1394 + ) + ipp? ( sci-libs/ipp ) + opencl? ( virtual/opencl ) + openexr? ( media-libs/openexr ) + opengl? ( virtual/glu ) + png? ( media-libs/libpng ) + qt4? ( + dev-qt/qtgui:4 + dev-qt/qttest:4 + opengl? ( dev-qt/qtopengl:4 ) + ) + threads? ( dev-cpp/tbb ) + tiff? ( media-libs/tiff ) + v4l? ( >=media-libs/libv4l-0.8.3 ) + xine? ( media-libs/xine-lib ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig +" + +# REQUIRED_USE="opengl? ( qt )" + +PATCHES=( + "${FILESDIR}/${PN}-2.3.1a-libav-0.7.patch" + "${FILESDIR}/${PN}-2.4.3-gcc47.patch" + "${FILESDIR}/${PN}-2.4.2-cflags.patch" + "${FILESDIR}/${PN}-2.4.4-javamagic.patch" +) + +S=${WORKDIR}/opencv-2.4.4 + +pkg_setup() { + python_set_active_version 2 + python_pkg_setup +# java-pkg-opt-2_pkg_setup +} + +src_prepare() { + base_src_prepare + + # remove bundled stuff + rm -rf 3rdparty + sed -i \ + -e '/add_subdirectory(3rdparty)/ d' \ + CMakeLists.txt || die + +# java-pkg-opt-2_src_prepare +} + +src_configure() { +# java-ant-2_src_configure + + # please dont sort here, order is the same as in CMakeLists.txt + local mycmakeargs=( + # the optinal dependency libraries + $(cmake-utils_use_with ieee1394 1394) + -DWITH_AVFOUNDATION=OFF + -DWITH_CARBON=OFF + $(cmake-utils_use_with eigen) + $(cmake-utils_use_with ffmpeg) + $(cmake-utils_use_with gstreamer) + $(cmake-utils_use_with gtk) + $(cmake-utils_use_with ipp) + # $(cmake-utils_use_with java) + -DWITH_JAVA=OFF + $(cmake-utils_use_with jpeg2k JASPER) + $(cmake-utils_use_with jpeg) + $(cmake-utils_use_with opencl) + # $(cmake-utils_use_with opencl OPENCLAMDFFT) + # $(cmake-utils_use_with opencl OPENCLAMDBLAS) + $(cmake-utils_use_with openexr) + $(cmake-utils_use_with opengl) + -DWITH_OPENNI=OFF # not packaged + $(cmake-utils_use_with png) + -DWITH_PVAPI=OFF # not packaged + $(cmake-utils_use_with qt4 QT) + -DWITH_QUICKTIME=OFF + $(cmake-utils_use_with threads TBB) + $(cmake-utils_use_with tiff) + -DWITH_UNICAP=OFF # not packaged + $(cmake-utils_use_with v4l V4L) + -DWITH_VIDEOINPUT=OFF # windows only + -DWITH_XIMEA=OFF # windows only + $(cmake-utils_use_with xine) + # the build components + -DBUILD_SHARED_LIBS=ON + -DBUILD_ANDROID_EXAMPLES=OFF + $(cmake-utils_use_build doc DOCS) + $(cmake-utils_use_build examples) + -DBUILD_PERF_TESTS=OFF + $(cmake-utils_use_build testprograms TESTS) + # install examples + $(cmake-utils_use examples INSTALL_C_EXAMPLES) + # build options + $(cmake-utils_use_enable pch PRECOMPILED_HEADERS) + -DENABLE_OMIT_FRAME_POINTER=OFF # + -DENABLE_FAST_MATH=OFF # + -DENABLE_SSE=OFF # these options do nothing but + -DENABLE_SSE2=OFF # add params to CFLAGS + -DENABLE_SSE3=OFF + -DENABLE_SSSE3=OFF + -DENABLE_SSE41=OFF + -DENABLE_SSE42=OFF + -DOPENCV_EXTRA_FLAGS_RELEASE="" # black magic + ) + + if use cuda; then + if [[ "$(gcc-version)" > "4.6" ]]; then + ewarn "CUDA and >=sys-devel/gcc-4.7 do not play well together. Disabling CUDA support." + mycmakeargs+=( "-DWITH_CUDA=OFF" ) + mycmakeargs+=( "-DWITH_CUBLAS=OFF" ) + mycmakeargs+=( "-DWITH_CUFFT=OFF" ) + else + mycmakeargs+=( "-DWITH_CUDA=ON" ) + mycmakeargs+=( "-DWITH_CUBLAS=ON" ) + mycmakeargs+=( "-DWITH_CUFFT=ON" ) + fi + else + mycmakeargs+=( "-DWITH_CUDA=OFF" ) + mycmakeargs+=( "-DWITH_CUBLAS=OFF" ) + mycmakeargs+=( "-DWITH_CUFFT=OFF" ) + fi + + if use examples; then + mycmakeargs+=( "-DINSTALL_PYTHON_EXAMPLES=ON" ) + else + mycmakeargs+=( "-DINSTALL_PYTHON_EXAMPLES=OFF" ) + fi + + # things we want to be hard off or not yet figured out + mycmakeargs+=( + "-DOPENCV_BUILD_3RDPARTY_LIBS=OFF" + "-DBUILD_LATEX_DOCS=OFF" + "-DBUILD_PACKAGE=OFF" + "-DENABLE_PROFILING=OFF" + ) + + # things we want to be hard enabled not worth useflag + mycmakeargs+=( + "-DCMAKE_SKIP_RPATH=ON" + "-DOPENCV_DOC_INSTALL_PATH=${EPREFIX}/usr/share/doc/${PF}" + ) + + # hardcode cuda paths + mycmakeargs+=( + "-DCUDA_NPP_LIBRARY_ROOT_DIR=/opt/cuda" + ) + + cmake-utils_src_configure +} |