source: trunk/www/getmp.php @ 28393

Last change on this file since 28393 was 28322, checked in by jmpp@…, 13 years ago

Relocate Id fields.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-php
File size: 6.2 KB
Line 
1  <?php
2    /* $Id: getmp.php 28322 2007-08-28 05:56:10Z jmpp@macports.org $ */
3    $DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
4    include_once("$DOCUMENT_ROOT/macports/includes/common.inc");
5    print_header('MacPorts -- Download & Installation', 'utf-8');
6  ?>
7
8    <div id="content">
9      <h2 class="hdr">Get MacPorts</h2>
10
11         <p>MacPorts version <? print "$mp_version_dmg"; ?> is available in binary form as a
12         dmg disk image for <a href="/macports/downloads/MacPorts-<? print "$mp_version_dmg"; ?>-10.4.dmg">
13         Tiger (Universal)</a> or <a href="/macports/downloads/MacPorts-<? print "$mp_version_dmg"; ?>-10.3.dmg">
14         Panther</a>, both containing a pkg installer, or version <? print "$mp_version"; ?>
15         in source form as either a <a href="/macports/downloads/MacPorts-<? print "$mp_version"; ?>.tar.bz2">tar.bz2</a>
16         package or a <a href="/macports/downloads/MacPorts-<? print "$mp_version"; ?>.tar.gz">tar.gz</a> one.
17         Checksums for all these are contained in the <a href="/macports/downloads/MacPorts-<? print "$mp_version_dmg"; ?>.chk.txt">
18         checksums file</a>.</p>
19
20         <p>To get a files listing of all our available downloads checkout the
21         <a href="/macports/downloads.php">downloads section</a> of the site.</p>
22
23      <p>Please note that in order to install and run MacPorts on Mac OS X you must
24        have Apple's Developer Tools package installed, found at the <a href="http://developer.apple.com/tools/xcode/">Apple Developer site</a>
25        or on your Mac OS X installation CDs/DVD.</p>
26
27          <p>If you want to use MacPorts on a platform other than Mac OS X, please be
28          aware of the following requirements (we assume that you have basics such as
29          gcc):</p>
30          <ul>
31                <li>TCL (8.3 or 8.4)</li>
32                <li>curl</li>
33                <li>OpenSSL or libmd</li>
34          </ul>
35
36        <h5 class="subhdr">Mac OS X Package (.pkg) Installer</h5>
37
38        <p>The easiest way to install MacPorts on a Mac OS X system is by downloading
39        the <a href="/macports/downloads/MacPorts-<? print "$mp_version_dmg"; ?>-10.4.dmg">dmg for Tiger</a>
40        or the <a href="/macports/downloads/MacPorts-<? print "$mp_version_dmg"; ?>-10.3.dmg">one for Panther</a>
41        and running Installer.app on the pkg contained therein by double clicking on them,
42        following the on-screen instructions until completion. This procedure will place a
43        fully functional and default MacPorts installation on your host system,
44        ready for usage. If needed, your shell configuration files will be adapted by the installer
45        to include the necessary settings to run MacPorts. You may need to open a new shell for
46        these changes to take effect.</p>
47
48        <p>Although not strictly necessary, it is still recommended that you synchronize your
49        recent installation with our rsync server to ensure you have the latest release
50        available of the MacPorts infrastructure and of the &ldquo;Portfiles&rdquo; containing the instructions
51        employed in the building and installation of ports. To accomplish this simply execute:</p>
52
53        <pre>sudo port -d selfupdate</pre>
54
55        <p>It is also recommended to run the above command on a regular basis to keep your
56        installation always current. At this point you should be ready to enjoy MacPorts!</p>
57
58        <h5 class="subhdr">Source Installation</h5>
59
60        <p>If on the other hand you decide to install from source, there are still a couple of
61        things you will need to do once you've downloaded the tarball before you can
62        install a port with the MacPorts system, namely compiling and installing MacPorts itself.
63        &ldquo;<kbd>cd</kbd>&rdquo; into the directory where you downloaded the package
64        and run &ldquo;<kbd>tar xjvf <a href="/macpports/downloads/MacPorts-<? print "$mp_version"; ?>.tar.bz2">
65        MacPorts-<? print "$mp_version"; ?>.tar.bz2</a></kbd>&rdquo; or &ldquo;<kbd>tar xzvf
66        <a href="/macports/downloads/MacPorts-<? print "$mp_version"; ?>.tar.gz">MacPorts-<? print "$mp_version"; ?>.tar.gz</a></kbd>&rdquo;,
67        depending on whether you downloaded the bz2 tarball or the gz one, respectively.
68        This will unpack the MacPorts sources that you will proceed to build and install. To do
69        so, execute the following:</p>
70
71      <pre>cd MacPorts-<? print "$mp_version"; ?>
72
73./configure &amp;&amp; make &amp;&amp; sudo make install</pre>
74
75        <p>Optionally:</p>
76
77<pre>cd ../
78rm -rf MacPorts-<? print "$mp_version"; ?>*</pre>
79
80      <p>These steps need to be perfomed from an administrator account, for which &ldquo;<kbd>sudo</kbd>&rdquo;
81      will ask the password upon installation. This procedure will install a pristine MacPorts
82      system and, if the optional steps are taken, remove the as of now unnecessary MacPorts-<? print "$mp_version"; ?>
83      source directory and corresponding tarball. To customize your installation you should read the output
84      of &ldquo;<kbd>./configure --help | more</kbd>&rdquo; and pass the appropriate options for the settings you wish
85      to tweak to the configuration script in the steps detailed above.</p>
86       
87        <p>You will need to adapt your shell's configuration files to find the binaries installed by
88        MacPorts. Lastly, you need to synchronize your recent installation with the MacPorts rsync server:</p>
89
90        <pre>sudo port -d selfupdate</pre>
91
92        <p>Upon completion MacPorts will be ready to install ports. Again, it is recommended to run
93        the above command on a regular basis to keep your installation current.</p>
94
95
96        <h5 class="subhdr">Help</h5>
97
98      <p><a href="/macports/help.php">Help</a> is also available should you need it.</p>
99
100        <h5 class="subhdr">SVN Sources</h5>
101
102     <p>If you are developer or a user with a taste for the bleeding edge and wish for the latest changes
103     and feature additions, you may acquire the MacPorts sources through SVN.</p>
104
105      <p>Use the following command to check the project out of the MacPorts anonymous subversion
106        repository:</p>
107
108        <pre>svn co http://svn.macports.org/repository/macports/trunk</pre>
109
110        <p>If you do not want to bother with fetching from SVN, you can download
111        a nightly updated <a href="/macports/downloads/macports-nightly-svn-snapshot.tar.gz">
112        SVN-snapshot</a>. Once extracted, you can keep it up to date with the usual
113        &ldquo;<kbd>svn update</kbd>&rdquo; commands.</p>
114
115      <p>If you'd simply like to view the SVN repository without checking it
116        out, you can do so via the <a href="http://trac.macports.org/projects/macports/browser">
117        Trac browser</a>.</p>
118
119    </div>
120  </div>
121
122<?php
123  print_footer();
124?>
Note: See TracBrowser for help on using the repository browser.