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

Jump to navigation Jump to search
no edit summary
No edit summary
(6 intermediate revisions by 2 users not shown)
Line 67: Line 67:
  <nowiki>sudo port mdmg octave-devel @3.6.4+atlas+fltk+gcc47-x11+no_x11-metis+llvm32+ssl+qt</nowiki>
  <nowiki>sudo port mdmg octave-devel @3.6.4+atlas+fltk+gcc47-x11+no_x11-metis+llvm32+ssl+qt</nowiki>


In the event errors such as the one below are encountered, the ports implicated ({{Codeline|<nowiki>t1lib</nowiki>}} in this case) must be clean prior to creating the dmg.
In the event errors such as the one below are encountered, the ports implicated (<code> gtk2 </code> in this case) must be clean prior to creating the dmg.


  <nowiki>
  <nowiki>
Line 82: Line 82:
<pre>Portfile changed since last build; discarding previous state.</pre>
<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 <code>work</code> directory.  If a local portfile is used, a symbolic link to the <code>work</code> directory will be placed in the directory containing the portfile.  In this instance the DMG can be found in <code>~/ports/math/octave-local/work</code>.


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>.
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 <code>texlive</code> port as well as <code>xorg-libx11</code> and several other <code>xorg-*</code> ports.


===Create an Application Template for Octave===
===Create an Application Template for Octave===
Line 329: Line 329:
** This will allow for a fully automatic build of an App bundle from a shell script.
** This will allow for a fully automatic build of an App bundle from a shell script.
* Also use an AppleScript to record the creation of a MacOS X Octave icon.
* Also use an AppleScript to record the creation of a MacOS X Octave icon.
[[Category:Mac]]
 
[[Category:Macintosh platform]]
[[Category:Packaging]]
501

edits

Navigation menu