Create a MacOS X App Bundle Using MacPorts: Difference between revisions

Line 74: Line 74:


  <nowiki>
  <nowiki>
Error: Requested variants "+x11" do not match original selection "".
Error: Requested variants "+quartz" do not match original selection "".
Please use the same variants again, perform 'port clean t1lib' or specify the force option (-f).
Please use the same variants again, perform 'port clean gtk2' or specify the force option (-f).
Error: org.macports.mpkg for port octave-devel returned: Processing of port t1lib failed</nowiki>
Error: org.macports.mpkg for port octave-local returned: Processing of port gtk2 failed</nowiki>


Be sure to clean each of the problematic ports prior to each attempt to create the dmg.
Be sure to clean each of the problematic ports prior to each attempt to create the dmg.


  <nowiki>sudo port clean cairo ; sudo port clean cctools ; sudo port clean pango ; sudo port clean t1lib</nowiki>
  <nowiki>sudo port clean gtk2</nowiki>
 
The ports <code>cctools</code> and <code>curl</code> consistently need to be cleaned prior to the <code>port mdmg octave-local ...</code> command.  The reason for this is not understood (yet), but one hint is seen during the compilation of the DMG.
 
<pre>Portfile changed since last build; discarding previous state.</pre>


The DMG will be placed in the port's {{Codeline|<nowiki>work</nowiki>}} directory.  If a local portfile is used, a symbolic link to the {{Codeline|<nowiki>work</nowiki>}} directory will be placed in the directory containing the portfile.  In this instance the DMG can be found in {{Codeline|<nowiki>~/ports/math/octave-local/work</nowiki>}}.
The DMG will be placed in the port's {{Codeline|<nowiki>work</nowiki>}} directory.  If a local portfile is used, a symbolic link to the {{Codeline|<nowiki>work</nowiki>}} directory will be placed in the directory containing the portfile.  In this instance the DMG can be found in {{Codeline|<nowiki>~/ports/math/octave-local/work</nowiki>}}.


The DMG produced using the [http://www.octave.org/wiki/index.php?title=Prototype_MacPorts_PortFile prototype portfile's] does not include everything needed for Octave.  Both {{Codeline|macros.texi}}, {{Codeline|octave.info}}, and the {{Codeline|octave.info-#}} files are missing.  Until the cause for these missing files is identified and resolved, they will have to be copied manually to the App bundle.
The DMG produced using the [http://www.octave.org/wiki/index.php?title=Prototype_MacPorts_PortFile prototype portfile's] does not include everything needed for Octave.  Both <code>macros.texi</code>, <code>octave.info</code>, and the <code>octave.info-#</code> files are missing.  Until the cause for these missing files is identified and resolved, they will have to be copied manually to the App bundle (one possibility is that the <code>+docs</code> variant is not used.  Including the <code>+docs</code> variant would bundle many of the <code>xorg</code> ports as well as all of <code>texlive</code>.


===Create an Application Template for Octave===
===Create an Application Template for Octave===
364

edits