<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr">I think I have the approach:</div><div dir="ltr"><br></div><div dir="ltr">Overwrite build.cmd and anything else in build/destroot/install that python.tcl changes.</div><div dir="ltr"><br><blockquote type="cite">On Jul 13, 2020, at 20:08, Steven Smith <steve.t.smith@gmail.com> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div dir="ltr">Bothe the cmake and python port groups are necessary to build opencv4 and its python wrapper.</div><div dir="ltr"><br></div><div dir="ltr">See <a href="https://github.com/macports/macports-ports/pull/6261#discussion_r382050271">https://github.com/macports/macports-ports/pull/6261#discussion_r382050271</a></div><div dir="ltr"><br></div><div dir="ltr">What Portfile code will work to use the original cmake flags if port group python is used?</div><div dir="ltr"><br><blockquote type="cite">On Jul 13, 2020, at 19:04, Joshua Root <jmr@macports.org> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><span>The python portgroup is designed to aid installing software with</span><br><span>setup.py. If your software is not installed that way, don't use the</span><br><span>python portgroup.</span></div></blockquote></div></blockquote></body></html>