Changes between Version 27 and Version 28 of snc
- Timestamp:
- Apr 16, 2009, 11:25:00 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
snc
v27 v28 16 16 Speaking of {{{reinplace}}}, '''do not''' hardcode {{{/opt/local}}} anywhere! Instead, use {{{reinplace}}} to replace things like {{{${prefix} }}}and {{{${x11prefix} }}}and other variables that can be different on users' systems. 17 17 === Steps to Installing to Destroot === 18 1. Do nothing: MacPorts already puts{{{ DEST ROOT=${destroot}${prefix} }}}into {{{destroot.destdir}}} and most Makefiles support this.18 1. Do nothing: MacPorts already puts{{{ DESTDIR=${destroot} }}}into {{{destroot.destdir}}} and most Makefiles support this. 19 19 1. If there is another variable you need to use, overwrite {{{destroot.destdir}}} (perhaps{{{ destroot.destdir INSTALL_ROOT=${destroot}${prefix} }}}or{{{ destroot.destdir PREFIX=${destroot}${prefix} }}}). 20 20 1. If the Makefile doesn't support {{{DESTROOT}}}, request from the author that they do. If they won't or you can't wait for their fix, patch the Makefile to support {{{DESTROOT}}}, or override the destroot phase entirely and {{{xinstall}}} the files into place in the portfile.