[MacPorts] snc modified

MacPorts noreply at macports.org
Thu Apr 16 16:25:03 PDT 2009


Changed page "snc" by toby at macports.org from 17.202.41.85*
Page URL: <http://trac.macports.org/wiki/snc>
Diff URL: <http://trac.macports.org/wiki/snc?action=diff&version=28>
Revision 28
Comment: fix destroot.destdir default

-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: snc
=========================================================================
--- snc (version: 27)
+++ snc (version: 28)
@@ -15,7 +15,7 @@
 === Do Not Hardcode /opt/local ===
 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.
 === Steps to Installing to Destroot ===
- 1. Do nothing: MacPorts already puts{{{ DESTROOT=${destroot}${prefix} }}}into {{{destroot.destdir}}} and most Makefiles support this.
+ 1. Do nothing: MacPorts already puts{{{ DESTDIR=${destroot} }}}into {{{destroot.destdir}}} and most Makefiles support this.
  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} }}}).
  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.
  1. Sometimes in {{{post-destroot}}} you have to{{{ reinplace s|${destroot}|| somefiles }}}because the destroot path has gotten inserted into them.

-------8<------8<------8<------8<------8<------8<------8<------8<--------

* The IP shown here might not mean anything if the user or the server is
behind a proxy.

--
MacPorts <http://www.macports.org/>
Ports system for Mac OS

This is an automated message. Someone at http://www.macports.org/ added your email
address to be notified of changes on snc. If it was not you, please
report to .


More information about the macports-changes mailing list