I have run into an issue that is unclear on MacPorts. In fink
we often would put placekeepers in a patch such as @FINKPREFIX@
and use the command...

sed 's|@FINKPREFIX@|%p|g' <%{PatchFile} | patch -p1

to replace the @FINKPREFIX@ with the actual fink installation directory.
How do you handle this situation in MacPorts where you want to
generalize the MacPorts prefix in a Makefile patch for instance
to survive the case of a user installing MacPorts in a non-default
location other than /opt/local?


patchfiles  patch-patched_file.diff

...

reinplace s|@FINKPREFIX@|${prefix}|g patched_file

_______________________________________________
macports-dev mailing list
macports-dev@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Reply via email to