Annotation of htdocs/docs/pkgsrc/porting.html, revision 1.24

1.19      sevan       1: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
1.1       dsieger     2: <html>
                      3: <head>
                      4: <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
1.22      rillig      5: <title>Chapter 27. Porting pkgsrc</title>
1.7       spz         6: <link rel="stylesheet" type="text/css" href="/global.css">
1.1       dsieger     7: <meta name="generator" content="DocBook XSL Stylesheets VX.X.X">
1.5       rillig      8: <link rel="home" href="index.html" title="The pkgsrc guide">
1.1       dsieger     9: <link rel="up" href="infrastructure.html" title="Part III. The pkgsrc infrastructure internals">
1.22      rillig     10: <link rel="prev" href="regression.html" title="Chapter 26. Regression tests">
1.1       dsieger    11: <link rel="next" href="examples.html" title="Appendix A. A simple example package: bison">
                     12: </head>
                     13: <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
                     14: <div class="navheader">
                     15: <table width="100%" summary="Navigation header">
1.22      rillig     16: <tr><th colspan="3" align="center">Chapter 27. Porting pkgsrc</th></tr>
1.1       dsieger    17: <tr>
                     18: <td width="20%" align="left">
                     19: <a accesskey="p" href="regression.html">Prev</a> </td>
                     20: <th width="60%" align="center">Part III. The pkgsrc infrastructure internals</th>
                     21: <td width="20%" align="right"> <a accesskey="n" href="examples.html">Next</a>
                     22: </td>
                     23: </tr>
                     24: </table>
                     25: <hr>
                     26: </div>
1.9       asau       27: <div class="chapter">
1.1       dsieger    28: <div class="titlepage"><div><div><h2 class="title">
1.22      rillig     29: <a name="porting"></a>Chapter 27. Porting pkgsrc</h2></div></div></div>
1.1       dsieger    30: <div class="toc">
                     31: <p><b>Table of Contents</b></p>
1.22      rillig     32: <dl class="toc"><dt><span class="sect1"><a href="porting.html#porting.opsys">27.1. Porting pkgsrc to a new operating system</a></span></dt></dl>
1.1       dsieger    33: </div>
                     34: <p>The pkgsrc system has already been ported to many
                     35:        operating systems, hardware architectures and compilers. This
                     36:        chapter explains the necessary steps to make pkgsrc even more
                     37:        portable.</p>
1.9       asau       38: <div class="sect1">
1.1       dsieger    39: <div class="titlepage"><div><div><h2 class="title" style="clear: both">
1.22      rillig     40: <a name="porting.opsys"></a>27.1. Porting pkgsrc to a new operating system</h2></div></div></div>
1.1       dsieger    41: <p>To port pkgsrc to a new operating system (called
                     42:        <code class="literal">MyOS</code> in this example), you need to touch the
                     43:        following files:</p>
1.9       asau       44: <div class="variablelist"><dl class="variablelist">
1.1       dsieger    45: <dt><span class="term"><code class="filename">pkgtools/bootstrap-mk-files/files/mods/<em class="replaceable"><code>MyOS</code></em>.sys.mk</code></span></dt>
                     46: <dd><p>This file contains some basic definitions, for
                     47:        example the name of the C
                     48:        compiler.</p></dd>
                     49: <dt><span class="term"><code class="filename">mk/bsd.prefs.mk</code></span></dt>
                     50: <dd><p>Insert code that defines the variables
                     51:        <code class="varname">OPSYS</code>, <code class="varname">OS_VERSION</code>,
1.24    ! wiz        52:        <code class="varname">OPSYS_VERSION</code>, <code class="varname">LOWER_VENDOR</code>,
1.1       dsieger    53:        <code class="varname">MACHINE_ARCH</code>, <code class="varname">OBJECT_FMT</code>,
                     54:        <code class="varname">APPEND_ELF</code>, and the other variables that
                     55:        appear in this file.</p></dd>
                     56: <dt><span class="term"><code class="filename">mk/platform/<em class="replaceable"><code>MyOS</code></em>.mk</code></span></dt>
                     57: <dd><p>This file contains the platform-specific
                     58:        definitions that are used by pkgsrc. Start by copying one of the
                     59:        other files and edit it to your
                     60:        needs.</p></dd>
                     61: <dt><span class="term"><code class="filename">mk/tools/tools.<em class="replaceable"><code>MyOS</code></em>.mk</code></span></dt>
                     62: <dd><p>This file defines the paths to all the tools
                     63:        that are needed by one or the other package in pkgsrc, as well
                     64:        as by pkgsrc itself. Find out where these tools are on your
                     65:        platform and add them.</p></dd>
                     66: </dl></div>
                     67: <p>Now, you should be able to build some basic packages, like
1.23      leot       68:        <a href="https://cdn.NetBSD.org/pub/pkgsrc/current/pkgsrc/lang/perl5/index.html" target="_top"><code class="filename">lang/perl5</code></a>, <a href="https://cdn.NetBSD.org/pub/pkgsrc/current/pkgsrc/shells/bash/index.html" target="_top"><code class="filename">shells/bash</code></a>.</p>
1.1       dsieger    69: </div>
                     70: </div>
                     71: <div class="navfooter">
                     72: <hr>
                     73: <table width="100%" summary="Navigation footer">
                     74: <tr>
                     75: <td width="40%" align="left">
                     76: <a accesskey="p" href="regression.html">Prev</a> </td>
                     77: <td width="20%" align="center"><a accesskey="u" href="infrastructure.html">Up</a></td>
                     78: <td width="40%" align="right"> <a accesskey="n" href="examples.html">Next</a>
                     79: </td>
                     80: </tr>
                     81: <tr>
1.22      rillig     82: <td width="40%" align="left" valign="top">Chapter 26. Regression tests </td>
1.1       dsieger    83: <td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td>
                     84: <td width="40%" align="right" valign="top"> Appendix A. A simple example package: bison</td>
                     85: </tr>
                     86: </table>
                     87: </div>
                     88: </body>
                     89: </html>

CVSweb <webmaster@jp.NetBSD.org>