How to Git Clone Subrepo for Build (opencv-python)

Steven Smith steve.t.smith at
Tue Dec 10 21:35:16 UTC 2019

The opencv-python package needs to clone a subrepo of opencv4 as part of the build. See:

How should this be done within a Portfile? Effectively, `git clone` must be run in the pre-build stage.

It must be a proper git repo—installing the opencv4 port isn’t enough.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3898 bytes
Desc: not available
URL: <>

More information about the macports-dev mailing list