<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">oops: different answers, which is best?</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class="">On 2018-03-06, at 16:07, Ken Cunningham <<a href="mailto:ken.cunningham.webuse@gmail.com" class="">ken.cunningham.webuse@gmail.com</a>> wrote:</blockquote></div><div class=""><br class=""></div><div class=""></div><blockquote type="cite" class=""><div class=""><span style="font-family: Menlo-Regular;" class="">This Makefile hardcodes the install prefix, and expects you to hand edit it prior to installation.</span><br style="font-family: Menlo-Regular;" class=""><span style="font-family: Menlo-Regular;" class="">You need to patch it to something like this:</span><br style="font-family: Menlo-Regular;" class=""><span style="font-family: Menlo-Regular;" class="">PREFIX=@@PREFIX@@</span><br style="font-family: Menlo-Regular;" class=""><span style="font-family: Menlo-Regular;" class="">and then in the portfile, before building, do a reinplace on @@PREFIX@@ to set it to ${prefix}</span></div></blockquote><div class=""><br class=""></div>Understood, advantage in using ${prefix}, works.<div class=""><br class=""></div><div class=""><blockquote type="cite" class="">On 2018-03-07, at 12:16, Ryan Schmidt <<a href="mailto:ryandesign@macports.org" class="">ryandesign@macports.org</a>> wrote:</blockquote></div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class=""><span style="font-family: Menlo-Regular; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Presumably, you're meant to specify PREFIX=/opt/local in build.args.</span></div></blockquote><br class=""></div><div>The advantage is not making a patch for Makefile.</div><div><br class=""></div><div><br class=""></div><div><br class=""></div><div>combined:</div><div>---------</div><div><br class=""></div><div><div>pre-build {</div><div>  build.args        PREFIX=${prefix}</div><div>}</div><div class=""><br class=""></div></div><div class="">:debug:build build phase started at Wed Mar  7 17:17:19 CET 2018</div><div class="">:notice:build --->  Building jdupes</div><div class="">:debug:build Executing proc-pre-org.macports.build-build-0</div><div class="">:debug:build Executing org.macports.build (jdupes)</div><div class="">:debug:build Environment:</div><div class="">:debug:build CC_PRINT_OPTIONS='YES'</div><div class="">:debug:build CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_Users_paul_Develop_macports_jdupes_sysutils_jdupes/jdupes/wor</div><div class="">k/.CC_PRINT_OPTIONS'</div><div class="">:debug:build CPATH='/opt/local/include'</div><div class="">:debug:build LIBRARY_PATH='/opt/local/lib'</div><div class="">:debug:build MACOSX_DEPLOYMENT_TARGET='10.11'</div><div class="">:info:build Executing:  cd "/opt/local/var/macports/build/_Users_paul_Develop_macports_jdupes_sysutils_jdupes/jdupes/work/jdupes</div><div class="">-1.9" && /usr/bin/make -j8 -w all PREFIX=/opt/local</div></div><div class="">(...)</div><div class=""><div class="">:debug:destroot checking for mtree violations</div><div class="">:warn:destroot violation by /usr</div><div class="">:warn:destroot jdupes violates the layout of the ports-filesystems!</div></div><div class=""><br class=""></div><div class="">but it fails. it seems that build.args doesn not overwrite PREIX in Makefile.</div></body></html>