<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Dec 9, 2017, at 7:59 AM, Ryan Schmidt <<a href="mailto:ryandesign@macports.org" class="">ryandesign@macports.org</a>> wrote:</div><br class="Apple-interchange-newline"></blockquote><br class=""><blockquote type="cite" class=""><div class=""><div class=""><blockquote type="cite" class="">+    set flist [glob ${worksrcpath}/include/*.h]<br class="">+    foreach f $flist {<br class="">+        file copy -force $f ${destroot}${prefix}/Library/Frameworks/IrrFramework.framework/Versions/A/Headers<br class="">+<span class="Apple-tab-span" style="white-space:pre"> </span>}<br class=""></blockquote><br class="">Note that it's simpler to use the MacPorts alias "copy", which is exactly the same as "file copy -force".<br class=""><br class="">You also don't need a foreach loop. You can just:<br class=""><br class="">copy {*}[glob ${worksrcpath}/include/*.h] ${destroot}${prefix}/Library/Frameworks/IrrFramework.framework/Versions/A/Headers<br class=""><br class=""><br class=""></div></div></blockquote></div><div class=""><br class=""></div>So I tried this — <div class=""><br class=""></div><div class=""><div class="">    # the xcode project does not install all the include files</div><div class="">    copy {*}[glob ${worksrcpath}/include/*.h] ${destroot}${prefix}/Library/Frameworks/IrrFramework.framework/Versions/A/Headers</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">but it doesn’t seem to force the copy:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Error: Failed to destroot irrlicht: error copying "/opt/local/var/macports/build/_opt_macportsofficial_macports-ports_devel_irrlicht/irrlicht/work/irrlicht-1.8.4/include/irrMath.h" to "/opt/local/var/macports/build/_opt_macportsofficial_macports-ports_devel_irrlicht/irrlicht/work/destroot/opt/local/Library/Frameworks/IrrFramework.framework/Versions/A/Headers/irrMath.h": file already exists</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Error: See /opt/local/var/macports/logs/_opt_macportsofficial_macports-ports_devel_irrlicht/irrlicht/main.log for details.</span></div></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class="">I recall I went down this path before. (I originally wrote this up about a year ago, but sat on it for a while.) </div><div class=""><br class=""></div><div class="">Also, there was something about the dot-underscores that messed me up. Will see if I can recall what this was.</div><div class=""><br class=""></div><div class="">K</div></body></html>