Bug 237847 - [patch] graphics/opencv update to 4.1.0
Summary: [patch] graphics/opencv update to 4.1.0
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-12 07:55 UTC by Hiroo Ono
Modified: 2019-08-12 11:12 UTC (History)
2 users (show)

See Also:


Attachments
opencv 3.4.1 -> 4.1.0 patch (239.89 KB, patch)
2019-05-12 07:55 UTC, Hiroo Ono
no flags Details | Diff
patch to graphics/caffe (4.97 KB, patch)
2019-05-12 07:57 UTC, Hiroo Ono
no flags Details | Diff
opencv 3.4.1 -> 4.1.0 patch (214.32 KB, patch)
2019-05-22 15:36 UTC, Hiroo Ono
no flags Details | Diff
patch to astro/siril to depend on opencv4 (4.08 KB, patch)
2019-05-22 15:37 UTC, Hiroo Ono
no flags Details | Diff
patch to ports that depends on opencv4 (9.11 KB, patch)
2019-05-22 15:42 UTC, Hiroo Ono
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hiroo Ono 2019-05-12 07:55:43 UTC
Created attachment 204333 [details]
opencv 3.4.1 -> 4.1.0 patch

This is a patch to update graphics/opencv (and related) ports to 4.1.0.
It is related to bug #237135 which copies graphics/opencv to graphics/opencv3 and updates to 3.4.6.
This patch creates one more slave port graphics/opencv-contrib to avoid circular dependency between graphics/caffe.

To be able to install opencv3 and opencv4 at the same time, I moved include files and libraries to subdirectory of ${LOCALBASE}/include and ${LOCALBASE}/lib. As a consequent, about 40 ports dependent on graphics/opencv need to be patched. The patch to graphics/caffe follows and multimedia/ffmpeg is dealt in the bug #237135, but the patches for other ports are not ready.

Problem: I did not add CONFLICTS, but graphics/py-opencv and graphics/py-opencv3 install the library files to the same location, and cannot coexists. Is there any way for both versions to coexist?
Comment 1 Hiroo Ono 2019-05-12 07:57:04 UTC
Created attachment 204334 [details]
patch to graphics/caffe

Patch to graphics/caffe depended by graphics/opencv-contrib if option CAFFE is enabled.
Comment 2 Hiroo Ono 2019-05-22 15:36:05 UTC
Created attachment 204542 [details]
opencv 3.4.1 -> 4.1.0 patch

Some correction to the patch:

- With IPP option, a little more patching was needed.
- Restored NONFREE option.
Comment 3 Hiroo Ono 2019-05-22 15:37:11 UTC
Created attachment 204543 [details]
patch to astro/siril to depend on opencv4
Comment 4 Hiroo Ono 2019-05-22 15:42:03 UTC
Created attachment 204544 [details]
patch to ports that depends on opencv4

Among the ports in categories astro or graphics, that depend on graphics/opencv(-core), these ports could be built with opencv4:

astro/siril (separate patch)
graphics/caffe (separate patch)
graphics/digikam
graphics/nomacs
graphics/openimageio
graphics/waifu2x-converter-cpp
graphics/yafaray
Comment 5 Rodrigo Osorio freebsd_committer 2019-08-12 11:12:37 UTC
Can't help with this port, back to the pool